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

Pages: [1]
1
Users / Advanced event time question
« on: July 09, 2008, 03:50:25 am »
Hi all,
  I'm trying to create a respond to event that can only happen between 8:00 and 23:00.  Is this possible?  I've tried

time of day > 8:00 and
time of day < 23:00

  with no luck.  The event keeps right on going through the night.  Am I doing it wrong or is it not yet possible?

Thanks,
Jason

2
Users / event help
« on: June 13, 2008, 05:20:14 pm »
Hi all,
  Have a question about advanced events.  I've looked through the wiki and the forums already and not found an answer.  So here's the question.  Is there a way to check a devices status from an event.  What I'm trying to do is check to see if a device is off before sending it an 'on' command.

Thanks,
Jason

3
Developers / GSD network connection help
« on: January 18, 2008, 03:13:24 pm »
Hi all,
  I'm in the process of rewriting a weather plugin that I had written a while back and need a little help.  The plugin goes out to weather.gov to retrieve the current weather conditions.  Originally I did this by having ruby shell out to a perl script to do the actual work.  The perl script in turn used lynx and grep to get the info, parse it with regex's and the insert the data directly into the database.  I'm now working on redoing the entire thing in ruby.  I wrote a test version as a ruby script (stand alone with no linuxmce functions)  that uses net/http.  This works fine.  Now I'm putting the code into linuxmce and have run into a small snag.  I'm trying to use conn_ to connect to the website, but don't really know how to use it.  I've looked at the panasonic ip camera code, as well as other examples and all of the connect to user defined ip addresses.  Is this the only way?  Can I use additional ruby libraries with the embedded ruby?
  Also, what is the best way to retrieve data from my device.  Here's an example of with I want to do: Weather device retrieves weather conditions once an hour.  If there is any change since last time, an event is fired off.  A respond to event is setup to shut off my outdoor fountain if an event is received from the weather device that it is now raining or there is lightning.  This is working in the old version no problem.  What I want to add is when the timed event to turn the fountain on happens, I would like to check the weather device for if it is currently raining or whatever and not turn the fountain on if the weather is already bad.  Is this possible?

Thanks,
Jason

Pages: [1]