Active Topics

 



Notices


Reply
Thread Tools
Posts: 561 | Thanked: 75 times | Joined on Jan 2010 @ Spain
#31
To use this application scripts.

I'm preparing a script that captures the quality parameters of the network that we are interested in and storing them in csv format. The data recording time is extended.

Allow later analyzed with spreadsheets, etc.

The GPS is not accessible without SDK.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#32
I want to open a playlist from the commandline
phone-control --mp-play file.mp3 works but when I try to use one of the playlist files in /home/user/.mafw-playlists it doesn't work.
do playlists need another dbus command?
if so, does anybody know the command?

thanks in advance,
AhBarnasha
 
Posts: 4,556 | Thanked: 1,624 times | Joined on Dec 2007
#33
Does phone control --answercall work? Whenever I receive a phone call and try in shortcutd (short camera press) it doesn't work.
__________________
Originally Posted by ysss View Post
They're maemo and MeeGo...

"Meamo!" sounds like what Zorro would say to catherine zeta jones... after she slaps him for looking at her dirtily...
 
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#34
Yo mohammed, lovin' this scripthowever there seems to be a bug. The '...--wifion' and '...--wifioff' return an error. I think you are specifying the wlan0 interface as 'wlan0' as opposed to wlan0. The aposthrophes balls it up methinks.
 

The Following User Says Thank You to vi_ For This Useful Post:
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#35
Hi MohammadAG,

the speaker options (--speakeron --speakeroff) doesn't work.
The dbus calls are from the n810 as far as I know. The right calls are:
speakeron
Code:
dbus-send --type=method_call --dest=org.maemo.Playback.Manager \
/org/maemo/Playback/Manager \
org.maemo.Playback.Manager.RequestPrivacyOverride boolean:True
speakeroff
Code:
dbus-send --type=method_call --dest=org.maemo.Playback.Manager \
/org/maemo/Playback/Manager \
org.maemo.Playback.Manager.RequestPrivacyOverride boolean:False
And for the capture commands, the commandline tools installed
by gst-tools has the suffix "-0.10" for example:
Code:
 /usr/bin/gst-launch-0.10 v4l2camsrc device=/dev/video0\
num-buffers=1 ! video/x-raw-yuv,width=2592,height=1968  !\
ffmpegcolorspace ! jpegenc ! filesink location="$capturepath
Nicolai
 

The Following 8 Users Say Thank You to nicolai For This Useful Post:
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#36
yo mo, I hope your still rockin this badass script.

I have added flightmode on and flightmode off to mine. Here is teh patch:

Code:
74,75d73
<     --flighton                        Enable flight mode
<     --flightoff                       Disable flight mode
113,120d110
< flighton() {
< $prefix dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_mode_ind string:"flight"
< }
<
< flightoff() {
< $prefix dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_mode_ind string:"normal"
< }
<
453,460d442
< if [ "$1" = "--flighton" ]; then
<       flighton
< fi
<
< if [ "$1" = "--flightoff" ]; then
<       flightoff
< fi
<
Also, what exacly is gpsreverse function for?
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following User Says Thank You to vi_ For This Useful Post:
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#37
Yo mo.

The 'resume' function is using the 'play' dbus call. It needs to be changed to resume.

I.e. replace the word play with resume on the dbus call in the script.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 
mase's Avatar
Posts: 355 | Thanked: 205 times | Joined on Jun 2010 @ Germany
#38
If I disable Wifi with the script, my MAC changes every time. This
commands for Wifi work better:
http://wiki.maemo.org/Fcron
__________________
May the force be with us!
 
Posts: 33 | Thanked: 22 times | Joined on May 2012 @ ja_JP.UTF-8
#39
quite nice script

Now we can kill the LED at camera is up,remotely take a picture and play a sound "dont touch my donuts" overSSH!
 

The Following User Says Thank You to syake For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 18:59.