We have moved at community.getvera.com

Author Topic: Using Vera's http interface in Luup Scenes (FW 1.0.918)  (Read 4550 times)

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Using Vera's http interface in Luup Scenes (FW 1.0.918)
« on: September 14, 2009, 05:32:18 pm »
sc, res = luup.inet.wget("http://localhost:49451/data_request?id=lu_status&output_format=json&DeviceNum=9")

does not work in a Luup Scene (I have replaced "localhost" with 127.0.0.1 and Vera's IP address 192.168.178.34 - no luck). The curl return code ist 28 (timeout). Increasing the timeout does not help.

http://192.168.178.34:49451/data_request?id=lu_status&output_format=json&DeviceNum=9
can be retrieved with my Web browser.

sc, res = luup.inet.wget("http://www.google.com/") does work.

Any ideas?

Offline micasaverde

  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +15/-1
Re: Using Vera's http interface in Luup Scenes (FW 1.0.918)
« Reply #1 on: September 17, 2009, 11:42:25 pm »