-
allow to connect um34c via bluetooth and log data in json format each 1 min ( tunable )
-
for backend the um34c project was used
-
startup parameters of the logger app.js can be customized in the
entrypoint.sh
file
through docker the um34c project can be built as it was on bionic version of ubuntu; actually I have a different distro and dependancies results in failing build.
-
know the device bluetooth address ( scan devices )
-
rfcomm from bluez package ( install with
apt install bluez
) -
jq for logging examples ( install with
apt install jq
)
./build.sh
sudo rfcomm bind 0 aa:bb:cc:dd:ee:ff
./run.sh
following and example to log voltages:
docker logs -n 1 -f um34c | while read line; do echo "$(echo $line | jq -r .voltage)V $(echo $line | jq -r .current)A $(echo $line | jq -r .record.current)mAh"; done