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.
- Raspberry Pi3 / 37,50 €
- Raspberry Pi3 PSU / 11,50 €
- Raspberry Pi3 Case / 9,90 €
- SanDisk microSD 16GB / 7,99 €
- D0-Head / 25 €
- Optional Easymeter Adapter / 3€
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.
- 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
- 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 pirate@d0reader.local (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'
- Download and Flash D0ReaderOS
- Connect to RaspberryPi ethernet, D0-head, SD Card and Power.
- open http://d0reader.local and login via your buzzn account
- 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 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
- Does the RasPI start properly? ...
- Is the IR measuring Head well connected?