This object is in archive! 

How to get the events from the API

Guest shared this question 10 years ago
Need Answer

Hello,


I'd like to get the events of the day on a switch from the API.

Is it possible?


My goal is to extract the cumulative consumption of an "Aeon micro SES G2" per day.


Regards,

Fred

Replies (2)

photo
1

I've seen in the rules that it is possible to do

WHEN ACTUATOR CUMULATIVE_CONSUMPTION

DO ...


Then it is possible to send a request somewhere with the value in parameters.

Which means that the user needs to pay to have parameters and he needs to have something to manage the graphs...

photo
1

Once a day we get the cumulative consumption using rules as you explained, then using rules send a socket to a socket server, then the socket server which has the previous value of the N-1 days, calculates the difference then post to sen.se the power consumption per day. The socket server is written in Python and can use the same method for posting than the one used in Zipabox ?

Leave a Comment
 
Attach a file