We have moved at community.getvera.com

Author Topic: what's wrong .....  (Read 995 times)

Offline gipelo

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
what's wrong .....
« on: September 17, 2013, 03:47:26 pm »
Hi I have started a luup code that will send values to a php page that will display....it's simple...but
my script doesn't work


local Temperature_Jardin_send = luup.variable_get("urn:upnp-org:TemperatureSensor1", "CurrentTemperature", 17)

Temperature_Jardin_send= tonumber(Temperature_Jardin_send)

luup.inet.wget("http://domotique.corvette-online.net/Functions/TEST.php?Temperature_Jardin="..Temperature_Jardin_send)


if I remove the "..Temperature_Jardin_send" if I put that "http://domotique.corvette-online.net/Functions/TEST.php?Temperature_Jardin=10" it work is there a mistacke in my script ?

thanks...and sorry for stupid wuestion I'm starting  :P

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: what's wrong .....
« Reply #1 on: September 17, 2013, 04:37:22 pm »
Try "urn:upnp-org:serviceId:TemperatureSensor1" for the first parameter of luup.variable_get...

...one of the most easily made mistakes (and there are no 'stupid questions')
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline gipelo

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: what's wrong .....
« Reply #2 on: September 18, 2013, 03:50:56 am »
thanks...I was focussing on the get fonction and doesn't have seen the initial problem LOL