We have moved at community.getvera.com

Author Topic: where to start with my requirement?  (Read 854 times)

Offline mbaker171

  • Jr. Member
  • **
  • Posts: 85
  • Karma: +0/-1
where to start with my requirement?
« on: September 09, 2013, 03:26:34 pm »
Hello all, I just need some help to get started to configure Vera.

I have 2 DS18B20 temperature probes where I am able to extract the current temperature from. All I want to do is run a screne when the temperature difference between the 2 values is say 10 degrees or more and stop when the difference drops to say 3 degrees difference.

I've managed to create scenes using one variable but I am struggling to know how to start configuring the above requirement.

 Will I need to start writing code or is my requirement simple enough not to need writing code.

All suggestions welcome.

Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: where to start with my requirement?
« Reply #1 on: September 09, 2013, 03:49:40 pm »
A coupe of things.

You do NOT start a scene ... and then at a later time STOP it.

You only run a scene ... and it completes when the last command is sent.

See:
http://forum.micasaverde.com/index.php/topic,13802.0.html

Offline mbaker171

  • Jr. Member
  • **
  • Posts: 85
  • Karma: +0/-1
Re: where to start with my requirement?
« Reply #2 on: September 13, 2013, 05:35:12 am »
cheers... I have had a play with Progam Logic Event Generator and it certainly helps. I 've started to write code but I am having difficulties testing it.

I'm a windows user...
Using iLua (Friendly Lua command Line) dos application is useful.

I've also tried to use the Vera Test Luup code(Lua) under APPS / Develop Apps.

I can't get it to display any data. I run it and get a "Message sent successful". What does this mean? Can I see the message.  Why can't I see the response to statements like print("Hello world")

I am trying to extract data from my devices to see if my code is correct. I kinda expected the 'Test Luup code' would enable me to this but obviously need help in how to use it.

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: where to start with my requirement?
« Reply #3 on: September 13, 2013, 07:40:38 am »
The Test Lua Code page is a bit lacking in that respect. About the best you can do is send strings to the LuaUPnP log with luup.log("hello world"), and then view the log in real time using SSH or the Log Viewer plugin.

Offline mbaker171

  • Jr. Member
  • **
  • Posts: 85
  • Karma: +0/-1
Re: where to start with my requirement?
« Reply #4 on: September 13, 2013, 11:50:45 am »
Another excellent suggestion... Log viewer installed and running.. time to play