Code Monkey home page Code Monkey logo

wemoinsight's Introduction

wemoinsight

just a simple -though ugly- way to get power consumption over a wemo insight switch

this is a simple modification of [email protected]'s script that can be found here : http://moderntoil.com/?p=839 I wanted to get the GetPower Property which is mentionned here and there. I never managed to get this stuff working.

I found an alternate solution which is to get the InsightParams from the wemo insight API. the result is a string which looks like that : 1|1544988731|3|38049|456580|1209600|361|1430400|657939175|7107245804.000000|8000

I was able to identify the meaning of some -not all- fields

field 1 : 1 is the position of the switch (1-ON |0-OFF)

field 2 : 1544988731 is the date in secondes since 1970/01/01

field 3 : unknown

field 4 : 38049 Today's activity in sec

field 5 : 456580 Total activity in sec

field 6 : 1209600 unknown

field 7 : 361 unknown

field 8 : unknown

field 9 : 657939175 Energy Today that's our consumption ! (in mwh -> to be divided by 60000 to get the Energy Today

field 10 : 7107245804 Total Engery (since when? )

field 11 : unknown

then the only thing to do if you want get the daily consumption of today is to get the InsightParam and then the field n# 9 that you'll by 60000

wemoinsight's People

Contributors

dedelajoie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.