GithubHelp home page GithubHelp logo

gdubya / xively-currentcost Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jdcockrill/xively-currentcost

0.0 2.0 0.0 110 KB

Reading data from the serial connection from a CurrentCost energy meter and submitting it to Xively with a Raspberry Pi.

Python 72.92% Shell 27.08%

xively-currentcost's Introduction

#Xively CurrentCost I had a CurrentCost energy monitor, a Raspberry Pi and an old Cosm (now Xively) account kicking around, so I thought I'd put them to good use. I started with a Raspberry Pi but in time I'd like to switch it for an Arduino and use the Pi as a central station for relaying data from a number of sensors, perhaps.

##Python

Everything is in the python sub-directory. This script requires the following Python libraries:

  • pyserial
  • xively-python
  • PyYaml

If you install this script using setup.py You need to set API_KEY and FEED_ID as environment variables for the script to pick them up. The cc_xively.py script expects to find these in /etc/xively-currentcost/xively.conf. An example config file is created as part of the setup.py install process.

Lastly, you will probably work this out, but it expects there to be two channels/datastreams on your Xively feed. These should be named:

  • electricity_sensor; and
  • temperature sensor

There is an init.d script that is installed automatically as part of setup.py install, so you should be able to start it with sudo service cc_xively start and check the logs in /var/log/xively.log

###Final notes If you want it to automatically start on boot, run the following once you've run the Python install:

sudo update-rc.d cc_xively defaults

I also have a CC128 model monitor, which uses pin 4 for GND and pin 8 for the TX part of the Serial communications. This is what you want to feed into the 'RX' pin on your Raspberry Pi.

##Arduino

To-do.

xively-currentcost's People

Contributors

jdcockrill avatar gdubya avatar

Watchers

 avatar James Cloos 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.