Step 2 is not working at all for me...
If I have
* schema = user.extensions.schema_apptemp*
* schema = user.extensions.schema_windrun*
added in the
*[DataBindings]*
* [[wx_binding]]*
*wee_database weewx.conf --reconfigure*
Gives this error
*configobj.DuplicateError: Duplicate keyword name at line 402.*
On Sunday, December 9, 2018 at 1:51:15 PM UTC-8, Philip Kutzenco wrote:
2) Stop weewx and edit weewx.conf to tell it to use this new schema
> extension by adding the *schema = line* below to the [DataBindings]
> stanza:
>
>
>
>
> *[DataBindings] [[wx_binding]] ...schema =
> user.extensions.schema_apptemp*
>
>
>
> 3) Create a new copy of the database with the extended schema
>
> *wee_database weewx.conf --reconfigure*
> and then rename the databases
>
>
>
> 4) Rebuild the database with new daily values
>
> *Sudo wee_database --rebuild-daily*
>
>
>
> 5) restart weewx
>
> phil
>
> On Sunday, December 9, 2018 at 4:27:23 PM UTC-5, Dj Merrill wrote:
>>
>> Please forgive my ignorance. It is not clear after reading the
>> instructions on extending the database precisely what I should do in this
>> case. Obviously we don't have an "user/electricity.py" file, but we do
>> have a "user/belchertown.py" file.
>>
>> Should I modify the "belchertown.py" file with something like:
>>
>> import schemas.wview
>> schema_with_apptemp = schemas.wview.schema + [('appTemp', 'REAL')]
>>
>>
>> Then modify weewx.conf to have:
>>
>> [DataBindings]
>> [[wx_binding]]
>> database = archive_sqlite
>> table_name = archive
>> manager = weewx.wxmanager.WXDaySummaryManager
>> schema = user.belchertown.schema_with_apptemp
>>
>>
>> I am using SQLlite so I believe I can skip step 3.
>>
>> Then, "wee_database weewx.conf --reconfigure" and rename the databases?
>>
>> Thanks,
>>
>> -Dj
>>
>>
--
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].
For more options, visit https://groups.google.com/d/optout.