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 - DHHJ

Pages: [1] 2 3 ... 5
1
General Discussion / Re: Wink Hub - anyone using this device?
« on: April 27, 2015, 01:16:04 PM »
Got a SmartThings hub for XMAS and its a great box. Version 2 is coming out next month and will move some of the functionality out of the cloud, into the hub. Haven't had too much time to play with it yet but its controlling my garage, a few lights and switches- all without problem. I have a proximity sensor that triggers within a geographic fence. Also can sense WiFi phones etc. as they approach home. Interesting possibilities and a very large, active user base/forum. Maybe VC and ST sometime in the future- its REST based right now- apparently http is on the way with V2 as well.

2
Python Scripting / Re: Setting Multiple Results
« on: September 01, 2014, 11:30:31 AM »
Thx- got it now!    :bonk

I'd be happy to update the Python entry in the wiki- to provide an example or two. If that makes sense, can you set up my access privileges?

3
Python Scripting / Setting Multiple Results
« on: August 31, 2014, 02:11:41 PM »
Is there a way to pass more than one variable from a PY file back to VC?

For example, I can use:

result = 1.2345 in a Python script and when I return to the LCB, I can see "result" using:

OSD.ShowText {LastResult}

but what if I want to return 2 results, say res1 and res2?

I tried executing, in Python,

vc.callAction("Results.SetVar","res1","abcd") and also
res2 = "defg"

and then tried to access either of them in the LCB, using:
OSD.ShowText {var.res1} or
OSD.ShowText {var.res2}

Neither worked- I guess I'm looking for a kind of Results.GetVar action?

4
Python Scripting / Re: Help with an Action
« on: August 25, 2014, 11:38:35 AM »
Sorry, I was trying to be brief- just looking for some syntax help (example code) with the Python wiki entry for GetValue as I am just playing with Python as a noob.

I am looking at using a phrase to get values in multiple xml files. For example, if I had a Name and had diffferent xml files with info about Name, like

Name's phone number?
Name's favourite sport?
Name's shoe size?
Name's birthday?
etc.

I'd like to do something like
vc.callAction("c:\\voxcommando\\vc2_008\\payloads\\shoesize.xml","Joe Blow",false)to get their shoe size and
vc.callAction("c:\\voxcommando\\vc2_008\\payloads\\sport.xml","Joe Blow",false) to get their favourite sport

Thx

5
Python Scripting / Help with an Action
« on: August 24, 2014, 08:10:42 PM »
Can I get a simple few lines showing the correct syntax for GetValue. I tried:

Code: [Select]
from System.Collections.Generic import *
vc.callAction("c:\\voxcommando\\vc2_008\\payloads","Supertramp",false)

but am getting a expected List[str], got boolean error? Thx.

6
General Discussion / Help with Multiple Columns in Payload?
« on: July 30, 2014, 05:09:23 PM »
I'm trying to figure out if/how I can access a "database" of items using the payload and xml features of VC.

As a hypothetical (and strange!) example, if I had a list of 50 peoples names, and for each name I wanted to track their phone extension, their PC name, their favourite sports team and their age, how could I store this in a xml file that could be used with VC?

I am thinking of asking "What is John's age?" or "What is the name of Jane's PC" and getting an appropriate response?


7
All the best James........

8
Python Scripting / Re: Decimal Data Types
« on: March 27, 2014, 06:17:32 PM »
Thanks- that seems to meet the need. I'll play with it and let you know!

9
Python Scripting / Re: Decimal Data Types
« on: March 27, 2014, 12:02:53 PM »
Yes, that's my question/issue. How can I do something like....

"Calculate 12% of 65.7" or "What's the square root of 78.9"

10
Python Scripting / Decimal Data Types
« on: March 26, 2014, 05:22:03 PM »
Is there a way I can "pass" a decimal number to a python script/file? Is there a VC Method that can be used?

I assume payload range is integer only? What is the upper range of the payload range- I don't think this is the way to go, just curious.

I'd like to build a VC calculator........building on this example http://voxcommando.com/forum/index.php?topic=73.msg385#msg385 and adding some scientific functions, trig, etc.

