Setting up the application

Viewing DSMR-reader

Now it’s time to view the application in your browser to check whether the GUI works as well. Just enter the ip address or hostname of your RaspberryPi in your browser.

Did you install using a monitor attached to the RaspberryPi and you don’t know what address your device has? Just type ip a | grep inet and it should display an ip address, for example:

inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
inet 192.168.1.40/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0
inet6 fe80::7a20:a7c3:66d4:a7b8/64 scope link

In this example the ip address is 192.168.178.40. If possible, you should assign a static ip address to your device in your router. This will make sure you will always be able to find the application at the same location.

Public webinterface warning

Danger

If you expose your application to the outside world or a public network, you might want to take additional steps:

Data integrity

Warning

Read this section carefully if you are using any volatile storage, such as an SD card.

Storage

This project was designed to run on a RaspberryPi, but it affects the lifetime of the storage severely. The introduction of DSMR v5 smart meters strains the storage even more, due to the high amount of telegrams sent each second.

The default storage on RaspberryPi’s suffers greatly from this and can not be trusted to keep your data safe. Eventually the storage will get corrupted and either make your data inaccessible, or it pretends to write data, while not storing anything at all.

Reducing the data throughput may help as well. More information can be found in the FAQ (data section).

Backups

DSMR-reader does support automated backups, but since they are still stored on the same volatile storage, they can be corrupted as well.

By default backups are created and written to:

/home/dsmr/dsmr-reader/backups/

Prevention

The only thing you can do, is make sure to have your backups stored somewhere else, once in a while. Using Dropbox to sync your backups does not protect them of all harm!

Note

If you are more technical savy, you could opt to either install the database or the entire application on a server with storage that tends to wear less. You can use the RaspberryPi are a remote datalogger, preventing a lot of issues.

More information about using a remote datalogger here.

Pitfalls

  • SD cards’ lifespan in this project vary from several weeks to some years, depending on the quality of the storage and the interval of telegrams sent by you smart meter.

  • Backups are created daily, but rotated weekly! So it’s possible that, at some point, the backups get corrupted as well since they’re overwritten each week. And eventually they will get synchronized to Dropbox as well.

Reboot test

You surely want to sudo reboot your device and check whether everything comes up automatically again with sudo supervisorctl status. This will make sure your data logger ‘survives’ any power surges.