PHP Class for TDTOOL integration.

Moderator: Telldus

Post Reply
peec
Posts: 12
Joined: Fri Mar 17, 2023 9:45 am

PHP Class for TDTOOL integration.

Post by peec »

I have created nonos specific (works on all os), and non gui, non html class for handling Tellstick. This means you can create your own nice GUI or integrate it to any kind of software in php, (example ways a forum.. Wodpress or whatever... )....


It requires PHP 5+

Wrapper for tdtool.exe (windows) / tdtool (linux).


It supports:
- Device, dim, turn off/on,
- Turn on/off/dim device at specific times (eg. 6 each day and turn off 7).
- Very fast code!
- Simple API with OOP device management.
- Uses XML files as storage. Automatically created.
- SEE CLASS FILE FOR MORE INFO!



Notice

Your script must be run with root access / admin access(windows) to work. This means forexample if you'd want apache to run it you will have to make apache run as root.


The class is located at phpclasses:

http://www.phpclasses.org/package/6227- ... vices.html



Please enjoy.
atchoo
Posts: 21
Joined: Fri Mar 17, 2023 9:45 am
Location: Oslo, Norway
Contact:

Re: PHP Class for TDTOOL integration.

Post by atchoo »

I know this is an old thread, but I´ll give it a try anyway:

I receive an error, "Class 'TellStick' not found in...on line... when I include tdtool.class.php in my php script, and try to initialize my Tellstick as described in your file:

Code: Select all

$stick = new TellStick('usr/bin/tdtool');
I have tried to copy tdtool to some other places too, to check if it´s a path issue, but to no avail. Any ideas? I´m on Mac OSX 10.10 Yosemite, by the way.
Post Reply