Git Product home page Git Product logo

arduino_emoncms's Introduction

Arduino IDE ESP8266 - Emoncms Library

An Arduino IDE library around the Emoncms publishing for ESP8266. By `GiacomoLeonzi, [email protected]`_

Table of contents

Introduction

This library provides some simple function to publish data on Emoncms, written using Arduino IDE for ESP8266. For all details about how to install and use Arduino IDE with ESP8266, refer to Arduino core for ESP8266 WiFi chip.

Status

Emoncms

To publish on Emoncms, you just need to do a get query like: ` http://<emoncms_url>/input/post?json={power:200}&apikey=<apikey>`_

<emoncms_url> is the url of the cms of OpenEnergyMonitor (to substitute with emoncms.org in case of cloud use). <apikey> is the code of 32 character, that is univocal for each user. Data are passed in json format.

You can try to put the url on the address bar of your browser, substituting the <> with the right parameters. If the pubblication works fine you get "ok" on your browser!

Arduino IDE support

ESP8266 is supported into Arduino IDE since version 1.6.5

Getting the code

You can install Arduino IDE-Emoncms for your ESP8266 downloading the code that is hosted at https://github.com/giacomoleonzi/ESP8266Emoncms. You can check out the latest development version being informed by updateds, selecting "Watch" box in the GitHub repository

Installing

The downloaded code can be included as a new library into the IDE selecting the menù:

Sketch / include Library / Add .Zip library

Getting started with Emoncms

Inspired by a tutoriar proposed for Arduino.cc by Pitusso

Why

Because is an open source system for monitor and menage domestic and industrial enviroment http://www.openenergymonitor.org You can also install your own server on a localhost This system can collect data and informations like temperature or consuption and show they with graph and graphics.

Create an account

First of all we need to create an account here After login we are redirect to our profile's page. On the left side we can se our personal informations and our APIKEY. We need the APIKEY to write and read data on, without needs of login.

To post data Write API Key is needed, Read API Key is needed to read data from and to use they in exernal services or share they with other users.

Input

In the Input section we can find all the kind of data published trought our account or with ours APIKEY. But the data are no logged, so we can see only the last value inserted for each variable.

Feeds

To log the data and have an history to create statistic, we need to associated the Input with a Feed. Feed are usefull also to do some math and work with other data recorded. First we create a Log to Feed to record data. Just click on the wrench on the right side of the data we want to store, and select the Log to Feed voice. Now our data is stored and we can start to create statistics and rule to monitor our enviroment.

License

You may copy, distribute and modify the software provided that modifications are described and licensed for free under LGPL-3. Derivatives works (including modifications or anything statically linked to the library) can only be redistributed under LGPL-3, but applications that use the library don't have to be.

  • Add commands handler.

arduino_emoncms's People

Contributors

giacomoleonzi avatar

Stargazers

 avatar

Watchers

 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.