maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Phone Control Script (https://talk.maemo.org/showthread.php?t=60251)

MohammadAG 2010-08-13 02:07

[Announce] Phone Control Script
 
Been using the commands on http://wiki.maemo.org/Phone_control for quite some time, and dbus not being my thing I always had to check the page for the commands, so I decided to merge them all into one script, this should give you an idea what the script does:

Code:

Usage: phone-control [OPTIONS]

Options:
        -v                        Display version.
        -h                        Show this help message.
        --call [number]                Call the number specified
        --answercall                Answer an incoming call (if present)
        --endcall                End an ongoing call (if present)
        --imei                        Print the IMEI (serial) number
        --imsi                        Print the IMSI number
        --cellstrength                Show cellular signal strength
        --speakeron                Turn loudspeaker on
        --speakeroff                Turn loudspeaker off
        --vibrateon  [pattern]        Vibrate using the pattern specified
        --vibrateoff [pattern]        Stop vibrating the pattern specified
        --listvibrapatterns        Lists default vibration patterns
        --ledon  [pattern]        Activate the LED pattern specified
        --ledoff [pattern]        Deactivate the LED pattern specified
        --listledpatterns        Lists default LED patterns
        --profileset [profile]        Change the current profile to the one specified
        --email [address]        Send an email to address specified
        --syncemail                Send and receive email
        --mp-play [/path/file]        Open the file specified in the media player.
        --mp-pause                Pause media player playback
        --mp-stop                Stop media player playback
        --mp-resume                Resume media player playback
        --mp-next                Skip to the next track
        --mp-prev                Skip to the previous track
        --notify [message]        Show a one-line notification
        --dialog [message]        Show a multi-line dialog (requires attention)
        --lock                        Lock the device with a lock code
        --unlock                Unlock the device (useful over SSH)
        --keylock                Lock screen and keys
        --keyunlock                Unlock screen and keys
        --cellon                Enable cellular modem
        --celloff                Disable cellular modem
        --cellmode [2G/3G/Dual]        Set cellular modem mode
        --bton                        Turn bluetooth on
        --btoff                        Turn bluetooth off
        --browse [url]                Open the specified url in the browser
        --volume [0-100]        Set volume level
        --dashboard                Open dashboard
        --fmtxon                Turn on the FMTX
        --fmtxoff                Turn off the FMTX
        --fmtxname                Set FMTX RDS station name
        --fmtxinfo                Set FMTX RDS info text
        --capture [/path/file]        Capture an image and save it to the file specified
        --frontcap [/path/file]        Capture an image from the front cam and save it to the file specified

After installation open terminal and type phone-control to see the command list.

The script can of course be used as a backend for many other apps.

Feel free to report bugs here, although I've tested all the commands (except the camera and the loudspeaker ones) :)

Package name: phone-control
Package page: http://maemo.org/packages/view/phone-control

e0x 2010-08-13 02:18

Re: [Announce] Phone Control Script
 
nice ! this make a lot easy do some really useful apps

Thanks!

jaywink 2010-08-13 06:34

Re: [Announce] Phone Control Script
 
nice stuff \o/

edit; I was actually going to make a script to do all the required stuff relating to an alarm clock that opens a certain radio stream, for example. I can do all that with this, including setting volume, profiles etc required :)

vkv.raju 2010-08-13 07:01

Re: [Announce] Phone Control Script
 
Thanks. Very good, clean and useful script.
Can this be enhanced to add lines to control the wifi chip too. I hope you plan to update this script even further.

AlMehdi 2010-08-13 07:18

Re: [Announce] Phone Control Script
 
Marvelous as always MuhammadAG ;)

leojab 2010-08-13 08:07

Re: [Announce] Phone Control Script
 
Excellentay Mohammed... This makes things easier for everyone

joelsk 2010-08-13 08:16

Re: [Announce] Phone Control Script
 
hi.. i have a question.. is this meant to speed up the phone app launch time? as in the n900 only start ringing after the callers phone has been ringing for a while? thanks.

MohammadAG 2010-08-13 09:14

Re: [Announce] Phone Control Script
 
Quote:

Originally Posted by vkv.raju (Post 784984)
Thanks. Very good, clean and useful script.
Can this be enhanced to add lines to control the wifi chip too. I hope you plan to update this script even further.

I'll add it today, already changed the imei and imsi commands so they only display the number.


This script won't speed up the phone app, I don't see how you concluded that, it's useful for what I listed above. :)

Corso85 2010-08-13 09:43

Re: [Announce] Phone Control Script
 
Awesome.

Is there a way we can use it for SMS?

Edit: Am having trouble with speakeron and speakeroff. doesn't seem to do anything. Is it just me?

jakiman 2010-08-13 10:27

Re: [Announce] Phone Control Script
 
This is awesome. It works perfectly with the Queen Beecon Widget. Now I can "much" easily create buttons on my desktop that calls the a specific number immediately upon click. Well, you can do anything that's mentioned above really. Awesome. Thanks MAG.


All times are GMT. The time now is 07:58.

vBulletin® Version 3.8.8