Re: [weewx-development] Re: Instaling alarm.py from examples

2018-04-06 Thread Thomas Keffer
You should use the version of alarm.py that comes with weeWX. It's in the
directory 'examples'. It can also be downloaded here
.

-tk

On Fri, Apr 6, 2018 at 11:34 AM, Jesper  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?
>
>




[weewx-development] Re: prerequisites for running the weewx test suite

2018-04-06 Thread Vince Skahan
On Thursday, April 5, 2018 at 7:52:05 PM UTC-7, mwall wrote:
>
> On Thursday, April 5, 2018 at 10:40:37 PM UTC-4, Vince Skahan wrote:
>>
>> Is what's needed to test the mysql functionality written down anywhere ?
>>
>>
>
> there is a lot of info in DEV_NOTES.txt, but not so much about mysql in 
> there
>  
>

That's for sure.

I finally got the test suite to pass all tests on ubuntu-16.04, after 
cooking up a few small patches.
I'll try to do a PR today sometime for you to look at.