Yes, it's possible to extend the V4 schema. That's what is documented in
the section *Modifying a starting schema
<http://www.weewx.com/docs/customizing.htm#Modifying_a_starting_schema>. *

But, let's keep the wview schema at V3.

On Sat, Apr 3, 2021 at 1:21 AM Gérard P <parat.ger...@gmail.com> wrote:

> It is possible to stay with 4.5.0 by changing the syntax of code using the
> "+" operator, for instance :
>     schema_extended = schemas.wview.schema + [('lightning_strikes',
> 'REAL'), ('avg_distance', 'REAL')]
> become
>     schema_extended = schemas.wview.schema.copy()
>     schema_extended.update([('lightning_strikes', 'REAL'),
> ('avg_distance', 'REAL')])
>
> Le vendredi 2 avril 2021 à 21:14:27 UTC+2, mksm...@gmail.com a écrit :
>
>> the upgrade to 4.5 from 4.4 failed and weewx is broken please advice
>> used these commands for upgrade
>> sudo apt update
>> apt list --upgradable  (4.5 was showing)
>> sudo apt full-upgrade
>> then I answered "N" to the upgrade select to keep my old files
>>
>> Apr  2 21:31:49 raspberrypi systemd[1]: Starting LSB: weewx weather
>> system...
>> Apr  2 21:31:49 raspberrypi weewx[1049]: Starting weewx weather system:
>> weewxTraceback (most recent call last):
>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File
>> "/usr/share/weewx/weewxd", line 29, in <module>
>> Apr  2 21:31:49 raspberrypi weewx[1049]:     import user.extensions
>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File
>> "/usr/share/weewx/user/extensions.py", line 20, in <module>
>> Apr  2 21:31:49 raspberrypi weewx[1049]:     schema_extended =
>> schemas.wview.schema + [('lightning_strikes', 'REAL'), ('avg_distance',
>> 'REAL')]
>> Apr  2 21:31:49 raspberrypi weewx[1049]: TypeError: unsupported operand
>> type(s) for +: 'dict' and 'list'
>> Apr  2 21:31:49 raspberrypi weewx[1049]:  failed!
>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Control process
>> exited, code=exited, status=1/FAILURE
>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Failed with result
>> 'exit-code'.
>> Apr  2 21:31:49 raspberrypi systemd[1]: Failed to start LSB: weewx
>> weather system.
>>
>
> --
> 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/a14fa3bd-3a52-4df4-be1b-00936e9f7f67n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/a14fa3bd-3a52-4df4-be1b-00936e9f7f67n%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/CAPq0zEA-jDZczf9D2XMzhTPFC0kJLZ1qbdumbdCSrdLTS9CJGA%40mail.gmail.com.

Reply via email to