Coder Social home page Coder Social logo

emonpi_py's Introduction

emonpi_py

Some code developed as I figured out what the emonpi is capable of It's good kit but emoncms is php/mysql which seems like overkill

I'm groping my way to a more lightweight solution based on bokeh, probably running on a desktop rather than the emonpi pi although it seems to run ok there...

Probably need a blaze server or something for emonhub to stock up which the bokeh app sucks in as a source?

Meanwhile we have

mqtt_emon: a simple mqtt listener for an arbitrary mqtt server and subscription - currently emonhub/rx/5/values

mqtt_bokeh: as above but with an updating plot - best with chrome rather than firefox...

emondata_bokeh: reads archived data into a dynamic plot - bokeh serve --show emondata_bokeh.py after you edit the data path

readrawemoncms: reads the php binary data into tabular suitable for emondata_bokeh

feb 26 mqtt_bokeh.py will plot from mqtt emondata_bokeh.py plots archived tabular data DOES NOT work well with firefox - chromium is fine

feb 25 Bokeh is really good. Have a bokeh power stripchart working !! Date times on x axis need fixin but, holy sheet it works.

feb 23 Added a simple mqtt test which does the needful for collecting future data

For legacy data:

Python code to parse emoncms/emonhub v8.5 php data files

The filesystem meta and dat files are unfortunately not the whole story because essential metadata like the name of the feed is stowed in mysql. Can't be bothered going there.

Sigh

Whatever, this will take all the files found under /home/pi/data/phpfina, read the metadata (such as it is) and then the data. Output is an .xls file with raw time, value, date-time columns.

enjoy.

pull requests welcomed.

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.