Thanks. Upgrade to 4.5.1 went fine, but this command throws an error which
puzzles me:
/home/weewx $ sudo bin/wee_database --add-column=energy_total --type=REAL
--config=archive/envoy.sdb
Traceback (most recent call last):
File "bin/wee_database", line 1138, in <module>
main()
File "bin/wee_database", line 186, in main
config_path, config_dict = weecfg.read_config(options.config_path, args)
File "/home/weewx/bin/weecfg/__init__.py", line 180, in read_config
default_encoding='utf-8')
File "/usr/lib/python3/dist-packages/configobj.py", line 1229, in __init__
self._load(infile, configspec)
File "/usr/lib/python3/dist-packages/configobj.py", line 1287, in _load
content = self._handle_bom(content)
File "/usr/lib/python3/dist-packages/configobj.py", line 1437, in _handle_bom
r eturn self._decode(infile, self.encoding)
File "/usr/lib/python3/dist-packages/configobj.py", line 1517, in _decode
infile[i] = line.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 31:
invalid start byte
Raspian Desktop Buster updated/upgraded
Intel NUC
WeeWx 4.5.1
> On 19 Apr, 2021, at 15:57, vince <[email protected]> wrote:
>
> Your weewx is too old. You need to update to 4.5.0 or later according to the
> release notes at https://github.com/weewx/weewx/releases
> <https://github.com/weewx/weewx/releases>
>
>
> On Monday, April 19, 2021 at 11:38:54 AM UTC-7 [email protected]
> <http://gmail.com/> wrote:
> I am asking just that but I can’t see how —binding might work
>
> When I installed the Envoy drive, it still uses wx_binding when in creates
> envoy.sdb
>
> So I tried:
>
> In /home/weewx:
>
> sudo bin/wee_database --add-column=energy_total --config=archive/envoy.sdb
>
> And it throws an error:
>
> wee_database: error: no such option: --add-column
>
>
>> On 16 Apr, 2021, at 17:58, vince <[email protected]
>> <applewebdata://6837E4CA-8D58-4732-B5F6-A82979FC169B>> wrote:
>>
>
>> (untested but...) see if the --binding option gets you what you're looking
>> for, if you're asking how to add column(s) to a secondary database other
>> than the default one.
>>
>> On Friday, April 16, 2021 at 2:54:19 PM UTC-7 [email protected]
>> <http://gmail.com/> wrote:
>> From the WeeWx docs:
>>> Adding a new type to an existing database
>>> Here's how you would add the observation type electricity (from the example
>>> Adding a second data source
>>> <http://weewx.com/docs/customizing.htm#Adding_2nd_source>) to an existing
>>> database by using wee_database:
>>>
>>> wee_database --add-column=electricity
>>
>> But if I want to specify **which** .sdb file can I do:
>>
>> wee_database --add-column=mynewcolumn --config=another.sdb (which already
>> exists).
>>
>> WeeWx 4.4.1
>> Python 3.7
>> Raspian Desktop Buster
>>
>
>> --
>> 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]
>> <applewebdata://6837E4CA-8D58-4732-B5F6-A82979FC169B>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/961ff186-7efa-4306-9e21-4fa6c505e9e2n%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/weewx-user/961ff186-7efa-4306-9e21-4fa6c505e9e2n%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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/3a4ffda4-c4c6-4506-af39-22d5140e81ddn%40googlegroups.com
>
> <https://groups.google.com/d/msgid/weewx-user/3a4ffda4-c4c6-4506-af39-22d5140e81ddn%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/5FB9A2B2-442D-4279-A730-46E66181DFE3%40gmail.com.