The Following 3 Users Say Thank You to rotoflex For This Useful Post: | ||
![]() |
2010-11-15
, 18:22
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#2
|
![]() |
2010-11-15
, 23:03
|
Posts: 14 |
Thanked: 5 times |
Joined on Jun 2010
|
#3
|
![]() |
2010-11-15
, 23:41
|
Posts: 842 |
Thanked: 1,197 times |
Joined on May 2010
|
#4
|
![]() |
2010-11-16
, 12:17
|
Posts: 436 |
Thanked: 298 times |
Joined on Jan 2010
@ England
|
#5
|
![]() |
2010-11-16
, 13:18
|
Posts: 569 |
Thanked: 462 times |
Joined on Jul 2010
@ USA
|
#6
|
The Following User Says Thank You to rotoflex For This Useful Post: | ||
![]() |
2010-11-16
, 13:43
|
Posts: 436 |
Thanked: 298 times |
Joined on Jan 2010
@ England
|
#7
|
![]() |
2010-11-16
, 14:22
|
Posts: 29 |
Thanked: 1 time |
Joined on Feb 2010
@ Germany
|
#8
|
The Following User Says Thank You to berlinermaxe For This Useful Post: | ||
![]() |
2010-11-16
, 22:55
|
Posts: 436 |
Thanked: 298 times |
Joined on Jan 2010
@ England
|
#9
|
![]() |
2010-12-01
, 17:58
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#10
|
dbus-send --type=method_call --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.extension.set_extension_property string:volume variant:uint32:55
dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:http://streaming.gmgradio.com/rockradiomanchester.m3u > /dev/null
dbus-send --type=method_call --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.extension.set_extension_property string:volume variant:uint32:65
dbus-send --type=method_call --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.extension.set_extension_property string:volume variant:uint32:75
dbus-send --type=method_call --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.stop
dbus-send --type=method_call --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.extension.set_extension_property string:volume variant:uint32:100
It requires the applications Alarmed and PyRadio.
Thanks to Nicolai for indicating the command line solutions at
http://wiki.maemo.org/Phone_control#Networking
The basic setup is:
1. Determine the Internet Access Point ID of your home ID
2. Create a timed command in Alarmed to connect to Wi-Fi at that IAP_ID
3. Create a timed command in Alarmed to start PyRadio shortly after connecting to Wi-Fi
4. Create a standard alarm in Alarmed for 10 or 30 minutes later, in case Wi-Fi or Pandora is down, for safety
-- Details of procedure:-
1. Discover the ID for your home wi-fi in the saved connections:
1a. In XTerminal type
gconftool -R /system/osso/connectivity/IAP
1b. Look in the text which returns for the line
name = [name of your home wi-fi]
1c. look a couple of lines lower for the line
/system/ossoconnectivity/IAP/ [then a long string of characters]
1d. The long string of characters is the IAP_ID of your home Wi-Fi.
1e. Copy & paste may not work from XTerminal, so minimize it so that you may refer to it again for the IAP_ID in a later step
2. Create a timed command in Alarmed to connect to Wi-Fi at that IAP_ID:
2a. Open Alarmed, then New Event
2b. Change Event Type from "Alarm" to "Command Execution"
2c. Change interval from "Every Minute" to "Daily"
2d. Name it "Clockradio Wi-Fi connect" or something
2e. Change "Time" to 5 minutes *before* you want the radio to play
2f. Change "Enter Command" to
dbus-send --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:* uint32:0
(All on one line, note the spaces, substitute your IAP_ID for *)
2g. Save the Event.
3. Create a timed command in Alarmed to start PyRadio
3a. Open Alarmed, then New Event
3b. Change Event Type from "Alarm" to "Command Execution"
3c. Change interval from "Every Minute" to "Daily"
3d. Name it "Daily ClockRadio" or something
3e. Change "Time" to the time you want the radio to play
3f. Change "Enter Command" to
/opt/pyRadio/pyRadio.py
3g. Save the Event.
4. Create a standard alarm in Alarmed for 10 or 30 minutes later, in case Wi-Fi or Pandora is down, for safety
If no typos, etc., at the set times connection to wi-fi will be made, and pyRadio will start up, on your last Pandora station at whatever volume you have left it. X minutes later a regular alarm will go off, just in case.