Ok thanks - that fixed the problem. 

Actually, I got a bit frightened, because at startup, I got: 

...
Jan 21 18:22:19 vegan python2[25172]: weewx[25172] DEBUG weewx.manager: 
recalculate_weights: Tranche size 100
Jan 21 18:22:32 vegan python2[25172]: weewx[25172] ERROR user.wmr200: 
read_device() USB Error Reason:[Errno 110] Operation timed out

But, I checked the weather station is there :

$ lsusb
Bus 001 Device 005: ID 0fde:ca01 Oregon Scientific WMRS200 weather station
...

And actually, it seems after a while that it is working:

Jan 21 18:26:44 vegan python2[25172]: weewx[25172] DEBUG user.wmr200:   
Queuing archive packet rx:63 archive_queue_len:1
Jan 21 18:26:45 vegan python2[25172]: weewx[25172] INFO user.wmr200: 
genStartup() Still receiving archive packets cnt:62 len:1
...
Jan 21 18:26:44 vegan python2[25172]: weewx[25172] DEBUG user.wmr200:   
Queuing archive packet rx:63 archive_queue_len:1
Jan 21 18:26:45 vegan python2[25172]: weewx[25172] INFO user.wmr200: 
genStartup() Still receiving archive packets cnt:62 len:1

So, probably just an initial startup error.

Thanks for your help!

On Wednesday, January 20, 2021 at 11:02:25 PM UTC+1 jo...@johnkline.com 
wrote:

> I don’t recommend reverting to 4.2 as it has some issues.
>
> The problem you are describing now is do to some issues in your db; 
> specifically, intervals of 0 (4.3 is less forgiving).  I found a thread to 
> address it from Jan 6.  I’ve pasted Tom’s response below.  Rather than 
> deleting records, if you know what the correct interval should be, you 
> could update the records.
>
> Good heavens. That's a lot. I wonder where they all came from?
>
> No matter. Here's how to fix (and sorry for giving you the wrong path to 
> the database).
>
> # First stop weewx
> *sudo systemctl stop weewx*
>
> *cd /var/lib/weewx*
>
> # Make a backup:
> *sudo cp weewx.sdb weewx.sdb.backup*
>
> # Delete all records where interval equals zero:
> *sudo sqlite3 weewx.sdb*
> sqlite> *delete from archive where interval==0;*
> sqlite> *.quit*
>
> # Restart weewx
> *sudo systemctl start weewx*
>
> If you get this error again, there is something wrong with the 
> configuration of your system.
>
> -tk
>
> On Jan 20, 2021, at 1:56 PM, Invisible Man <axelle....@gmail.com> wrote:
>
> Ok, I see WMR200 has been removed in December 2020, and is now an 
> extension.
>
>
> I install the extension, and I get more errors
>
> -- Logs begin at Wed 2021-01-20 16:50:14 CET. --
> Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__:     
> ****    File "/usr/share/weewx/weewx/manager.py", line 1255, in patch_sums
> Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__:     
> ****      self.recalculate_weights(start_d=datetime.date(2020,6,1))
> Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__:     
> ****    File "/usr/share/weewx/weewx/manager.py", line 1182, in 
> recalculate_weights
> Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__:     
> ****      self._do_tranche(mark_d, end_of_tranche_d, weight_fn, progress_fn)
> Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__:     
> ****    File "/usr/share/weewx/weewx/manager.py", line 1215, in _do_tranche
> Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__:     
> ****      weight = weight_fn(self, rec)
> Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__:     
> ****    File "/usr/share/weewx/weewx/manager.py", line 1366, in _calc_weight
> Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__:     
> ****      "Non-positive value for record field 'interval': %s" % 
> (record['interval'],))
> Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__:     
> ****  IntervalError: Non-positive value for record field 'interval': 0
> Jan 20 22:53:44 vegan python2[7867]: weewx[7867] CRITICAL __main__:     
> ****  Exiting.
>
> I'm really unhappy about that :( 
> When you upgrade, you expect things to work, not things to get broken. If 
> I had known, I wouldn't have upgraded.
> How can I revert to 4.2.0 ?
>
>
>
> On Wednesday, January 20, 2021 at 10:46:32 PM UTC+1 Invisible Man wrote:
>
>>
>> Hey! What's happening?! I've upgraded weewx 4.2.0 to 4.3.0 (on a 
>> Raspberry Pi) and I get this error !
>>
>> ```
>> Jan 20 22:33:39 vegan python2[6532]: weewx[6532] INFO __main__: 
>> Initializing weewx version 4.3.0
>> Jan 20 22:33:39 vegan python2[6532]: weewx[6532] INFO __main__: Using 
>> Python 2.7.16 (default, Oct 10 2019, 22:02:15
>>                                      [GCC 8.3.0]
>> Jan 20 22:33:39 vegan python2[6532]: weewx[6532] INFO __main__: Platform 
>> Linux-5.4.72-v7+-armv7l-with-debian-10.7
>> Jan 20 22:33:39 vegan python2[6532]: weewx[6532] INFO __main__: Locale is 
>> 'en_GB.UTF-8'
>> Jan 20 22:33:39 vegan python2[6532]: weewx[6532] INFO __main__: PID file 
>> is /var/run/weewx.pid
>> Jan 20 22:33:39 vegan weewx[6520]: Starting weewx weather system: weewx.
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] INFO __main__: Using 
>> configuration file /etc/weewx/weewx.conf
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] INFO __main__: Debug is 1
>> Jan 20 22:33:39 vegan systemd[1]: Started LSB: weewx weather system.
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] DEBUG __main__: 
>> Initializing engine
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] INFO weewx.engine: 
>> Loading station type WMR200 (weewx.drivers.wmr2
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__: 
>> Caught unrecoverable exception:
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__:     
>> ****  No module named wmr200
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__:     
>> ****  Traceback (most recent call last):
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__:     
>> ****    File "/usr/share/weewx/weewxd", lin
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__:     
>> ****      engine = weewx.engine.StdEngine(c
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__:     
>> ****    File "/usr/share/weewx/weewx/engine
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__:     
>> ****      self.setupStation(config_dict)
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__:     
>> ****    File "/usr/share/weewx/weewx/engine
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__:     
>> ****      __import__(driver)
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__:     
>> ****  ImportError: No module named wmr200
>> Jan 20 22:33:39 vegan python2[6536]: weewx[6536] CRITICAL __main__:     
>> ****  Exiting.
>> ```
>>
>> and indeed there is no longer wmr200 in /usr/share/weewx/weewx/drivers.
>> Now only wmr100 or wmr300.py ?!
>>
> -- 
>
> 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 weewx-user+...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/cb8ae32c-e1ce-41cb-9940-689d5ba0ea50n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/weewx-user/cb8ae32c-e1ce-41cb-9940-689d5ba0ea50n%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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/36aba7ec-4756-4d0c-b8e2-a0a1f0480abdn%40googlegroups.com.

Reply via email to