Re: [weewx-user] Re: Database merge?

2021-03-18 Thread PJO
I've now managed to create two files with the data overlap removed (using SQL; and found this a valuable aid https://www.epochconverter.com/). In doing so I discovered that the weewx.sdb file I was indeed the problem as the step I missed was converting the database to a new schema! I was

Re: [weewx-user] Re: Database merge?

2021-03-18 Thread PJO
I didn't remove any lines, only credentials etc. and yes, that's the version I had a problem with (am on Python v3.8.5). I'm happy to know that the problem is not the database. To be clear, this was the sequence 1. Fresh install of WeeWX 4.x on new Pi (upgraded later) 2. Old skin and conf files

Re: [weewx-user] Re: Database merge?

2021-03-17 Thread gjr80
When I see issues that involve weewx.conf being copied around I always prefer to to look at a wee_debug output; it's output is the weewx.conf being used by WeeWX (provided you are not telling WeeWX to use another config file). Removes all doubt about whether you have the right or wrong

Re: [weewx-user] Re: Database merge?

2021-03-17 Thread Tom Keffer
ConfigObj has a problem with comments and empty stanzas. I'm not aware of any parsing problems. On Wed, Mar 17, 2021 at 5:02 PM Graham Eddy wrote: > no lines removed or added i.e. line 153 still in situ? > > i seem to recall configobj has difficulties with empty stanza and more so > with

Re: [weewx-user] Re: Database merge?

2021-03-17 Thread Graham Eddy
no lines removed or added i.e. line 153 still in situ? i seem to recall configobj has difficulties with empty stanza and more so with trailing comment lines. probably worth a try ensuring neither of those in the file e.g. leave enable=false uncommented > On 18 Mar 2021, at 10:19 am, PJO

Re: [weewx-user] Re: Database merge?

2021-03-17 Thread Tom Keffer
The version you posted parsed just fine, at least on my Python 3.9 implementation. Your log says weewxd was reading /etc/weewx/weewx.conf. Is that the version you posted? If so, the offending line either got commented out, or was removed. It's in there somewhere! -tk On Wed, Mar 17, 2021 at

[weewx-user] Re: Database merge?

2021-03-17 Thread PJO
I don't use Windows; Linux only. I didn't really change driver. I changed database. What changed in the working weewx.conf file (on the new system) was that I uncommented things (copied over originally from the old weex.conf) to enable uploads to wunderground and other services. I may have

Re: [weewx-user] Re: Database merge?

2021-03-17 Thread PJO
This (attached) is the file with passwords, ids and coordinates removed. Here's what I did: I stopped weewx on both RPis; copied the database to the new one, having backed up the database there, and then swapped in a copy of my weewx.conf with the uploads to wunderground etc. enabled. When

Re: [weewx-user] Re: Database merge?

2021-03-17 Thread Tom Keffer
> > You likely have a typo in weewx.conf but without seeing yours it's > impossible to know where. > In this case, we do know where: line 153 in weewx.conf. -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop

[weewx-user] Re: Database merge?

2021-03-17 Thread vince
That's many items in one post. You likely have a typo in weewx.conf but without seeing yours it's impossible to know where. Typically people mess up the [[ ]] number of brackets and have a mismatched number of brackets someplace. It's also possible you have a non-printable character in