1
XML Exchange / Re: Internet Radio
« on: October 25, 2013, 08:26:49 AM »
Works well.Thanks
Is it possible to write the url in a pls data?
Is it possible to write the url in a pls data?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
<?xml version="1.0" encoding="utf-16"?>
<command id="821" name="Radio" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>XJson.Btn.KB</cmdType>
<cmdString>stop</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<cmdString>Please wait while I search for {1} radio stations</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw</cmdType>
<cmdString>GUI.ActivateWindow&&"window": "music", "parameters": [ "plugin://plugin.audio.radio_de/stations/genre/{1}/" ]</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>PY.ExecString</cmdType>
<cmdString>import random</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>PY.ExecString</cmdType>
<cmdString>result=random.randint(1,500)</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.SetVar</cmdType>
<cmdString>myrand&&{LastResult}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>OSD.ShowText</cmdType>
<cmdString>random number: {Var.myrand}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw</cmdType>
<cmdString>XBMC.GetInfoLabels&&"labels": ["Container(id).ListItem({Var.myrand}).Label"]</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<cmdString>:."(.*)"</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<cmdString>Opening Stream: {Match.1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>OSD.AddText</cmdType>
<cmdString>Opening Stream: {Match.1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw</cmdType>
<cmdString>XBMC.GetInfoLabels&&"labels": ["Container(id).ListItem({Var.myrand}).FileName"]</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<cmdString>:."(.*)"</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>OSD.AddText</cmdType>
<cmdString>item id: {Match.1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.ExecBuiltin</cmdType>
<cmdString>PlayMedia(plugin://plugin.audio.radio_de/station/{Match.1})</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.Pause</cmdType>
<cmdString>4000</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw</cmdType>
<cmdString>GUI.SetFullscreen&&"fullscreen":"toggle"</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>wähle</phrase>
<payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\RadioGenres.xml</payloadFromXML>
<phrase>starte radio</phrase>
</command>
<?xml version="1.0" encoding="utf-16"?>
<command id="499" name="Schlafzimmer" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>XJson.SetConnection</cmdType>
<cmdString>192.168.178.31&&80</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>verbindung Schlafzimmer</phrase>
</command>
<?xml version="1.0" encoding="utf-16"?>
<commandGroup open="True" name="Radio" enabled="False" prefix="" priority="0" requiredProcess="" description="">
<command id="837" name="playRadioMatch" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="\\HTPC-PC\Users\Public\Music">
<action>
<cmdType>Scrape</cmdType>
<cmdString>{Match.1}}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>File.Write</cmdType>
<cmdString>C:\Users\Public\Music\radio.pls&&{LastResult}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw/</cmdType>
<cmdString>Player.Open&&"item":{"file":"smb:\\HTPC-PC\Users\Public\Music\radio.pls"}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Launch.OpenFile</cmdType>
<cmdString>radio.pls</cmdString>
<cmdRepeat>0</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<cmdString>File.=(.*)</cmdString>
<cmdRepeat>0</cmdRepeat>
</action>
<action>
<cmdType>Sound.PlayStream</cmdType>
<cmdString>{Match.1}</cmdString>
<cmdRepeat>0</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<cmdString>Title.=\(.*?\)(.*)</cmdString>
<cmdRepeat>0</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<cmdString>{Match.1} wird abgespielt</cmdString>
<cmdRepeat>0</cmdRepeat>
</action>
<action>
<cmdType>OSD.ShowText</cmdType>
<cmdString>{Match.1} wird abgespielt</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.Standby</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>starte radio</phrase>
<event>playRadioMatch</event>
</command>
<command id="798" name="shoutcast genre" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>VC.Standby</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Stop</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<cmdString>suche Radiosender {1}</cmdString>
<cmdRepeat>0</cmdRepeat>
</action>
<action>
<cmdType>Scrape</cmdType>
<cmdString>http://www.shoutcast.com/radio/{1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<cmdString>href="(.*?)".*?class="playbutton</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>PY.ExecString</cmdType>
<cmdString>import random</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>PY.ExecString</cmdType>
<cmdString>result = random.randint(1,{#M})</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<cmdString> {#M} Radiosender gefunden, spiele nummer {LastResult}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.TriggerEvent</cmdType>
<cmdString>playRadioMatch&amp;&amp;{LastResult}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.Standby</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>shoutcast, inizialisiere radiowiedergabe</phrase>
<phrase>genre, station</phrase>
<payloadList>Alternative,Blues,Classical,Country,Decades,Easy Listening,Electronic,Metal,Oldies,New Age,Pop,Public Radio,Rap,Reggae,Rock,</payloadList>
</command>
<command id="799" name="stop stream" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>TTS.Stop</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>SendKeys</cmdType>
<cmdString>x</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.Standby</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>stope radiowiedergabe</phrase>
</command>
<command id="833" name="stop stream schlafzimmer küche" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>TTS.Stop</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Btn.KB</cmdType>
<cmdString>x</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.Standby</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>stope radiowiedergabe schlafzimmer,stope radiowiedergabe küche</phrase>
</command>
<command id="839" name="Alle räume" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Scrape</cmdType>
<cmdString>{Match.1}}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>File.Write</cmdType>
<cmdString>C:\Users\Public\Music\radio.pls&&{LastResult}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.SetConnection</cmdType>
<cmdString>192.168.178.33&&80</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw/</cmdType>
<cmdString>Player.Open&&"item":{"file":"smb:\\HTPC-PC\Users\Public\Music\radio.pls"}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.SetConnection</cmdType>
<cmdString>192.168.178.31&&80</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw/</cmdType>
<cmdString>Player.Open&&"item":{"file":"smb:\\HTPC-PC\Users\Public\Music\radio.pls"}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.SetConnection</cmdType>
<cmdString>192.168.178.92&&8080&&xbmc&&mario11111</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw/</cmdType>
<cmdString>Player.Open&&"item":{"file":"smb:\\HTPC-PC\Users\Public\Music\radio.pls"}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.Standby</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>starte radiowiedergabe in allen räume</phrase>
<event>playRadioMatch</event>
</command>
<command id="851" name="Alle räume stop" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>XJson.SetConnection</cmdType>
<cmdString>192.168.178.33&&80</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Btn.KB</cmdType>
<cmdString>x</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.SetConnection</cmdType>
<cmdString>192.168.178.31&&80</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Btn.KB</cmdType>
<cmdString>x</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.SetConnection</cmdType>
<cmdString>192.168.178.92&&8080&&xbmc&&mario11111</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>SendKeys</cmdType>
<cmdString>x</cmdString> If i use XJson.Btn.KB on my HTPC XBMC FREEZES
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.Standby</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>stope radiowiedergabe in allen räumen</phrase>
</command>
</commandGroup>
<?xml version="1.0" encoding="utf-16"?>
<command id="406" name="suche Audioausgänge" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>AudioEndpoint.GetMatches</cmdType>
<cmdString>{CR}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>OSD.ShowText</cmdType>
<cmdString>Found {#M} devices</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>OSD.AddText</cmdType>
<cmdString>{i}: {Match.{i}}</cmdString>
<cmdRepeat>{#M}</cmdRepeat>
</action>
<phrase>suche Audioausgänge</phrase>
</command>