Skip to content

mvoehringer/zaehlerJS

Repository files navigation

ZählerJs is in alpha state and not ready for production.

example

Install on raspberryPI

Install NodeJs

NODE_JS_HOME="/opt/node"
PATH="$PATH:$NODE_JS_HOME/bin"
export PATH

http://blog.rueedlinger.ch/2013/03/raspberry-pi-and-nodejs-basic-setup/ for more infos

Install MongoDB

see http://c-mobberley.com/wordpress/index.php/2013/10/14/raspberry-pi-mongodb-installation-the-working-guide/ for more infos how to install MongoDB on the RaspberryPI.

Install ZählerJS

On Raspberry PI /Debian

  • sudo cp -a debian/zaehlerjs.init.sh /etc/init.d/zaehlerjs

  • sudo chmod +x /etc/init.d/zaehlerjs

  • sudo mkdir /usr/local/var

  • sudo mkdir /usr/local/var/run

  • sudo update-rc.d zaehlerjs defaults

  • sudo chmod +x bin/run.sh

  • sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000 OR authbind node myscript (see http://www.debian-administration.org/articles/386)

Running unit test

http://www.heise.de/developer/artikel/Unit-Tests-mit-Node-js-1823265.html

npm test 

or

mocha 

TODOs

  • add unit test for all
  • styling: show results as meter and counter
  • Zoom-In/Zoom-Out

Build Status

About

View your smartmeter data in realtime

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published