For those of you interested in alternative ways to control a TellStick, here is a demo of using Versile Platform to provide remote access. In the video a TellStick Duo is controlled remotely from an Android app.
See the attachment for source code of the service that was run in the demo (server.py) and some example code for interacting with the service (client.py).
Versile Platform is still in development but it is already quite stable so feel free to try it out. The platform has implementations for python and java released with GNU Affero GPL v3. For more information see our website.
Remote access to a TellStick with Versile Platform
Moderator: Telldus
Remote access to a TellStick with Versile Platform
- Attachments
-
- tellstick_demo-20120216.tgz
- Source code example
- (18.11 KiB) Downloaded 274 times
Re: Remote access to a TellStick with Versile Platform
This is for sure very interesting!!!
I'm really playing with an idea: to make a plugin for EventGhost so that it becomes a Versile server service just like in your demo, exposing everything that is installed and configured in EventGhost. Your Android app could then become the ultimate remote for the whole EventGhost.
Currently today, I use a webserver solution based on the webserver plugin included in EventGhost and websockets to send status updates to the client (it works indeed very nice but it would be more handsome to have a good looking android app as the remote).
EventGhost is open source and also written in python so I think it would not be too hard.
Bets regards, Walter
I'm really playing with an idea: to make a plugin for EventGhost so that it becomes a Versile server service just like in your demo, exposing everything that is installed and configured in EventGhost. Your Android app could then become the ultimate remote for the whole EventGhost.
Currently today, I use a webserver solution based on the webserver plugin included in EventGhost and websockets to send status updates to the client (it works indeed very nice but it would be more handsome to have a good looking android app as the remote).
EventGhost is open source and also written in python so I think it would not be too hard.
Bets regards, Walter
Re: Remote access to a TellStick with Versile Platform
Glad you enjoyed it. Your idea to enable Versile Platform based access to EventGhost is quite interesting.
Quickly scanned through EventGhost documentation now, it appears it should be possible to make a plugin which acts as a Versile Platform interface, by setting up a listening service in the plugin's constructor. The main considerations I can think of is the plugin should take care to cleanly shut down the service when EventGhost shuts down, plus the Versile Python modules must be made available to EventGhost.
The first thing you could do to try out the concept is to write an EventGhost plugin which initializes a simple listening service (example) in its constructor, and set up the service to pass a gateway with a set of methods to provide access to EventGhost resources as native python objects (example). Then you can access those objects from a client essentially as if they were local python resources, without having to write any additional code.
If you experience any problems you can head over to our forum and we'll try to help.
Quickly scanned through EventGhost documentation now, it appears it should be possible to make a plugin which acts as a Versile Platform interface, by setting up a listening service in the plugin's constructor. The main considerations I can think of is the plugin should take care to cleanly shut down the service when EventGhost shuts down, plus the Versile Python modules must be made available to EventGhost.
The first thing you could do to try out the concept is to write an EventGhost plugin which initializes a simple listening service (example) in its constructor, and set up the service to pass a gateway with a set of methods to provide access to EventGhost resources as native python objects (example). Then you can access those objects from a client essentially as if they were local python resources, without having to write any additional code.
If you experience any problems you can head over to our forum and we'll try to help.