https://www.dropbox.com/s/qmul48rkeia3v ... 5.zip?dl=1
older versions:
https://www.dropbox.com/s/g2mlq5y5c5u1h ... 1.zip?dl=1
https://www.dropbox.com/s/xiko3gtrlv39m ... 3.zip?dl=0
this is the first sen.se Mother-Cookie plugin
What it does:
1. query the Mother web server for configuration and data
2. create one indigo device for each cookie
3. if enabled at the sen.se web page download the data for
- Temperature
- Presence
- Motion
- Battery
and populate states in the indigo devices: Configuration in Indigo:
In the general Config you can/must enter YOUR Sen.se userid and password, if you like to use Celsius or Fahrenheit for temperatures and set the debug level. In edit device in indigo you can set for each sensor in each cookie:
- query timing i.e. how often should the sen.se websever be queried. Please be aware that there is a limit of 100 queries per minute. So don't put everything to the lowest number.
- ignore/ measure the value = activate the queries and populate the data to the indigo device states. if ignore no very is send to sen.se and no data is populated in indigo
please be aware that you ALSO have to enable the "apps" on the sen.se web server. Some other info:
- You can rename the indigo devices as you like , but you can't delete them (right now) they will be recreated automatically -- have not tested ü .. ä yet
- It will create a directory mother in documents where it stores the temp files. Each active cookie/sensor will create a file of ~ 500bytes Plus one file (cookie) for Sense config data
- the queries are done in parallel through cURL in a bash shell so that each cookie/sensor can have their own schedule independent of the other cookies/sensors.
The one liner is actually interesting .. how to avoid reading a file that is not finished by cURL from the plugin (if you into these things it looks like: curl ... > temp && mv temp final; wait 60|| wait 30)
- in my configuration with 4 cookies and 10 sensors active it creates ~ 20kbit/s network traffic constantly
- more than 4 cookies might require paging of responses (not done yet)
BUT FIRST YOU NEED TO ACTIVATE YOUR "DEVELOPER ACCESS". They call it developer access, but it simply gives access to the data.
the website is:https://sen.se/developers/register/
This is the first version and it seems to work for me. But have not run into the issues that happen rarely
Karl
ps with this thing called mother one has to be careful naming some of the variables ..
![Embarassed :oops:](./images/smilies/icon_redface.gif)