Hi all,
Yes, I've used indigoplotd Karl - thanks very much! For a few reasons it's not exactly what I want though. Ditto for Dave (thanks too!) I want something I can use with a responsive frontend (I'm teaching myself React.js).
I've now got more wrapper more-or-less working as I want and so I've uploaded it to pypi:
https://pypi.python.org/pypi?:action=display&name=django-indigorestwrapper&version=0.6 and github
https://github.com/EdwardMoyse/django-indigorestwrapper just in case it could be of use to anyone else.
You can do things like:
- get a list of devices (with more info than the equivalent from Indigo)
- get complete information about a device,
using the device id (i.e. instead of using the name as in indigo)
- get the history of the device.
Another benefit (for me) is you have a lot more flexibility in the authentication schemes you can use (I'm using token based myself, but you can use anything which is provided by or for django-rest-framework:
http://www.django-rest-framework.org/ap ... ntication/)
There's a lot more in the documentation, but the sort of things it lets you do are e.g. show the temperature of a sensor (this is a react frontend I'm working on, so it's all dynamic)
- Temperature.png (213.34 KiB) Viewed 2684 times
Anyway, I hope it might be of use to someone else - and if it would help to add functionality, let me know. I think most of the hard work is done now.