Vera - Smarter Home Control Forum

General => Remote Control => Touchscreen for Windows (Windows) => Topic started by: TimAlls on May 04, 2011, 03:54:34 pm

Title: Beta testers (Old Post see above))
Post by: TimAlls on May 04, 2011, 03:54:34 pm
EDIT:
This is an older post.....please see the above post to get the latest software download!
END EDIT.....
I am looking for some experienced Vera users to test some utility programs that I wrote in Labview. You will have to install the Labview 8.0 run time engine which i can link you to... Then you can run my executables. The first test is a utility that reads A Vera JSON file and builds tables of all your dimmers, security zones, and scenes that are on your system. It reports current values as well as the associated IDs which is really nice to have.....press a button and it generates a report in HTML that you can print out.
Let me know if you want to help.....I will be using this program to build a generic touchscreen interface....I need one more week on that one.
Regards
Tim Alls
AllSeas Yachts
Title: Re: Brave new beta testers needed.....
Post by: mikea9999 on May 04, 2011, 04:35:28 pm
I would like to test.
Title: Re: Brave new beta testers needed.....
Post by: TimAlls on May 04, 2011, 04:51:26 pm
Here is the first utility program....
The Labview 8.0 runtime engine had to be installed first....more to come on that on....I am checking on a place to post it.
After that just unzip and run....no installations required.
Regards
Tim Alls
AllSeas Yachts

*Don't forget to enter the IP address from your Vera...mine is set as a default
Title: Re: Brave new beta testers needed.....
Post by: TimAlls on May 04, 2011, 05:43:11 pm
Try this for the runtime engine.....http://ftp.ni.com/support/softlib/labview/labview_runtime/8.0/windows/LabVIEW_8.0_Runtime_Engine.exe (http://ftp.ni.com/support/softlib/labview/labview_runtime/8.0/windows/LabVIEW_8.0_Runtime_Engine.exe)

Regards
Tim
Title: Re: Brave new beta testers needed.....
Post by: mikea9999 on May 04, 2011, 05:44:26 pm
Downloading now...
Title: Re: Brave new beta testers needed.....
Post by: mikea9999 on May 04, 2011, 06:07:22 pm
GUI display working and reporting values correctly.  No HTML report is generating when I hit hit the button.
Title: Re: Brave new beta testers needed.....
Post by: TimAlls on May 04, 2011, 06:14:36 pm
No HTML report.....
Make sure that you have the run button (Green button top left) pressed so that it runs continuously....otherwise it just runs once and cannot generate the report.
This is a quicky program and needs more devices added for other users.
I need a copy of the Json from someone using more types of devices....then I can add them in.
Regards
Tim
Title: Re: Brave new beta testers needed.....
Post by: fdebuck on May 05, 2011, 07:09:39 am
Hmmm,

as I'm working on Macs with OSX (10.5.x and 10.6.x), it seems that I can not use the compiled program. If I could get the source code and a compiler for Mac I would be able to test this.

Are you planning to keep working in LabVIEW or do you want to switch to another language eventually ?

Frederik.
Title: Re: Brave new beta testers needed.....
Post by: kosuke on May 05, 2011, 10:57:57 am
I downloaded your executable and the Labview runtime engine and installed both with no problems. I ran your program with my system and it all worked well, including the generation of a html page.

I'm new to the Vera world but am a programmer. I haven't ventured into Luup yet, but plan to as I think I will only get the custom flexibility I want in my setup via scripts. Your program should be of a help.

Let me know what I can do to help in the way of testing. But so far, your program ran as expected and will be helpful to me as I start my Luup programming.

Thanks.
Kevin

