Logic Machine Forum
https://engage.efergy.com/ - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: https://engage.efergy.com/ (/showthread.php?tid=1855)



https://engage.efergy.com/ - Bobby - 22.01.2019

Hi!

Is it possible to get power data from efergy? 
I have an engage hub connected to my power intake., this give me live values on an external screen, in addition
to storing historical data on their website.
maybe there is an API for this? i dont know.
does anybode have an idea?


RE: https://engage.efergy.com/ - admin - 23.01.2019

I don't see an API that can be used, but you probably can emulate user interaction by performing login and data requests via scripts. Here's a similar example: https://forum.logicmachine.net/showthread.php?tid=993&pid=5774#pid5774

Or you can send your login details via PM and I can have a look if a short example can be made.


RE: https://engage.efergy.com/ - Bobby - 24.01.2019

Hi!

I have googled a bit, and it seems like energyhive / efergy contains the same data. take a look at this:

http://www.energyhive.com/content/about/develop


RE: https://engage.efergy.com/ - admin - 25.01.2019

Here's a minimal example, you need to provide a valid token for it to work:
Code:
json = require('json')
http = require('socket.http')
escape = require('socket.url').escape

token = '...'
url = 'http://www.energyhive.com/mobile_proxy/getCurrentValuesSummary?token=' .. escape(token)

res = http.request(url)
res = json.pdecode(res)

log(res)