Thanks… it’s running ok as a service, but would like to do a bit more
debugging… It seemed near the bottom of the module there are some instructions
on running stand alone for testing. But if not possible, then will ignore that
bit.
if __name__ == '__main__':
"""This section is used for
The "alarm" example is intended to be run as a service within weewx. The
assignment to "None" only happens if you try to run alarm as a standalone
program.
Follow the instructions at the top of the file alarm.py. It will cause
weewx to load it and run it as a service.
-tk
On Mon, Feb 13, 2017
Hi trying to test Alarm.py (version = 3.6.2)
I cannot seem to get this running.. it does not like that the "engine" is
set to None on line 209 in alarm.py, how can I get this working?
>engine = None
alarm = MyAlarm(engine, config_dict)
Here is the traceback: