Need a simple python script to turn on/off device X

Moderator: Telldus

Post Reply
hyseptik
Posts: 4
Joined: Thu Jan 18, 2018 11:08 am

Need a simple python script to turn on/off device X

Post by hyseptik » Thu Jan 18, 2018 11:08 am

Hello.
I very recently discovered the ability to control Tellstick devices with Python. The trouble is I have no experience at all with Python (or any other programming language). I tried my best to follow online guides but I am stuck for now. I have installed Python 2.7.6. I have installed pip, git, tellcore and tellive. I tried to install tellprox as well but didn't succeed.

I have a Tellstick Net set up with 4 devices. Now, what I want to do is to have eight separate Python scripts saved on my computer - each for turning on/off my four devices. I plan to run these via Rainmeter, and possibly incorporate them in some of my Eventghost macros.

Would anyone be so kind as to point me in the right direction? If you could briefly explain how to set this up, and possibly show me some example scripts, that would be awesome.

PS: I am Norwegian, so Swedish/Norwegian/Danish replies are fine.

kamsvag
Posts: 63
Joined: Thu Jan 18, 2018 11:08 am

Re: Need a simple python script to turn on/off device X

Post by kamsvag » Thu Jan 18, 2018 11:08 am

Download this script for Python 2.7

http://developer.telldus.se/attachment/ ... sensors.py

You'll need to install oauth and configobj if you don't already have 'em. Simply use the flag --help to see how to use it.

Post Reply