Page 1 of 1

Making HTTP requests from Z-Cloud

Posted: 17 Dec 2012 13:39
by PoltoS
We have improved Z-Cloud to allow HTTP requests inside scenes. These can be used to store data in other cloud services such as data logging to present graphs.Use the folowing scene script as a reference: import httplib
import encodings.ascii
try:
conn = httplib.HTTPConnection("google.com", 80, timeout=10)
conn.request("GET", "/")
res = conn.getresponse()
logging.rules.info(res.status, res.reason)
data = res.read()
logging.rules.info(data)
except Exception, inst:
logging.exception(inst, "httplib failed")
raise Of course instead of writing data to logfile you are better to use it somehow.

Would it also be possible to

Posted: 17 Dec 2012 13:39
by pz1
Would it also be possible to do it the other way around; i.e. for example use an http call to Z-Cloud to toggle one of the ZME switches I have? If so, how would that look like?

Hello friends,

Posted: 17 Dec 2012 13:39
by eligv
Hello friends,
A few days ago I asked about the possibility of having access through z-cloud of "Accessing a Wired Home Network IP address". I contestabais but not with this program improvement would be possible? What would your script?
Thanks and regards

Sure, you can use HTTP Z-Way

Posted: 17 Dec 2012 13:39
by PoltoS
Sure, you can use HTTP Z-Way API to do so. Check the official forum thread to see the API description.

Please be more precise. We do

Posted: 17 Dec 2012 13:39
by PoltoS
Please be more precise. We do not understand your question

hello

Posted: 17 Dec 2012 13:39
by eligv
hello
Happy New Year to all. I have a microcontroller board with 8 outputs networked through a server wev. with an IP address do I access a page made in html with which active exits via IP address. Can send commands z-cloud IP address to the local network to activate the outputs of the board? and receive data via local network ip?

Thanks and prosperous 2013

Basically, yes. If you have a

Posted: 17 Dec 2012 13:39
by PoltoS
Basically, yes. If you have a public IP (fixed or with some dyndns-like service) you can use Z-Cloud to trigger HTTP requests to your public IP from Z-Wave events.

It's fantastic! With that

Posted: 17 Dec 2012 13:39
by eligv
It's fantastic! With that command could do so by adding the IP address?
Thanks and regards

Please see our API

Posted: 17 Dec 2012 13:39
by PoltoS
Please see our API description: http://en.z-wave.me/content/z-way-api