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

Pages: 1 2 [3] 4 5 ... 8
31
General Discussion / Nortons Security Antivirus
« on: July 12, 2015, 08:50:52 PM »
Nortons recently began to block VC from starting.  My computer worked perfectly fine until a Nortons update was performed.  I have tried to move the VC.exe file from the Nortons quarantine but unless I remove nortons completely I cannot get VC to run.

Any suggestions?

32
What does the black mark in the pic represent? 


33
RegEx (Regular Expressions) / Re: Regex Results
« on: May 10, 2015, 01:55:29 PM »
Wow!  I'am getting it. :) This was so helpful!  Thanks so much for the detailed response.  It is without a doubt that I will study and learn from all of it. Thanks again for your patience and prompt attention.  I really appreciate it. 

I will put this to test and report back shortly.


34
RegEx (Regular Expressions) / Re: Regex Results
« on: May 10, 2015, 12:02:38 PM »
I think I am confused by the Scrape "http://192.168.1.5/rest/nodes/{1}/ST".  My interpretation of this is that VC is scraping the isy and referencing the payload file (not individual node) for the devices state.  The URL" http://192.168.1.5/rest/nodes/{1}/ST" as written is not accepted by the ISY and returns and error.  This is why I used the URL "http://192.168.1.5/rest/status"

In my mind, if after I asking for the status of the kitchen light VC scans the payload list for the device to report its status.  Correct?  If not, that is where my problem is and I can't do what I thought I could do without creating a separate command for each node.

35
RegEx (Regular Expressions) / Re: Regex Results
« on: May 10, 2015, 11:47:13 AM »
ok, I will watch the video again. 


36
RegEx (Regular Expressions) / Re: Regex Results
« on: May 10, 2015, 11:30:17 AM »
Thank you...

Here is the log as requested.


37
RegEx (Regular Expressions) / Re: Regex Results
« on: May 10, 2015, 10:52:56 AM »
This weekend I took some time to review this thread, the wiki and the links/videos suggested.  After my review I do have a better understanding of how Regex and payloads work in VC.  That said, I still need a little help with drafting the number 3 command.  First, let me say that after spending hours trying to formulate the correct syntax for the scrape command for getting the requested information from the ISY.  I have learned that the URL http://192.168.1.5/rest/nodes/{1}/ST is not recognized by the ISY as written.  The ISY does not recognize the payload indicator {1} and "ST".  Instead i have used http://192.168.1.5/rest/status.  This url gives me the status of all devices in the ISY.  See the full results below.

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?><nodes><node id="11 B3 8F 1"><property id="ST" value="154" formatted="77.00" uom="degrees" /><property id="CLIMD" value="2" formatted="Cool" uom="n/a" /><property id="CLISPC" value="154" formatted="77.00" uom="degrees" /><property id="CLISPH" value=" " formatted=" " uom="degrees"/><property id="CLIHUM" value="75" formatted="75.00" uom="%" /></node><node id="14 2E B1 1"><property id="ST" value=" " formatted=" " uom="on/off"/></node><node id="14 2E B1 2"><property id="ST" value=" " formatted=" " uom="on/off"/></node><node id="14 2E B1 3"><property id="ST" value="0" formatted="Off" uom="on/off" /></node><node id="17 53 DB 1"><property id="ST" value="0" formatted="Off" uom="on/off" /></node><node id="17 54 96 1"><property id="ST" value="0" formatted="Off" uom="on/off" /></node><node id="1B 6E 54 1"><property id="ST" value="0" formatted="Off" uom="on/off" /></node><node id="1B 71 A0 1"><property id="ST" value="0" formatted="Off" uom="on/off" /></node><node id="1B 80 D2 1"><property id="ST" value="0" formatted="Off" uom="on/off" /></node><node id="22 B2 82 1"><property id="ST" value="0" formatted="Off" uom="on/off" /></node><node id="24 99 A0 1"><property id="ST" value="0" formatted="Off" uom="%/on/off" /></node><node id="29 B9 D 1"><property id="ST" value="0" formatted="Off" uom="%/on/off" /></node><node id="2A 29 97 1"><property id="ST" value="0" formatted="Off" uom="%/on/off" /></node><node id="32 80 D2 1"><property id="ST" value="0" formatted="Off" uom="on/off" /></node><node id="C 7B 80 1"><property id="ST" value="0" formatted="Off" uom="%/on/off" /></node><node id="ZW003_1"><property id="ST" value="100" formatted="Locked" uom="11" /></node><node id="ZW014_1"><property id="ST" value="0" formatted="Off" uom="78" /></node><node id="ZW015_1"><property id="ST" value="0" formatted="Off" uom="78" /></node><node id="ZW016_1"><property id="ST" value="0" formatted="Off" uom="78" /></node></nodes>
To grab the information that I need for VC to report on I used the following Regex code:

