# ------------------------------------------------------------ # Copyright © 2026/2027 Dr. Mohammad Alja'afreh. All rights reserved. # PSUT IoT Engineering Learning Platform # ------------------------------------------------------------ # ---- /etc/systemd/system/greenhouse-node.service (run the node at every boot) [Unit] Description=PSUT greenhouse sensor node After=network-online.target influxdb.service [Service] User=pi Environment=INFLUX_URL=http://localhost:8086 INFLUX_ORG=psut INFLUX_BUCKET=greenhouse EnvironmentFile=/home/pi/.influx_token # one line: INFLUX_TOKEN=... ExecStart=/home/pi/iot-env/bin/python /home/pi/greenhouse_node.py Restart=on-failure [Install] WantedBy=multi-user.target # then: sudo systemctl daemon-reload && sudo systemctl enable --now greenhouse-node