GithubHelp home page GithubHelp logo

jtelldus's Introduction

JTelldus

JTelldus is a pure java client for talking to a telldusd.

Telldus is a combination of software/hardware from Telldus Technologies (http://www.telldus.com/). The hardware allows for sending RF signals, allowing computer control of devices in your home. Telldusd is the daemon in control of the hardware.

Current state

The initial version of this library (March 2012) is written according to the specifications (or rather, the code) of the telldus trunk (https://github.com/telldus/telldus/). Both sending controlling and events are supported.

However, it has not undergone very much real-life testing (basically only test/../TelldusClientTest.java)

Dependencies

The only external dependency is slf4j (http://www.slf4j.org/) for logging. Also, a patched telldusd or socat (or similar) is required (see quirk below).

Building

Currently there are no build files commited, since they are tied in to some other generic build files I've got. But a basic ant file should do.

Quirk

The trunk version of telldusd listens to two unix sockets (/tmp/TelldusClient and /tmp/TelldusEvent), which we got some problems talking to from pure java; UNIX sockets are not supported in normal Java.

Workaround

I've implemented TCP support in a fork of telldusd. It tries to follow telldusd-trunk, but is not yet ready for merging do trunk. It can be fetched from https://github.com/stromnet/telldus/tree/tcp.

For background on whats left before a merge can happen, please see http://www.telldus.com/forum/viewtopic.php?f=22&t=1966 (Swedish only though).

For those of you not wanting to run my patched telldusd, use socat (http://www.dest-unreach.org/socat/) or similar utility to bridge these UNIX sockets to regular TCP sockets. Example commands:

socat tcp-listen:9999,fork unix-connect:/tmp/TelldusEvents &
socat tcp-listen:9998,fork unix-connect:/tmp/TelldusClient &

This is clearly not optimal, but better than requiering some kind of native-lib.

Who & why?

JTelldus is written by Johan Ström, head of Stromnet. The goal is to be able to implement telldus support into OpenHAB (http://code.google.com/p/openhab/), but doing so in a clean mannor (ie, not some native library).

License

LGPL

jtelldus's People

Contributors

kaze72 avatar martenbohlin avatar rickardpl avatar stromnet avatar

Watchers

 avatar  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.