The IoTConfserver manages and deploys the configuration to the custom IoT nodes. It is written in Node.js, uses InfluxDB for data collection and Grafana for visualizing it.
The latest version of Node.js can be installed by running
curl -sL https://deb.nodesource.com/setup_15.x | bash -
apt install nodejsThe confserver itself is available from GitHub:
git clone https://github.com/jougs/iotconfserver /srv/iotconfserveruseradd -r -d /srv/iotconfserver iotconfserver
chown -R iotconfserver:iotconfserver /srv/iotconfserversu -s /bin/bash -c 'cd /srv/iotconfserver && npm install' iotconfserverTo ease starting, stopping and log management for the confserver, a systemd service file is provided in the repository. It can be installed using the following command:
cp /srv/iotconfserver/iotconfserver.service /lib/systemd/system/
systemctl daemon-reload
systemctl enable iotconfserver.service
systemctl start iotconfserver.serviceThe logs of the confserver can be accessed using
journalctl -u iotconfserver.service
su -s /bin/bash -c 'cd /srv/iotconfserver && git pull && npm update' iotconfserver
cp /srv/iotconfserver/iotconfserver.service /lib/systemd/system/
systemctl daemon-reload
systemctl restart iotconfserver.service