Traceback (most recent call last):
File "/opt/ISP-lightning-mqtt-daemon/ISP-lightning-mqtt-daemon.py", line 950, in <module>
GPIO.setup(interrupt_pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
RuntimeError: Not running on a RPi!
And also:
pi@lightning:/opt/ISP-lightning-mqtt-daemon $ python3 /opt/ISP-lightning-mqtt-daemon/ISP-lightning-mqtt-daemon.py --calc_tuning_cap
[2024-06-24 16:45:32] * Mode: Calculate Tuning Cap value and exit
[2024-06-24 16:45:32] - * init mqtt_client_connected=[False]
[2024-06-24 16:45:32] * Sensor on I2C bus
[2024-06-24 16:45:32] - - ip=[192.168.1.83], mac[dc:a6:32:ae:98:62], interface=[eth0], uniq-id=[AS3935-dca632ae9862]
Traceback (most recent call last):
File "/opt/ISP-lightning-mqtt-daemon/ISP-lightning-mqtt-daemon.py", line 950, in <module>
GPIO.setup(interrupt_pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
RuntimeError: Not running on a RPi!
Checklist:
Release with the issue:
Last working release (if known):
Hardware, Operating System, Python version: I am running the code on a Raspberry PI 4B with 8GB
Description of problem: When I start the daemon it works fine initially but then the code runs into an error:
Python errors shown in the logs (if applicable):
And also:
Additional information: