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

Moderator: Telldus

Post Reply
hyseptik
Posts: 4
Joined: Fri Mar 17, 2023 9:45 am

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

Post by hyseptik »

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: 67
Joined: Fri Mar 17, 2023 9:45 am

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

Post by kamsvag »

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