Giter Site home page Giter Site logo

remotestick-server's Introduction

remotestick-server

What is it?

RemoteStick server exposes the Tellstick (see Telldus Homepage ) interface through RESTful services. RemoteStick server uses the native library libtelldus-core to communicate with the Tellstick. It supports resource browsing and resource operations (like turning on/off a device). Responses are given in XML format (support for JSON format is planned). It aims to fully reflect the capabilities of the libtelldus-core.

Prerequisites

telldus-core need be installed. telldus-core is an open-source library developed by the very same company manufacturing the Tellstick, namely Telldus. Either:

Getting it

Using it

The -? flag will give you help about available command line arguments: remotestick-server.py -?

Starting RemoteStick server is as simple as (although not recommended, see below): remotestick-server.py

By default, no authentication will be required (making it possible for anyone to query your tellstick) and the RESTful services will listen for connections on your-hostname:8422. Only Basic Authentication (HTTP) currently supported. You should at least set a username and password, requiring client authentication: remotestick-server.py --username MyUsername --password MyPassword

Troubleshooting

Linux

Depending on where the telldus-core library is installed on your system you may have to define the environment variable LD_LIBRARY_PATH to include the directory where telldus-core is located. export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/telldus/bin

Windows

If TelldusCenter is installed RemoteStick server will have no problem locating the library. Although you might get an error saying ftdxx library is not found. In such cases add the Telldus folder to the PATH environment variable. set PATH=%PATH%;"C:\Program files\Telldus" or try running RemoteStick server using Telldus folder as working directory (i.e. stand in that directory when starting RemoteStick server).

Mac OS X

The current version of TelldusCenter for Mac OS X, 2.0.2, does only come with 32 bit support meaning that it will not work (out of the box) if you got a 64 bit version of Python (which you do if you're running a 64 bit version of Mac OS X, i.e. Snow Leopard). The error you might get indicating this is: OSError: dlopen(/Library/Frameworks/TelldusCore.framework/TelldusCore, 6): no suitable image found. Did find:/Library/Frameworks/TelldusCore.framework/TelldusCore: mach-o, but wrong architecture You have two options. Run python in 32 bit mode (recommended): arch -arch i386 python2.6 ./remotestick-server.py ... OR you could also re-compile a 64 bit version of TelldusCore. Although very much feasable it is complicated. For instructions, see: http://www.whyro.org/2010/02/14/java-interface-to-tellstick-in-snow-leopard/

remotestick-server's People

Contributors

pakerfeldt avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.