Created
March 31, 2021 23:33
-
-
Save garystafford/18f8ba2d9567c875c0413ca90826ce2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=GTM Stack - Sensor to Mosquitto Script | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/python3 -u sensor_data_to_mosquitto.py \ | |
--host "192.168.1.12" --port 1883 --topic "sensor/output" | |
WorkingDirectory=/home/pi/iot-analytics-at-the-edge/scripts | |
StandardOutput=inherit | |
StandardError=inherit | |
Restart=always | |
User=pi | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment