Hi All,

I have been after a solution to be able to use the BBC iPlayer listen
again streams as my alarm.
As it wasn't currently possible I have come up with a working
solution.

If you would like to run this solution you need:
Some PHP web space with curl enabled
The attached script
The URL of the last show on BBC listen again service.

First download the iplayer_alarm.php.txt and edit the file
at the top of the file you will find a line saying
$url =
"http://www.bbc.co.uk/radio/aod/radio1_aod.shtml?radio1/moyles";;
This URL gives you the last Chris Moyles show that was aired. To change
it to the latest edition of the archers it would look like this
$url =
"http://www.bbc.co.uk/radio/aod/radio4/aod.shtml?radio4/archers";;

The other option you can change is the cache it is currently set not to
cache the page for the day.  if you would like to page cache turned on
then change the following line from
$cache = 0;
to
$cache = 1;

Once you have finished editing the file rename it from
iplayer_alarm.php.txt 
to 
iplayer_alarm.php
then upload it to your webspace.

The next thing you have to do is add a favourite to your squeeze
server
Put what ever you want to call it in the name box and in the URL box
put:

iplayer://aod?ms=http://<your webspace
url>/iplayer_alarm.php?op=pid&icon=http://<your webspace
url>/test.php?op=icon

Replacing <your webspace url> with the address of your webspace.
save the favourite and test to see if the link works by playing the
saved favourite.

If all is well you can now set up your alarm.

This comes with no warranties and will probably break the first time
the BBC change there page structure but hopefully it will get you going
for now.


I don't know if Triode is going to see this but if you do and like it
maybe you would like to integrate it into the plug-in.  Maybe put the
alarm url in the plug-in settings and have a common URL for the alarm
(e.g. iplayer://alarm) that could be saved as a favourite.  If you do
want to do this and would like my help let me know.

Hope this all makes sense and hope you guys can make it work for you.

Thanks

Alrighte Then


+-------------------------------------------------------------------+
|Filename: iplayer_alarm.php.txt                                    |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=12776|
+-------------------------------------------------------------------+

-- 
alrighte_then
------------------------------------------------------------------------
alrighte_then's Profile: http://forums.slimdevices.com/member.php?userid=33841
View this thread: http://forums.slimdevices.com/showthread.php?t=91768

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to