Code: [Select]
node\sid="(.*?)"><property\sid="(.*?)"\svalue="(.*?)"\sformatted="(.*?)"
At this point everything appears to work ok until I get to my logic block.  The results from the logic block that I have written only reports half of the information correctly.  Here is what i have written so far:

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.2-->
<command id="512" name="Device Status {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://192.168.1.5/rest/status</param>
      <param>don</param>
      <param>dond</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>RegExTool.Open</cmdType>
    <params>
      <param>True</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegEx</cmdType>
    <params>
      <param>node\sid="(.*?)"&gt;&lt;property\sid="(.*?)"\svalue="(.*?)"\sformatted="(.*?)"</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)Contains(B)</ifType>
    <ifParams>{Match.1.4}&amp;&amp;{Match.1.4}</ifParams>
    <then>
      <action>
        <cmdType>OSD.ShowText</cmdType>
        <params>
          <param>{PF.1} is currently {Match.1.4}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.SpeakSync</cmdType>
        <params>
          <param>{PF.1} is currently {Match.1.4}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <action>
    <cmdType />
    <params />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Is the, What is the</phrase>
  <payloadFromXML phraseOnly="False" use2partPhrase="True" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\ISYNodeNames.xml</payloadFromXML>
  <phrase>On Off , Status</phrase>
</command>

At the end of the day, VC reports the status of the device incorrectly when using the "what is the" kitchen main light (as written in the payload file) command.  It will report back the first device status as indicated by the "{Match.1.4}"

How do I write the logic block so that it reports back the correct status for any device that I request that information for?

Also, while I know that i can write a command for each device individually I was just looking to save time by using a payload as suggestd.

38
General Discussion / VC License Question
« on: May 08, 2015, 03:55:19 PM »
I have a number of PC's (4) in my home.  I have VC2 (paid license) installed on the main HTPC computer.  I would like to install VC2 on another computer in my home to use for testing commands prior to loading them on the main HTPC.  At the moment, to test new commands I have downloaded the trial version of VC2.  However, using the trial version of VC2 limits my commands and can be frustrating since I have to restart vc once the limit has been reached.  Is there a way/am I allowed to transfer a copy of VC2 (paid version) between computers that are in the same household?

39
RegEx (Regular Expressions) / Re: Regex Results
« on: May 03, 2015, 10:56:03 PM »
ok, I'll look at this in the morning with fresh eyes.  Thanks for your help.

40
RegEx (Regular Expressions) / Re: Regex Results
« on: May 03, 2015, 10:54:10 PM »
Sorry,  Im just not getting it.  I'll review the links when I have more time.


41
RegEx (Regular Expressions) / Re: Regex Results
« on: May 03, 2015, 10:34:29 PM »
Made the correction but still got the error.  The log file is attached.


42
RegEx (Regular Expressions) / Re: Regex Results
« on: May 03, 2015, 10:17:56 PM »
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.2-->
<command id="492" name="Get Status Info For My Lights" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://192.168.1.5/rest/node/{1}/ST</param>
      <param>don</param>
      <param>dond</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>RegExTool.Open</cmdType>
    <params>
      <param>True</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegEx</cmdType>
    <params>
      <param>formatted="(.*?)"</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\ISYNodeNames.xml</payloadFromXML>
</command>

Not working for me.  I get the following error:

"system.net web exception... 404 not found

43
RegEx (Regular Expressions) / Re: Regex Results
« on: May 03, 2015, 09:34:59 PM »
Will do, thanks.

44
RegEx (Regular Expressions) / Re: Regex Results
« on: May 03, 2015, 08:31:23 PM »
Thanks... I have compared the two and I understand what was done.  That said, I'm stuck on command #3 as well.  I can't seem to figure out how I associate the payload file that I have created for the node id's.  Here is what I have done so far.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.2-->
<command id="492" name="Get Status Info For My Lights" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://192.168.1.5/rest/nodes/</param>
      <param>don</param>
      <param>dond</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>RegExTool.Open</cmdType>
    <params>
      <param>True</param>
    </params>
    <cmdRepeat>0</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegEx</cmdType>
    <params>
      <param>formatted="(.*?)</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType />
    <params />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\ISYNodeNames.xml</payloadFromXML>
</command>

45
RegEx (Regular Expressions) / Re: Regex Results
« on: May 03, 2015, 01:37:05 PM »
Having trouble with creating command #2  What am I missing?

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.2-->
<command id="422" name="Scan my devices" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://192.168.1.5/rest/status</param>
      <param>don</param>
      <param>dond</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>RegExTool.Open</cmdType>
    <params>
      <param>True</param>
    </params>
    <cmdRepeat>0</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegEx</cmdType>
    <params>
      <param>&lt;node\sid="(.*?)"</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>OSD.ShowText</cmdType>
    <params>
      <param>{#M}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.SetVar</cmdType>
    <params>
      <param>devices</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>How many devices do I have</phrase>
</command>

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.2-->
<command id="527" name="Scan devices 2" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>scrape</cmdType>
    <params>
      <param>http://192.168.1.5/rest/status</param>
      <param>don</param>
      <param>dond</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>RegExTool.Open</cmdType>
    <params>
      <param>True</param>
    </params>
    <cmdRepeat>0</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegEx</cmdType>
    <params>
      <param>formatted="\s"</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>PY.ExecString</cmdType>
    <params>
      <param>result={var.devices} - {#M}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>


Pages: 1 2 [3] 4 5 ... 8