-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi, thanks for your work here. I'm pretty sure my side of the setup is correct, as with the correct packages installed I've got this pi reporting the UPS details through the NUT upsstats web page & the user running the script gets the correct output when running 'upsc myups', however when attempting to run your script on the pi I get the error below:
prtg@raspberrypi:/var/prtg/scriptsxml $ ./battery_sensor.py
<prtg>
Traceback (most recent call last):
File "/var/prtg/scriptsxml/./battery_sensor.py", line 235, in <module>
obtain_status()
File "/var/prtg/scriptsxml/./battery_sensor.py", line 67, in obtain_status
print("<text>" + banner_model + banner_serial + "</text>")
UnboundLocalError: local variable 'banner_model' referenced before assignment
Are you still working on this? Do you know if there's been any breaking changes to NUT?
Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels