This is my rule, i already get the url in the log…
rule "Squeezebox DLF Podcast"
when
System started
then
var String url = "http://www.deutschlandfunk.de/podcast-nachrichten.1257.de.podcast.xml"
logInfo ("Squeezebox-DLF", "1 --- Stream URL: " + url)
end
It is not much, but a good beginning
Can someone help me? In my link above there is an example like it is done in php, but i´m no programmer…
I tried the feed binding, but with this i only get the date and time of the latest feed, not the url of the mp3-file.
rule "Squeezebox DLF Podcast"
when
System started
then
val String longurl = "http://www.deutschlandfunk.de/podcast-nachrichten.1257.de.podcast.xml"
val String url = transform("XPATH", "//channel/item[1]/link/text()", longurl)
logInfo("Squeezebox-DLF", "1 --- Stream URL: " + url)
end
rule "Squeezebox DLF Podcast"
when
Item LivingRoom_WallSwitch changed to ON
then
val String longurl = sendHttpGetRequest("http://www.deutschlandfunk.de/podcast-nachrichten.1257.de.podcast.xml")
val String url = transform("XPATH", "//channel/item[1]/link/text()", longurl)
logInfo("Squeezebox-DLF", "1 --- Stream URL: " + url)
end