[weewx-user] Re: Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Jacques Terrettaz
Hi Meteo Oberwallis, Try to modify the script /usr/share/weewx/user/radiationhours.py as follow : Replace (in line 20 ?) : tempe = float(event.record.get('outTemp')) by tempe = event.record.get('outTemp') if tempe is None: tempe=15 -- You received this message because you are subscribed

[weewx-user] Re: Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Meteo Oberwallis
Hello Jacques Ok. Its Work! Thank you. I will test this. def newArchiveRecord(self, event): """Gets called on a new archive record event.""" seuil = 0 tempe = event.record.get('outTemp') if tempe is None: tempe=15 radiation = event.record.get('radiation')

Re: [weewx-user] Re: Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Tom Keffer
Or, even simpler, tempe = event.record.get('outTemp', 15.0) -tk On Fri, May 15, 2020 at 7:04 AM Jacques Terrettaz wrote: > Hi Meteo Oberwallis, > > Try to modify the script /usr/share/weewx/user/radiationhours.py as follow > : > > Replace (in line 20 ?) : > > tempe = float(event.record.get('ou

Re: [weewx-user] Re: Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Meteo Oberwallis
Thx Tom. I hope, this failure its away. Its not good, when i must clear the Logger every Day. Am Freitag, 15. Mai 2020 16:10:26 UTC+2 schrieb Tom Keffer: > > Or, even simpler, > > tempe = event.record.get('outTemp', 15.0) > > -tk > > On Fri, May 15, 2020 at 7:04 AM Jacques Terrettaz > wrote: > >

Re: [weewx-user] Re: Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Tom Keffer
No, it is not good. But, the VP2 driver is used by hundreds, maybe thousands of users. I'm sure it can be made to work. What happened after putting in the fix for the extension radiationhours? -tk On Fri, May 15, 2020 at 7:21 AM Meteo Oberwallis wrote: > Thx Tom. I hope, this failure its away.

Re: [weewx-user] Re: Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Meteo Oberwallis
The error has now disappeared and I have also found out why this happens. If the console lost the connection to the outside, then the expansion had a problem because there was no value. That is why weewx was stopped. Now it runs even after the data logger has been deleted and no data from the o