I suspect 'rain' occasionally has the value 'None', which cannot be
compared to zero. Try this expression instead

expression = 'rain is not None and rain > 0.0'

-tk


On Sat, May 9, 2020 at 9:38 PM Ian Prescott <[email protected]> wrote:

> Hi I have a fineoffset usb weather station which has been running raspbian
> stretch and weewx 3.9 ok and using alarm.py with no issues.
> For weewx 4 I decided to start from fresh, new sd card, new raspbian
> buster, and a fresh weewx install.
> After a of couple learner hicups I now have weewx 4 using buster and
> python 3 up and running.
> However I have hit a wall with alarm.py
> If I use expression = "rain > 0.0" then weewx crashes.
> If I use expression = "outTemp < 30.0" then weewx keeps running but no
> email is ever received.
>
> So after a search of the forum I found this command
> sudo PYTHONPATH=/usr/share/weewx python3 /usr/share/weewx/user/alarm.py
> /etc/weewx/weewx.conf
> This ran ok and I got an email
>
> I have attached my weewx.conf and the log from when I start weewx to when
> it crashes using expression = "rain > 0.0".
> I have no idea how to get any useful info regarding expression = "outTemp
> < 30.0", there doesn't appear to be anything unusual in the log.
>
> Thanks
>
> and again a fantastic program and a great learning experience.
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/ca5c79a5-c6bc-40d3-b0a0-1915d2929135%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/ca5c79a5-c6bc-40d3-b0a0-1915d2929135%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEAFg%3DYBRvSkEV61nj77n%3DB%2BFmX_hw507%2BmXKv8%3D0d7cKw%40mail.gmail.com.

Reply via email to