I’ve written a PHP extension for Telldus (Telldus Technologies), this extension works fine when running via the PHP server on my local machine. I copied the extension to the „ext“ folder and edited the php.ini of IPS to include it. The log file doesn’t report any errors:
24.08.2010 18:59:22.845 | 0 | MESSAGE | ScriptEngine | >Extension: php_telldus.dll
But I can’t use the methods of this extensions, and extension_loaded(‚telldus‘) returns nothing. Neither is the extension listed when looking through the result of get_loaded_extensions()
Fatal error: Call to undefined function tdTurnOn() in [test] on line 2
I compiled my extension against PHP 5.2.14 on VC9, could some kind of version incompatibility cause the problem?
Hallo zusammen.
Ich hab mir auch grade den tellstick bestellt. Nun Frage ich mich ob das das richtige ist. Kann ich den Stick einfach über IPS ansteuern, oder muss ich auch die php Extension installieren?
I stopped the development of a PHP extension for the Telldus stick, because I couldn’t get it to work the way I wanted. But no worries, there’s an other solution that works fine.
First, you must use the „Telldus Center“ application to give each of your appliances a unique number; then you can use a script in IPS to call the tdtool.exe with the correct parameters.
i.e.:
I’ve a Waveman switch; using the Telldus Center application I’ve given this switch the unique number 3. In IPS you can add a script and use the switch, see the code below:
<?
// Syntax (n = ON and f = OFF)
// system('"[path to tdtool.exe]" -[n|f][number]');
// To switch on
system('"%ProgramFiles%\Telldus dtool.exe" -n3');
// to switch off
system('"%ProgramFiles%\Telldus dtool.exe" -f3'); ?>
I got it.
You have to change the registry value
HKEY_LOCAL_MACHINE\SOFTWARE\Telldus\Devices\SharedDevices to 1
run TelldusCenter as Administrator
Added Devices
Quit
Now in IPS