Python Script

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
marv01
Posts: 1
Joined: 30 Jul 2012 01:43

Python Script

Post by marv01 »

Hi guys,

I'm new user of the z-way. I'm running z-connector on my Ubuntu distribution for tests. Everything works really great. But I've one small issue with python script.

Could somebody tell me is it possible to make the python's action which will run shell command directly from my ubuntu machine ? I was trying os.system() but doesn't work for me.

I'm asking about this, because I would like to create action for playing music from my ubuntu. Is it possible at all ?
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

No, there is no way to run

Post by PoltoS »

No, there is no way to run programs on your PC, since the python software is running on Z-Cloud server side. But instead you can ask Z-Cloud to visit some URL, where the URL should be a web server on your router or home PC (with DNAT set up). This web server will do local actions. In recipes forum thread was a post with a description of python httplib usage (http://en.z-wave.me/content/making-http ... ts-z-cloud). Some Z-Cloud users have alredy implemented this.
Post Reply