11
Other Plugins / Re: USB UIRT with multiple values in payload
« on: March 25, 2014, 11:14:00 AM »
Thanks folks for the ideas. I was looking for some assistance on how best to debug- I didn't see the mouse over. I will also try to play with OSD and SetVar to see if I can get some intermediate results as the macro flows, to aid in error checking.

I do know Regex quite well (you wouldn't think though with my slash typo!) and have a fair degree of software development in my background. I guess I miss my NetBeans/Visual Studio...............

Thanks again. Great software.

12
Other Plugins / Re: USB UIRT with multiple values in payload
« on: March 24, 2014, 04:16:24 PM »
Thanks James- that did it! Should have seen it........

Which leads me to a request (probably should put this in Feature Requests!)

I know you're busy with V2 but have you considered putting in a simple debug capability into the LCB to assist in macro development? It would be great if we could single step though a macro and take a look at variables, {Match.2}, {PF.1}, {#M}, {LastResult}, etc. on the fly. May cut down on the number of macro support questions in the forum as well  ;)

Thanks for your help.

13
Other Plugins / Re: USB UIRT with multiple values in payload
« on: March 23, 2014, 07:57:25 PM »
Thanks, that helps- I didn't take the time  :bonk to read the wiki on Variables!

I'm close but not quite there. My xml payload file is quite simple, phrases are channel names (CBC, CTV, NBC, Fox, etc) and their values are 4 digit channel numbers (1205, 1201, 1220, 123, etc.). I understand the RegEx and looping using {#M} but I'm not getting any results being fed into my UsbUIRT.Send action.

Code: [Select]
<command id="756" name="CBC Test" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>Switching to channel: {PF.1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Results.RegEx</cmdType>
                <cmdString>(/d)&amp;&amp;&amp;&amp;{1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>UsbUIRT.Send</cmdType>
                <cmdString>{M:uu_Fibe.{Match.{i}}}&amp;&amp;2</cmdString>
                <cmdRepeat>{#M}</cmdRepeat>
            </action>
            <phrase>Goto channel</phrase>
            <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\fibecommands.xml</payloadFromXML>
        </command>

My mapping table is named uu_Fibe and has fromKey values of 1,2,3,...,0 with toValue consisting of IR codes. Attached is my log. Thanks.

14
Other Plugins / USB UIRT with multiple values in payload
« on: March 22, 2014, 07:00:42 PM »
I'm trying to send a UIRT signal to my set top box based on a TV channel identifier (in this example, the phrase 'CBC' is mapped to the value '1205' in my payload xml file.

I don't believe UsbUIRT.Send supports multiple payload values so I think I need to use RegEx to loop through the 1,2,0 and 5, for my example, and send individual UsbUIRT.Send actions?

I tried to duplicate the logic from nimester's reply to http://voxcommando.com/forum/index.php?topic=1220.0 but am not sure about the logic/syntax of these lines
Code: [Select]
  <action>
    <cmdType>Tcp.Client.WriteLn</cmdType>
    <cmdString>iTach&amp;&amp;{M:GcTivo.TIVO - {Match.{i}}}&amp;&amp;200</cmdString>
    <cmdRepeat>{#M}</cmdRepeat>
  </action>

Here is my starting effort- can someone help please?!

Code: [Select]
<command id="756" name="CBC Test" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>TTS.Speak</cmdType>
                <cmdString>Switching to channel: {PF.1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Results.RegEx</cmdType>
                <cmdString>(/d)&amp;&amp;&amp;&amp;{1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>UsbUIRT.Send</cmdType>
                <cmdString>{M:uu_Fibe.1 - {Match.{i}}}&amp;&amp;1</cmdString>
                <cmdRepeat>{#M}</cmdRepeat>
            </action>
            <phrase>Goto channel</phrase>
            <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\fibecommands.xml</payloadFromXML>
        </command>

15
Integration Ideas / Re: Alarm Design
« on: March 05, 2014, 05:41:37 AM »
Thanks, that's a good start. I didn't realize that Foscam supported, multi-devices remotely, using a DNS service, like DynDNS.

So now that video monitoring is architected, how about the audio link? I'd like to challenge any intruder and convince them leaving the premises is the best option! Any ideas on how to "talk" through to my audio receiver and blast throughout the house?

Pages: [1] 2 3 ... 5