http://docs.energyhiveapi.apiary.io/#re ... uessummary
The script that I have used is this:
Code: Select all
#!/bin/bash
energy=`curl 'http://www.energyhive.com/mobile_proxy/getCurrentValuesSummary?token=xxxxxxxxxxxxxxxxx'`
echo $energy |cut -f4 -d":"|cut -f1 -d"}"
Make sure you update the script to have your token
Works really well for me. Hope it works for you
If anyone knows of a way to interrogate the hub directly instead of scraping from the website I would be interested. I have tried sniffing the traffic using wireshark but can't see exactly the data I can extract. Efergy won't tell me how it can be done I guess to protect their product useability
Regards
Justin Kruger