Script acts as a central IoT [1] server or hub and manages microcontrollers and processes data coming from sensors.
- At the same time the script acts as an MQTT [2] client communicating with
a MQTT broker, usually a local one
mosquitto
for data exchange within IoT. - The script is aimed for Pi microcomputers running as headless servers,
e.g.,
Raspberry Pi
,Orange Pi
,Nano Pi
, etc. - The script can run under
Python2
as well asPython3
. However, it is defaulted to Python3 by the shebang. - It is recommended to run the script as a service of the operating system.
- All relevant parameters for the script are located in the configuration INI
file. It contains sensitive data as well, like passwords. So that the
repository contains just the sample INI file with placeholders instead
of real such as sensitive data. The production INI file should be present
only and only in some trusted locality with root access, e.g., in the folder
/usr/local/etc
in order not to be exposed to regular users.
[1] | Internet of Things |
[2] | MQ Telemetry Transport |