This is a scheduler for the Telldus Live! API written in Scala.
Telldus Live! is an easy way to control gear controlled with a TellStick using the internet. Simple-Scheduler is a scheduler with a web interface that uses the Telldus Live! to turn on and off devices at given times.
Simple-Scheduler has a built in web server with an interface designed for mobile devices. This makes it easy to start (just java -jar ...) and simple to use from your phone or tablet.
Scroll down for a screenshot.
- [Scala]((http://www.scala-lang.org/) the language it's written in
- Simple Build Tool for building
- Jetty as the embedded web server
- jQuery Mobile for the mobile interface
- Scalatra as the web framework
- Scalate as the template engine
- MongoDB as the database to save the scheduled events in
- Salat for Scala case class to MongoDB mapping
- openid4java for authentication against the Telldus OpenID server
- dispatch-oauth for OAUTH authorization against the Telldus API
- Quartz as the scheduler
I am still learning Scala and my code is far from perfect. I don't mind suggestions on how to make it better.
- Telldus TellStick
- TelldusCenter installed and configured
- Scala >= 2.9.1
- Simple Build Tool - sbt >= 0.11.1
- MongoDB installed and running on the machine that will run the scheduler
- Active Tellus Live! in your TelldusCenter application by following the instructions here.
- Go to https://api.telldus.com/keys/generatePrivate to generate a private key used to identify and authorized the scheduler. The key will be used on the command line when starting the scheduler.
- Go to the root of the project and do sbt assembly. This will compile and package the scheduler as one big jar file.
Start the scheduler with the key and secret retrieved in step 2 above as the paramters
java -jar simple-scheduler.jar <key> <secret>
Once started the web interface is available at http://localhost:9000
Screenshot to be updated. The below is slightly old.
Comments and improvements are very welcome!