Dietpi installation for eHZ-EDL-MT681 smart meter language parsing
INSTALL lighthttpd via dietpi-software
sudo apt-get install vim screen git uuid-dev uuid-runtime python3-paho-mqtt sudo dietpi-software install 16 # build essentials
mkdir bin
mkdir src
cd src
git clone https://github.com/volkszaehler/libsml.git
cd libsml
make
cp examples/sml_server /home/dietpi/bin
git clone https://github.com/PA7T/eHZ-EDL-MT681.git
cd eHZ-EDL-MT681
cp eHZ-to-json-pub-mqtt.py /home/dietpi/bin/
cp MT681_daemon.sh /home/dietpi/bin/
sudo cp mt681.service /etc/systemd/system/
sudo systemctl start mt681
sudo systemctl enable mt681
cd /var/www
sudo ln -s /dev/shm/eHZ-EDL-MT681.json eHZ-EDL-MT681.json
mkdir api
mkdir api/v1/
cd api/v1/
sudo ln -s /dev/shm/values.json values.json
http://dietpi.local/eHZ-EDL-MT681.json
place index.html in /var/www/ place info.json in /var/www/api/v1/