Title: Re: Brave new beta testers needed.....
Post by: TimAlls on May 05, 2011, 11:02:23 am
Quote
Are you planning to keep working in LabVIEW or do you want to switch to another language eventually ?
I am trying to learn other languages but it is hard to find time being a small business owner and family man!
If someone has the programing experience everything I am doing can be easily duplicated. I can take snapshots of the code and explain it so that all one has to do is replace what they are seeing visually with a coded version.
My current goal is to produce something similar to SQRemote for a touchscreen computer. I will have a generic dimmer panel available in a few days. The code I just posted is the building block for the system....it will query Vera and build a data base of labels and devices that can be assigned to UI controls.
@Kevin.....I am glad it is of help.....I am working on a LuupCode generator as well....I will keep you posted ....
More to come...
Regards
Tim Alls
AllSeas Yachts
Title: Re: Brave new beta testers needed.....
Post by: TimAlls on May 05, 2011, 06:29:50 pm
Needs testing.....file attached
This is the first step in the generic dimmer program....set the IP address to your Vera under the system tab.....I will be setting up a way to save your configuration on my next chunk of code.
I will be assigning dimmers on the next version....this one is for testing and takes them in the order they came.
I need feedback on the possible screen layouts....needs to be simple like me!
EG ....dimmers and scene buttons all on one tab....let me know
Regards
Tim
Title: Re: Beta testers needed for dimmer panel
Post by: ballroller on May 05, 2011, 10:35:53 pm
Ran your dimmer program. The dimmer GUI is basic, but works just fine. I don't have any problem with it at all.

On the reporting program, a number of my nodes did not show up on either the GUI or the HTML.
Title: Re: Beta testers needed for dimmer panel
Post by: TimAlls on May 05, 2011, 11:25:39 pm
My program currently only parses scenes, dimmers, and security zones. These are the only devices on my system. I will add more when I get a copy of someone's JSON output that include more categories. Let me know if you can help!
Tomorrow I will post an updated dimmer program with Scene buttons......more to come.
Regards
Tim
Title: Re: Beta testers needed for dimmer panel
Post by: ballroller on May 05, 2011, 11:44:48 pm
If you tell me how to copy my Json, I will be happy to send it to you. (I'm pretty basic when it comes to this stuff!)
Title: Re: Beta testers needed for dimmer panel
Post by: TimAlls on May 06, 2011, 12:12:34 am
@ballroller,
I will add an export feature to my code to make it easy.
I will post it mid day tomorrow.
Thanks,
Tim
Title: Re: Beta testers needed for dimmer panel
Post by: Ap15e on May 06, 2011, 04:45:25 am
@TimAlls

You might find the source code of LOUIS4Vera useful:
http://forum.micasaverde.com/index.php?topic=5232.0

LOUIS4Vera supports the following services:

Code: [Select]
local URN_Dimming1                  = 'urn:upnp-org:serviceId:Dimming1'
local URN_SwitchPower1              = 'urn:upnp-org:serviceId:SwitchPower1'
local URN_SecuritySensor1           = 'urn:micasaverde-com:serviceId:SecuritySensor1'
local URN_TemperatureSensor1        = 'urn:upnp-org:serviceId:TemperatureSensor1'
local URN_HVAC_OperatingState1      = 'urn:micasaverde-com:serviceId:HVAC_OperatingState1'
local URN_HVAC_UserOperatingMode1   = 'urn:upnp-org:serviceId:HVAC_UserOperatingMode1'
local URN_HVAC_FanOperatingMode1    = 'urn:upnp-org:serviceId:HVAC_FanOperatingMode1'
local URN_TemperatureSetpoint1_Heat = 'urn:upnp-org:serviceId:TemperatureSetpoint1_Heat'                                           
local URN_TemperatureSetpoint1_Cool = 'urn:upnp-org:serviceId:TemperatureSetpoint1_Cool'
local URN_PanTiltZoom1              = 'urn:micasaverde-com:serviceId:PanTiltZoom1'
local URN_DoorLock1                 = 'urn:micasaverde-com:serviceId:DoorLock1'
local URN_WindowCovering1           = 'urn:upnp-org:serviceId:WindowCovering1'
local URN_HumiditySensor1           = 'urn:micasaverde-com:serviceId:HumiditySensor1'
local URN_LightSensor1              = 'urn:micasaverde-com:serviceId:LightSensor1'

You could extract the corresponding Luup statements from I_LOUIS4Vera1.xml.
Title: Re: Beta testers needed for dimmer panel
Post by: TimAlls on May 06, 2011, 01:27:30 pm
Ap15e,
No problem on the Json......when you get a chance look at the tag generator I am building up.....a few examples and the format. I need good coders like you to help with actual examples of luup coding.....look at the program and you will get where I am going.
I am looking at the Wiki but it is unclear to me as a novice. In paticular I need:
1. Read a sensor and place in a temp. variable
2. If A is true then do something if between timeA and TimeB
3. On off repeating timers .....for lights or similar

These are a few and I need specific code so I don't screw it up!

Regards
Tim Alls