We have moved at community.getvera.com

Author Topic: Weather script to eventgosht error  (Read 602 times)

Offline rabeliyo

  • Sr. Newbie
  • *
  • Posts: 25
  • Karma: +0/-0
Weather script to eventgosht error
« on: January 27, 2014, 11:08:45 am »
Hello, I am newbie trying to do that when the weather of the plugin (Wunderground Weather Plugin) corresponds with any of the listed  send a message to eventgosht but does not work, it gives me error when I test the script

local t = luup.variable_get("urn:upnp-micasaverde-com:serviceId:Weather1", "ConditionGroup", 7)
if  (t == "rain")
then
local status, result = luup.inet.wget("http://192.168.0.1:80/?TEST1", 5) (Send me the message TEST1 to eventgosht, if i try alone works perfectly)
else
local status, result = luup.inet.wget("http://192.168.0.1:80/?TEST2", 5) (Send me the message TEST2 to eventgosht, if i try alone works perfectly)
end

Sorry for my bad english XD
Thanks!!!