Skip to content

Many electricity meters have an D0 interface (IrDA) this can be read with the d0reader and sent to the buzzn platform.

License

Notifications You must be signed in to change notification settings

buzzn/d0-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codeship Status for buzzn/d0-reader

D0 Reader

many electricity meters have an D0 interface (IrDA) this can be read with the d0reader and sent to the buzzn platform. The d0-reader consists of following hardware parts.

d0-reader app

The d0-reader consists of following Software parts.

  • redis. Key-value database for storing settings and queuing jobs.
  • web. Express webinterface for change settings. like access_token and hostname.
  • kue. background worker for sending readings.
  • serialport. reads incoming SMLs from the usb d0-head and send it to kue.

Development on your Workstation

  • Fork the repository on Github
  • Create a named feature branch (like add_component_x)
  • git checkout add_component_x
  • Write you changes
  • Write tests for your changes
  • Run the tests, ensuring they all pass
  • Submit a Pull Request using Github

Release

  • Download, unzip and Flash Hypriot OS
  • open SDCard on your Workstation and open device-init.yaml
  • change hostname to d0reader
  • if you want to use WLAN set wifi interfaces.
  • save and put SDCard into RaspberryPi
  • start and log into RaspberryPi via ssh [email protected] (password is hypriot)
  • git clone https://github.com/buzzn/d0-reader.git
  • cd d0-reader
  • remove the D0-head from the smartmeter to prevent storing SML in the que
  • docker-compose up -d | StartUp all container as daemons
  • logout and move SDCard from RaspberryPi to your Workstation
  • diskutil list | Locate SD Card
  • diskutil unmountDisk /dev/disk3 | Unmount the SD Card
  • sudo dd if=/dev/disk3 of=./images/d0-reader-v2.img | Create Image from SD Card
  • To see progress while it is running just type control-t
  • zip and upload image to aws s3
  • continue with step 'Production'

Production

Flash SDCard

  • diskutil list | Locate SD Card
  • diskutil unmountDisk /dev/disk3 | Unmount the SD Card
  • sudo dd bs=1m if=~/Downloads/pi-image.img of=/dev/rdisk3 | Burn Image on SDCard (MacOS with bs=1m, linux with bs=1M)
  • To see progress while it is running just type control-t

Docker cheat sheet

  • docker stop $(docker ps -a -q) | Stop all running Container
  • docker rm $(docker ps -a -q) | Remove all Container
  • docker rmi $(docker images -a -q) | Remove all Images
  • docker volume rm $(docker volume ls) | Remove all volumes
  • docker-compose up --build | rebuild images and start containers

Troubleshooting on RasPI

  • Does the RasPI start properly? ...
  • Is the IR measuring Head well connected?

Extra Infos

About

Many electricity meters have an D0 interface (IrDA) this can be read with the d0reader and sent to the buzzn platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •