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

Pages: [1] 2
1
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?

2
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.

3
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?


4
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.

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

6
Integration Ideas / Alarm Design
« on: March 04, 2014, 04:38:33 AM »
So I asked for this board to be created so that we could discuss system level design ideas. I figured I could kick it off and see what all you VC gurus out there can offer......

Here's my set-up:
Windows 7 x64, integrated sound card, USB UIRT, Vera, latest VC and VoxWav, Yamaha V series amp, 70" Panasonic plasma, lots of mp3 and mp4, fiber based digital TV (Canadian), DSC alarm system.

I'd like to embark on a "blank page" design. I have  a fairly large home with 4 bedrooms, garage, pool and irrigation system.

Ultimately, I'd like to provide a fair amount of home automation but lets start with the alarm side.

I'd like to place multiple cameras (low cost) in and out of the home and have them linked to Vera/DSC. I would like to arm and disarm using VC (eventually moving towards a proximity detector). When an alarm condition exists, I would like to establish a 2 way audio and video link, via Android, and challenge the intruder, in addition to the alarm sounding off.

Using VC, I'd like to arm/disarm and check status. And of course, I'm looking for a frugal design.

One of the key design criteria is that I would like to have multiple speakers in the design so that I can "talk to/challenge" to an intruder in any room. So do I need multiple sound cards (1 for the media part of the design and a second for the alarm broadcast, and VAC?)

I'd be interested in any design ideas. Thanks.

7
Integration Ideas / VC Integration Ideas
« on: March 01, 2014, 10:31:40 PM »
Just wondering if it makes sense to start up a new forum discussion area which supports "how to" possibly use VC with various project plans.

What I'm finding is tons of useful forum info on how to use VC with various software and hardware apps, plugins and devices but I'd like to see discussion at the system level. For example, there are comments on using XBMC instead of MCE but how about some info on typical system architectures so that VC use can be maximized (eg. using VC and XBMC together using the following configuration allows for this or that). Or how could one implement a low cost multi-camera alarm capability that could be accessed via VoxWav? What interesting ideas can be supported using various plugins? Vera implementation? Unique USB UIRT applications? Etc.

Just wondering.............

8
General Discussion / Merry XMAS All
« on: December 24, 2013, 01:07:33 PM »
And a Happy New Year.

 :xmasgrin

Thanks for all the support- truly a great product and forum!

9
FORUM CAN'T SEND EMAIL / InfoCenter List
« on: November 05, 2013, 04:50:13 PM »
James,

I like to read the most recent posts to see what's active on the forum. Anyway you can lengthen the list of "Recent Post" in the Info Center panel at the bottom of the forum, through a forum setting change, so that a more complete listing is available?

Silly request maybe but it makes reviewing a little easier!

Thanks.

10
General Discussion / Xbox One
« on: May 22, 2013, 12:42:49 PM »
With yesterday's announcement, it will be very interesting to see if Microsoft can deliver what it promises!

They claim that the new unit will be an "All-In' device with the comment that:

'“All in” translates to auto-identification as soon as Kinect sees a user; face, finger and mouth recognition; a 60 per cent wider field of view; Active IR sensors; the ability to identify six different people of all shapes and sizes (in much smaller rooms that previously possible); much improved voice control (based on an array microphone setup and much more complex algorithms); and Full HD 1080p video recording for Skype calling."

The microphone array is good but how will it react in a noisy (normal) environment?

So will it work or is it mostly marketing hype? Anybody got $600+ to play with this fall?




11
WAY Off Topic / Seasons Greetings
« on: December 24, 2012, 12:47:56 PM »
Merry XMAS to all and Happy New Year!

This is by far the best forum I regularly read. Thanks James for all your hard work and perseverance.

VC and VW are truly great products!

 ::xmasbounce



12
VoxWav Free and VoxWav Pro / Problems with VoxWav Free 2.1
« on: December 12, 2012, 11:31:53 PM »
I've been away for awhile and just updated to 968 and VW Free 2.1- great progress! Can't get it to work- no recognition of any loaded commands.

I have kept the default TCP settings in VW and enabled TCPMIC to listen to 33339. I am using d:\wavwatch as my share in VC. I can access the folder from my tablet from a File Explorer- no firewall issues.

The History pane shows:

Events&&AV.Mic.On
AV.Mic.On
Events&&AV.Mic.On
AV.Mic.Off
TCPWav.Open
no sox processing
Wav.Reco.Complete

Here are the last few pertinent lines from the log file ( I think!)
12/12/2012 10:17:08 PM   21   TcpMic: C:\Users\Dad\AppData\Local\Temp\TcpMicTmp1611.wav (563) read bytes: 8192
12/12/2012 10:17:08 PM   22   TcpMic: Clipping count: 0
12/12/2012 10:17:08 PM   23   TcpMic: C:\Users\Dad\AppData\Local\Temp\TcpMicTmp1611.wav (564) read bytes: 7976
12/12/2012 10:17:08 PM   25   TcpMic: Clipping count: 0
12/12/2012 10:17:08 PM   27   TcpMic: C:\Users\Dad\AppData\Local\Temp\TcpMicTmp1611.wav (565) read bytes: 0
12/12/2012 10:17:08 PM   28   TcpMic: disconnected
12/12/2012 10:17:08 PM   31   TcpMic: total bytes: 4587528
12/12/2012 10:17:08 PM   32   TcpMic: wav header OUT
12/12/2012 10:17:08 PM   36   TcpMic: creating fileinfo for: C:\Users\Dad\AppData\Local\Temp\TcpMicTmp1611.wav
12/12/2012 10:17:08 PM   37   TcpMic: setting fileinfo attributes to temporary
12/12/2012 10:17:08 PM   911   trying to open: C:\Users\Dad\AppData\Local\Temp\TcpMicTmp1611.wav
12/12/2012 10:17:08 PM   945   TcpMic: Closing TcpClient
12/12/2012 10:17:10 PM   479   trying to delete file:C:\Users\Dad\AppData\Local\Temp\TcpMicTmp1611.wav
12/12/2012 10:17:10 PM   482   DELETED wav file:C:\Users\Dad\AppData\Local\Temp\TcpMicTmp1611.wav


What am I missing?!

13
EventGhost / EG Quotes
« on: September 02, 2012, 06:54:24 PM »
When I build a command using EventGhost.Send along with a Payload Range, the packet received by EG has a single quote around the chosen payload.

For example if the command is EventGhost.Send and the chosen value from a payload range containing Orange,Red,Blue is Red, then the event in EG appears as Broadcast.'Red'.

I have a number of EG macros built with the event already defined without quotes (coming from an iRule panel I'm already using).

Any way to overcome this or is the best way to add a second event in each EG macro? Thanks.

14
Other Plugins / Is X10 PlugIn Still Working?
« on: August 01, 2012, 09:27:45 PM »
I can't see the X10 plugin- its available in the plugin list but does not load. I've tried VC 0939 up to 0960b. Other plugins load and are available after Full Restart.

15
Feature Requests / Time of Day
« on: February 25, 2012, 05:38:27 PM »
Is there anyway I can fire an event based on the time of day or day of week or day/month, etc.?

VC.SetEventTimer sort of starts the idea- anyway to improve on it?

I guess I could look at some EG Python work using eg.Scheduler but I'd rather not!

Thanks.

Pages: [1] 2