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.


Topics - PegLegTV

Pages: 1 ... 3 4 [5]
61
Kodi (XBMC) Frodo / Gotham / Isengard / Jarvis / XJSON.EventError
« on: February 03, 2015, 06:19:48 PM »
I updated to 2.1.3.3 over the weekend on my Lenovo Q190 running xbmc 13.2

every couple of XJSON events are showing up as XJSON.EventError when i hover over them it says (with out the "")

"{1} System.nullReferenceException: Object reference not set to an instance of an object
   at vcPlugin.XbmcJsonRpcConnection.onAnnouncement(String data)
Commands triggered:"


I have tried Restarting VC and XBMC also restarted the Computer and also tried changing the ports on xbmc and VC but no luck, I also looked at my log in Eventghost and the events are coming through no problem in Eventghost

I'm not sure if this is related but

I aslo had to create a command that will switch back and forth between audioendpoints, otherwise every other time VC is fully restarted I wouldn't have any audio output ( I didn't have this problem until i upgraded)

I'm running this version on my main PC with no issuse and double checked all setting in VC and XBMC between the two systems and they are set to the same settings

any help would be great
Thanks

62
This was Discussed on here over a year ago - shortcut for volume amplification

I came across another way of doing it with a direct command (no OSD Setting Window)

XBMC Volume Amplification
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.3.3-->
<commandGroup open="True" name="XBMC Volume Amplification" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="931" name="Amp volume {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Input.ExecuteAction</param>
        <param>"action":"volampup"</param>
      </params>
      <cmdRepeat>{1}</cmdRepeat>
    </action>
    <phrase>Increase, Amplifie, Raise</phrase>
    <phrase optional="true">the</phrase>
    <phrase>Volume</phrase>
    <phrase optional="true">by</phrase>
    <payloadRange>1,60</payloadRange>
  </command>
  <command id="560" name="decrease volume {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Input.ExecuteAction</param>
        <param>"action":"volampdown"</param>
      </params>
      <cmdRepeat>{1}</cmdRepeat>
    </action>
    <phrase>decrease, lower</phrase>
    <phrase optional="true">the</phrase>
    <phrase>Volume</phrase>
    <phrase optional="true">by</phrase>
    <payloadRange>1,60</payloadRange>
  </command>
  <command id="863" name="Default Volume" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Input.ExecuteAction</param>
        <param>"action":"volampdown"</param>
      </params>
      <cmdRepeat>60</cmdRepeat>
    </action>
    <phrase> Reset Default Volume</phrase>
  </command>
</commandGroup>

The "reset default volume" command sends the decrease volume command 60 times so even if you had your volume increased by 10 it would still send the decrease volume command 60 times

63
I thought I should start a new post for this since the last one is from 2013 http://voxcommando.com/forum/index.php?topic=1172.msg9948#msg9948

this group has 2 separate commands one for discrete pause and the other for discrete play
this sends a real play, and pause command instead of changing the player speed
(couldn't un-pause with regular "play pause" after paused with changing the player speeds)


Discrete Play Pause:
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.0.1.0-->
<commandGroup open="True" name="Discrete Play Pause" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="491" name="XBMC Play" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Player.GetActivePlayers</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>"playerid": (.*?),</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Player.PlayPause</param>
        <param>"playerid":{Match.1},"play":true</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
  <command id="492" name="XBMC Pause" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Player.GetActivePlayers</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>"playerid": (.*?),</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Player.PlayPause</param>
        <param>"playerid":{Match.1},"play":false</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
</commandGroup>


64
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

65
 ::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

 

66
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


67
XML Exchange / Reminders with a Memory
« on: January 03, 2015, 10:58:24 PM »
UPDATED: 7/12/15 (minor XBMC/KODI notification fix)       

                  NOTE:Python plugin is Required for this command 
                  THIS REQUIRES VC VERSION 2.1.3.8 OR HIGHER TO WORK

this group will use a log file to keep track of set timers so if you Restart VC it will reset the timers, and can tell you how much time is remaining for your timers 


"Remind me in XX Minutes(hours) to walk the dog"

when minutes or hours is used it will calculate the end time of the timer
and set the event to go off at that time, it will write the reminder to a log file (Reminders Log2.txt) in your VC folder

if you restart VC during that time, when it starts again it will read that log file and set the timers again


"Remind me at 12:10 PM(AM) to check the food"

this will set the event to the specified time and write to the log as well so it can be reset
the reminder can be set for on the hour or 5min intervals


when the reminders go off they will say

"excuse me you wanted me to remind you to walk the dog"
(XBMC/KODI OSD)OSD: Reminder: - Walk the Dog
and also deletes the log entry for that timer


"What Reminders do I have"
VC: "You have XX Reminders"
VC: "Reminder number 1 to walk the dog has 0 hours and 17 minutes remaining"

to cancel an individual timer you will first have to ask

"What Reminders do I Have"

then use the Reminder number to cancel that reminder so if you wanted to cancel reminder number 3 you would say

"cancel reminder number 3" and it will cancel that reminder and delete it from the log file so it wont be reset the next time VC Restarts

"cancel all reminders":
will delete "Reminders log2.txt and recreate it, and stop all timers.

once you have copied the command to VC say "cancel all reminders" it will create the file "Reminders log2.txt"

I also added Discrete Pause / Play for XBMC
 along with osd in XBMC if you want to use these you will need to enable them (change the "0" to a "1" at the end of each disabled command)
with XBMC actions enabled, when the reminders go off it will pause what your watching and say "excuse me....." it will not un-pause, (kind of like acknowledging the timer went off)


NOTE: if you are using voxcommandoSP.exe you will need to change the payloaddictation in the "Remind me" command to a payload list and add a list of reminders you would set like "walk the dog, take out the trash, check the food"
http://voxcommando.com/mediawiki/index.php?title=Version_2#Choice_of_speech_engines


Command was to big to post in a code box so I attached it as an xml,  How to add an XML group to VC

68
VoxCommando Basics and Core Features / "how do you spell ...."
« on: November 24, 2014, 11:32:42 PM »
I'm trying to create a command for spelling so i can say "how do you spell {measuring}" {measuring} = payload dictation regular
then have it say "measuring, m e a s u r i n g"  and have an OSD with the word

i know that in order to get it to spell the word out well enough to be understood by tts, I need to add a semicolon and space after each letter  "m: e: a: s: u: r: i: n: g:"

i thought i could have vox right the word to a text file and then have it add the semicolon and space after each letter but after messing around with vox the only way i could think of do this would be to have a batch or python script do it for me but i don't know enough about batch to do it my self and i don't know python at all. so i thought i would look here to see if anyone had a better idea on how to get this to work


simply put
me :"how do you spell measuring"
vox: "meausuring, m e a s u r i n g" with OSD

any help would be great
thanks

Pages: 1 ... 3 4 [5]