Show Posts

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.


Messages - PegLegTV

Pages: 1 ... 30 31 [32] 33 34
466
works great for the numbers, i had to change the enter action to xjson.btn.kb enter

the other enter action didn't work for me i also tried to switch enter to return but no luck

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.0.1.0-->
<command id="459" name="number keys" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Results.RegEx</cmdType>
    <params>
      <param>(\d)</param>
      <param />
      <param>{1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>XJson.Raw</cmdType>
    <params>
      <param>Input.ExecuteAction</param>
      <param>"action":"number{Match.{i}}"</param>
    </params>
    <cmdRepeat>{#M}</cmdRepeat>
  </action>
  <action>
    <cmdType>XJson.Raw</cmdType>
    <params>
      <param>Input.ExecuteAction</param>
      <param>"action":"enter"</param>
    </params>
    <cmdRepeat>0</cmdRepeat>
  </action>
  <action>
    <cmdType>XJson.Btn.KB</cmdType>
    <params>
      <param>enter</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>sudo channel</phrase>
  <payloadList>100, 154</payloadList>
</command>


 8) thanks for the command

467
Do you really need to send text instead of actual digits when using xjson.btn.kb. ?
yep,

I've tried remote.xml ,keyboard.xml and no keymap at all and they all gave me the same results with the numbers,
i need to send the numbers individually with text  ::confused

when I get done with my PTVL setup I'll make sure I upload it,  ;D

468
UPDATE: finished the PTVL changing channels by names group http://voxcommando.com/forum/index.php?topic=1959.msg16925#msg16925



looking for some help

I'm trying to redo the current way that i change to a specific channel in PseudoTV Live with VC.
right now i have a separate command for each channel

this one is for channel 301


what I'm trying to do is use a payload xml with the channel names and channel numbers so i can cut down on the amount of commands i need to change the channel,
I'm wondering if there would be another way to send 2 or 3 digits at the same time so i can carry them in a payload, instead of having to make a command for each channel?

any help would be great, thanks


EDIT: looks like I might be able to use SendKeys to change the channel with 2 and 3 digit numbers

469
updated the command in the first post, it can now send url's from add-ons and media that both xbmc's have access to through file shares, personal media does not have to be in the library for this to work

http://voxcommando.com/forum/index.php?topic=1954.msg16839#msg16839


thanks for the idea jitterjames  8)

470
Just got done testing it with out MySql and the way i have the command built it has to be added to library in order for it to get the right info, so i added a source to 2 of my computers that does not have a MySql server running on them and used the same network share paths and tried it... and it seems to work with out MySQL 

as for doing it with out the id i would imagine it would need the file path of the video and would still have to be shared over the network, I'm a newbie to python and xjson commands but i will see what i can figure out on how to get the file path from the now playing media  ;D

471
I'm using a MySQL setup, however according to the link i shared, where i got the idea from, he claims his doesn't require a MySQL or path substitution to use his
"both must have access to the original source. MySQL and path subsititution are not necessary"

i don't understand python that well but from what i saw in his code it looked to me as if we where using similar xjson commands,

as for the ids im not sure if it would be possible if i get some extra time ill see what i can figure out

472
 ::banana UPDATE: now have send2 and pull from, and have a group for either Sql or MySql   ::banana 
NOTE: MySql is an advanced Database setup if you are not sure which group to use then use "Send2 & Pull From With out MySql" Below

UPDATE: Now works with file paths and urls, (thanks for the idea jitterjames) i tested it on a handful of streaming add-ons and all of them except youtube would resume where you left off, for personal media both XBMC'S need to have access to the file through network file share, the media does not have to be in your library though


I got the idea for this from the XBMC/KODI FORUM SendTo script http://forum.kodi.tv/showthread.php?tid=147178

this is used to send media or pull media (movies,episodes, and music) from one XBMC to another XBMC

simply say:
"Send to the Living Room" (or "Pull from the Living Room")

  • it will find the path to either the file or url that is being played
  • then do a stepback on the media (same as pushing left, in case it doesn't pause due to timing)
  • then stop the video
  • connects to the receiving xbmc
  • sends the stop command to stop playing media (if any)
  • resumes playing the sent media on the receiving xbmc, then pauses it
  • connects back to the sending xbmc
  • then goes to the home screen(on the sending xbmc)


Make sure to change the IP, port numbers, username and password to match System>>Services>>Webserver in xbmc on the XJson.SetConnection Actions


Send2 & Pull From (Advanced)
this one is used with MySql
Attached Below


Send2 & Pull From  With OUT MySql
if you are not sure then use this one
Attached Below


all of these commands use the same payload XML, I attached an example (xbmcIPs.xml) of what it should look like, you only need the last digits of your XBMC IP's (192.168.1.***) and what you want to call that device in the phrase field, the xbmcIPs.xml goes into your xbmc payload folder

NOTE: depending on the speed of your network you may have to adjust the vc.pause time, so the pause command gets sent at the right time

 

473
+1 as well  8) works great, also after looking through your build I noticed I forgot to add the rebuild action in  :bonk so I added it above, I'll have to see if i can make my TV Screen go to sleep so I can use it for my good night and alarm command 

474
here is the pandoki group i made to work with XBMC/KODI 

once you add the command to VC you will want to execute "create Pandora Map First" command

then i would play each station you have for a couple seconds so you can add all of your stations, once you are done with that say

"update Pandoki Radio Stations"
this command will copy your xbmc.log to your vc folder then find all the stations and add them to the "Pandora" Map table then create "PandokiRadioStations.xml" in your xbmc payloads folder then delete xbmc.log from your vc folder, any time you add or delete a radio station form Pandoki addon use this command to update the xml and Map table

"XBMC PANDOKIE"
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.0.1.0-->
<commandGroup open="True" name="XBMC pandoki" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="998" name="Create Pandora Map First" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="Run this first to creat the map table ">
    <action>
      <cmdType>Map.CreateTable</cmdType>
      <params>
        <param>Pandora</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
  <command id="995" name="update Pandoki Radio Stations" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="first time you run this i would go through and listen to all of your radio stations so there in the log file&#xD;&#xA;&#xD;&#xA;then after that any time you play a new station or delete a station you can run this and it will update the map and paylod.xml">
    <action>
      <cmdType>File.Copy</cmdType>
      <params>
        <param>{Path.Appdata}\XBMC\xbmc.log</param>
        <param>{Path.VC}\xbmc.log</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>File.Read</cmdType>
      <params>
        <param>{Path.VC}\xbmc.log</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>Notice:\splugin.audio.pandoki(.*?) \d\d\d\d\s'</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <if ifBlockDisabled="False" ifNot="False">
      <ifType>(A)Contains(B)</ifType>
      <ifParams>{LastResult}&amp;&amp;Play</ifParams>
      <then>
        <action>
          <cmdType>Results.RegEx</cmdType>
          <params>
            <param>Notice:\splugin.audio.pandoki\sPlay\s\sOK\s(.*?)\s'(.*?)'</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>Map.Set</cmdType>
          <params>
            <param>Pandora</param>
            <param>{Match.{i}.1}</param>
            <param>{Match.{i}.2}</param>
          </params>
          <cmdRepeat>{#M}</cmdRepeat>
        </action>
      </then>
      <else />
    </if>
    <if ifBlockDisabled="False" ifNot="False">
      <ifType>(A)Contains(B)</ifType>
      <ifParams>{LastResult}&amp;&amp;Delete</ifParams>
      <then>
        <action>
          <cmdType>Results.RegEx</cmdType>
          <params>
            <param>Notice:\splugin.audio.pandoki\sDelete\s\s\s(.*?)\s'(.*?)'</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>Map.Query</cmdType>
          <params>
            <param>delete from Pandora where fromKey="{Match.{i}.1}"</param>
          </params>
          <cmdRepeat>{#M}</cmdRepeat>
        </action>
      </then>
      <else />
    </if>
    <action>
      <cmdType>Map.ExportPayloadXML</cmdType>
      <params>
        <param>XbmcPayloads\PandokiRadioStations.xml</param>
        <param>Pandora</param>
        <param>True</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>File.Delete</cmdType>
      <params>
        <param>{Path.VC}\xbmc.log</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Pandoki Radio Stations Updated</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Group.Rebuild</cmdType>
      <params>
        <param>XBMC pandoki</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>update Pandoki Radio Stations</phrase>
  </command>
  <command id="948" name="Play pandoki radio station {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="I added the action to return to the home screen because I prefer that view, but it's not necessary.">
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Queuing station: {PF.1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>GUI.ActivateWindow</param>
        <param>"window": "music", "parameters": ["plugin://plugin.audio.pandoki/?play={1}","return"]</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>GUI.ActivateWindow</param>
        <param>"window": "home"</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Play pandoki station</phrase>
    <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">XbmcPayloads\PandokiRadioStations.xml</payloadFromXML>
  </command>
  <command id="1005" name="What pandoki stations do i have?" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>File.Read</cmdType>
      <params>
        <param>{Path.VC}\XbmcPayloads\PandokiRadioStations.xml</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>&lt;phrase&gt;(.*?)&lt;/phrase&gt;</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.MatchConcat</cmdType>
      <params>
        <param>, </param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Pandoki Radio Stations:</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.AddText</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.SpeakSync</cmdType>
      <params>
        <param>here is a list of your pandoki radio stations</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.SpeakSync</cmdType>
      <params>
        <param>{Match.{i}.1}</param>
      </params>
      <cmdRepeat>{#M}</cmdRepeat>
    </action>
    <phrase>What pandoki stations do i have</phrase>
  </command>
  <command id="975" name="Go to Pandoki" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Addons.ExecuteAddon</param>
        <param>"addonid": "plugin.audio.pandoki" </param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Go to Pandoki, Show Pandoki library</phrase>
  </command>
</commandGroup>

you can also ask "What pandoki stations do i have?" and it will list them with osd and read the list to you

if you are using KODI you will need to correct the file paths and log names in the "update Pandoki Radio Stations" command

thanks, nime5ter & jitterjames for all the help  ::banana

EDIT: found an issue with the "What pandoki stations do i have?" command once I had all my stations added so I updated the code above with the fixed command



475
sweet thanks, must have been using the wrong search terms, never saw that post

Thanks

476
after deleting a radio station and looking threw the log i found that the add-on outputs the station name and ID that was deleted
Code: [Select]
NOTICE: plugin.audio.pandoki Delete   9173 'Radioactive Radio'so I'm wondering if there is a way to remove that specific key and value from a map table with a command?

Thanks

477
If you can get all sation IDs that way, then copy the source to a text file and use the regex on that.

If you prefer to keep using the log method then you can use a map table and export the map to a payload xml. This will get rid of duplicates.

sweet thanks, :D that works great to remove duplicates, and also keeps all stations that haven't been played recently so the payload stays up to date with what i have.   ::wiggle

This is a job for RoboBrowser, rather than a regular scrape. Actually, with RoboBrowser, those who want to can interact with Pandora directly if they don't want to run XBMC.

James is working on a set of commands now for that. You will still be able to use the one "scrape Pandora stations" command to generate your xml for XBMC if you prefer to continue using Pandoki, so it should be a flexible option for different people's preferences.

i like the idea of doing this as well Because the addon's don't always work as wanted (sometimes the audio cuts out untill the next song starts) I use Pandora for my "good night" command and my alarm clock, so if i do the RoboBrowser way ill have to see if i can make the screen on my tv go fully black with my ir blaster so the room stays dark  ::banana

478
thanks for the commands, I've spent about 30min trying to find a list of my station id's by scraping the pandora site but no luck, the only way i can find all my station id's in one place, is by going to stations under my profile and right-click then click "view page source" i have scraped that URL with "scrape" but it leaves that section out  ???

i also noticed that if i listen to the same station multiple times while logged in it would be added to the payload multiple times when i scrape it, so scraping log file wont work unless there's a way for regex to see duplicates and remove them


again thanks

479
UPDATE: THE NEXT TWO LINKS ARE THE FINISHED COMMANDS FOR THE "PANDOKI" (PANDORA) ADD-ON FOR XBMC/KODI AND THE 2ND LINK IS FOR JITTERJAMES PANDORA WITH ROBO BROWSER

"PANDOKI" GROUP
http://voxcommando.com/forum/index.php?topic=1950.msg16805#msg16805

PANDORA WITH ROBO BROWSER GROUP
http://voxcommando.com/forum/index.php?topic=1950.msg16811#msg16811
                                                                                                                                                                           

there is a new Pandora addon for XBMC called "Pandoki" http://forum.kodi.tv/showthread.php?tid=205547

with this addon you can launch based on station ID Im trying to get it to work with xJson.raw

this is the command you would use for calling an individual channel in your keyboard.xml
Code: [Select]
<f7>ActivateWindow(10025,plugin://plugin.audio.pandoki/?play=1234)</f7>I tested it and it does work, but i have 20+ stations and want to be able to call them all by name
plus make a command to add new stations to my list with out having to edit the keyboard.xml each time

so far I have tried different variations of the commands bellow, I'm able to launch pandoki, but not by station id
I also added a command to pull the info you need from the xbmc log file to a maptable called "Pandora"
In order to scrape the log you will have to fully exit xbmc

XBMC Pandoki group
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.0.1.0-->
<commandGroup open="True" name="xbmc pandoki" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="947" name="scraping xbmc log !!!! MUST EXIT XBMC TO RUN !!!!!" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>File.Read</cmdType>
      <params>
        <param>{Path.Appdata}\XBMC\xbmc.log</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>Notice:\splugin.audio.pandoki\sPlay\s\sOK\s(.*?)'(.*?)'</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Map.CreateTable</cmdType>
      <params>
        <param>Pandora</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Map.Set</cmdType>
      <params>
        <param>Pandora</param>
        <param>{Match.{i}.1}</param>
        <param>{Match.{i}.2}</param>
      </params>
      <cmdRepeat>{#M}</cmdRepeat>
    </action>
  </command>
  <command id="927" name="pandoki test launch by station" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="ActivateWindow(10025,plugin://plugin.audio.pandoki/?play=1234)">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Addons.ExecuteAddon</param>
        <param>"addonid": "plugin.audio.pandoki" , "options":{"play:6485":ture}</param>
      </params>
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Addons.ExecuteAddon</param>
        <param>"addonid": "plugin.audio.pandoki" , "options":{"play=6485":true}</param>
      </params>
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Addons.ExecuteAddon</param>
        <param>"addonid": "plugin.audio.pandoki/?play=1234" </param>
      </params>
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Addons.ExecuteAddon</param>
        <param>"addonid": "plugin.audio.pandoki" </param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
</commandGroup>

"pandoki test launch by station" has different ways I have tried but no luck

any help would be great
thanks


480
XML Exchange / Re: Reminders with a Memory
« on: January 03, 2015, 10:58:40 PM »
The group attached below is outdated

this version worked for VC versions before 2.1.3.8, but has not been updated or tested

Pages: 1 ... 30 31 [32] 33 34