You should use the version of alarm.py that comes with weeWX. It's in the directory 'examples'. It can also be downloaded here <https://raw.githubusercontent.com/weewx/weewx/master/examples/alarm.py>.
-tk On Fri, Apr 6, 2018 at 11:34 AM, Jesper <jesper.johan...@sentech.dk> wrote: > > > Den mandag den 12. februar 2018 kl. 22.17.53 UTC+1 skrev Jesper: > >> >> >> Den mandag den 12. februar 2018 kl. 22.11.02 UTC+1 skrev Jesper: >>> >>> Yes to the includet code line. >> >> >> I have used Python interactive with a few line of code and tested that >> login work. >> >> Jesper >> >> >>>>> >>>>> I have moved weeWX from Raspberry Pi 3 to a Lenovo Thinkpad T60 with >>>>> Debian 9.3 installed to get more CPU power. >>>>> >>>>> The Alarm.py module are still giving me troubles. I use the version >>>>> which Tom Keffer uploaded to this page. First time the expression is >>>>> evaluated true I get this exception. >>>>> >>>>> Exception in thread Thread-2: >>>>> >>>>> Traceback (most recent call last): >>>>> >>>>> File "/usr/lib/python2.7/threading.py", line 801, in >>>>> __bootdtrap_inner >>>>> >>>>> self.run() >>>>> >>>>> File "/usr/lib/python2.7/threading.py", line 754, in run >>>>> >>>>> self.__target(*self.__args, **self.__kwags) >>>>> >>>>> File "/home/weewx/bin/user/alarm.py”, line 177, in soundTheAlarm >>>>> >>>>> syslog.syslog/syslog.LOG_ERR, "alarm: Got exception while >>>>> sounding the alarm: %s" (e,)) >>>>> >>>>> TypeError: 'str' object is not callable >>>>> >>>>> >>>>> >>>>> Can someone give me a hint? >>>>> >>>>> >>>> >>>>