[weewx-user] Proper/Best Way to Add Additional Ecowitt Sensors

2020-08-19 Thread Blaze
I think this is really a multipart question, but I am trying to understand 
the best/proper way to add Ecowitt soil sensors to my reports. Keeping in 
mind that I want to be able to upgrade to future releases as they come 
available with the least amount of post upgrade effort. 

*Setup*
Ubuntu 20.04.1 LTS
WeeWx v4.1.1 using setup.py
gw1000-0.1.0b11
sqlite db
Seasons skin
Ecowitt GW1000 WiFi Gateway
1 Outdoor Temp Sensor
1 Indoor Temp Sensor
5 Soil Moisture Sensors (temporarily 5th sensor is broken while waiting for 
replacement)  

Out of the box everything is showing up in the Seasons' report except my 
soil moisture sensors. I do have data for the first 4 soil moisture sensors 
in the sqlite db, but nothing for 5th one.  And I can see there is no entry 
in the db for SoilMoisture sensors 5-8. So begins my adventure of learning 
more about this awesome project called WeeWx.

So I am thinking I have at least 3 tasks.

First I need to extend the db to accommodate SoilMoisture sensors 5-8?
For this task do I extend the schema by modifying the wview_extended.py and 
the wview.py to include these extra sensors in the db? Or is the better 
approach to use something like adding a new type to the database as 
described in the Customization Guide?

Second modify the reporting mechanism to show SoilMoisture in my Seasons' 
report.
I'm really uncertain for this portion. I did a grep in the /home/weewx/bin/ 
directory, and I can see several files where "soil " is referenced. Do I 
just need to add entries in these files for extra sensors?

*Command used: *
grep -iHR soil /home/weewx/bin/*

*Relevant files (or so I think) referencing the word "soil".*
/home/weewx/bin/schemas/wview.py
/home/weewx/bin/schemas/wview_extended.py
/home/weewx/bin/user/gw1000.py (this one seems to already have all the 
sensors)
/home/weewx/bin/weewx/units.py
/home/weewx/bin/weewx/restx.py

And would the last task be to update the appropriate files in 
the /home/weewx/skins/Seasons/ to actually generate the graphs I want to 
have displayed in my report?

Thanks in advance for any help or guidance.
Rob



-- 
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/19ef0bd4-5ea7-49d3-8d3f-bd0af8505098n%40googlegroups.com.


[weewx-user] Re: whew and gw1000

2020-08-19 Thread gjr80
That is good to hear.

Gary

On Thursday, 20 August 2020 11:20:20 UTC+10, Luke Marcum wrote:
>
> Thanks so much! Just tried it out and it worked!
>
> On Wednesday, August 19, 2020 at 9:15:45 PM UTC-4, Luke Marcum wrote:
>>
>> Its fine!
>>
>> On Wednesday, August 19, 2020 at 7:35:56 PM UTC-4, gjr80 wrote:
>>>
>>> Have published the WeeWX-WD 
>>>  v2.0.0 release 
>>> just now. Download and installation should work as per the readme. My 
>>> apologies for the delay.
>>>
>>> Gary
>>>
>>> On Tuesday, 18 August 2020 22:41:09 UTC+10, gjr80 wrote:

 Rich, thanks, indeed I did not publish a 2.0.0 release package and 
 hence the 404 error. 

 Luke. As Rich points out you can download a zip of the repo and that 
 will install, my concern is whether there are any outstanding issues with 
 2.0.0. From memory I had them all sorted and then other things took me 
 away 
 from publishing the release. Give me day to have a look over 2.0.0 and 
 publish the release.

 Gary

 On Tuesday, 18 August 2020 21:22:09 UTC+10, rich T wrote:
>
> Gary
>
> Believe this is the issue that Luke is having:
>
> pi@raspberrypi:~ $ wget -P /var/tmp 
> https://github.com/gjr80/weewx-weewx-wd/releases/download/v2.0.0/weewxwd-2.0.0.tar.gz
> --2020-08-18 07:17:01--  
> https://github.com/gjr80/weewx-weewx-wd/releases/download/v2.0.0/weewxwd-2.0.0.tar.gz
> Resolving github.com (github.com)... 140.82.112.4
> Connecting to github.com (github.com)|140.82.112.4|:443... connected.
> HTTP request sent, awaiting response... 404 Not Found
> 2020-08-18 07:17:02 ERROR 404: Not Found.
>
> Now if you go to https://github.com/gjr80/weewx-weewx-wd, cloning or 
> downloading the zip file seems to work.
>
> Rich
>
> On Sunday, August 16, 2020 at 6:26:16 PM UTC-4, Luke Marcum wrote:
>>
>> Im trying to set up weewx to obtain data from my gw1000, running on 
>> my pi4.  Im using these instructions to set it up: 
>> https://github.com/weewx/weewx/wiki/gw1000-recipe and I've made it 
>> to the part where I have to update the interceptor settings in 
>> weewx.conf 
>> but I can't seem to find where this part of the settings is.  I have 
>> been 
>> able to run interceptor.py from the interceptor download and it gets my 
>> current weather data, but I can't seem to connect it to weewx.  HELP!!!
>>
>

-- 
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/95b4f4a2-752e-43a1-a5b2-2e2a8102b2e4o%40googlegroups.com.


Re: [weewx-user] Import from Weathercat

2020-08-19 Thread gjr80
Sorry, almost missed this one. I thought WeeWX used a vacuum somewhere but 
it seems not. (it was discussed when we were working on a database patch a 
couple of years back and I am aware of a couple of extensions that 
insert/delete data in some secondary databases that use it via  schedule). 
I had it in my mind the adding/deleting caused the bloat whereas adding 
only (as wee_import does) does not. 

I guess you did in fact do a vacuum, did it bring the size down? Happy to 
look at implementing it somehow if there is a demonstrated benefit.

Gary

On Friday, 14 August 2020 10:37:27 UTC+10, Ryan Stasel wrote:
>
> So, did get it working. Interesting note. When I was previously doing 
> imports from a WC exported csv, my weewx.sdb, after import, was about 160MB 
> (10 years of data). After importing from weewx, my weewx.sdb is over 600MB. 
>
> Would there be any benefit to a VACUUM on sqlite post import? not entirely 
> sure what would be taking up all the extra space. 
>
> On Monday, August 3, 2020 at 8:28:39 PM UTC-7, gjr80 wrote:
>>
>> On second thoughts there probably is some scope to have some sort of 
>> ignore list. I can see it relying on the user having a reasonable 
>> understanding of his/her data. I will make a note to look at this again.
>>
>> Gary
>>
>> On Tuesday, 4 August 2020 10:33:18 UTC+10, Ryan Stasel wrote:
>>>
>>> Cool! It just was hard to track what was going on given the 
>>> errors/warnings.
>>>
>>> Shame we can't just say ignore those (fields, or lack there of) during 
>>> import, unless I'm missing something obvious. 
>>>
>>

-- 
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/4060762d-dd86-442c-9634-b08bab1a7c4ao%40googlegroups.com.


[weewx-user] Re: whew and gw1000

2020-08-19 Thread Luke Marcum
Thanks so much! Just tried it out and it worked!

On Wednesday, August 19, 2020 at 9:15:45 PM UTC-4, Luke Marcum wrote:
>
> Its fine!
>
> On Wednesday, August 19, 2020 at 7:35:56 PM UTC-4, gjr80 wrote:
>>
>> Have published the WeeWX-WD 
>>  v2.0.0 release 
>> just now. Download and installation should work as per the readme. My 
>> apologies for the delay.
>>
>> Gary
>>
>> On Tuesday, 18 August 2020 22:41:09 UTC+10, gjr80 wrote:
>>>
>>> Rich, thanks, indeed I did not publish a 2.0.0 release package and hence 
>>> the 404 error. 
>>>
>>> Luke. As Rich points out you can download a zip of the repo and that 
>>> will install, my concern is whether there are any outstanding issues with 
>>> 2.0.0. From memory I had them all sorted and then other things took me away 
>>> from publishing the release. Give me day to have a look over 2.0.0 and 
>>> publish the release.
>>>
>>> Gary
>>>
>>> On Tuesday, 18 August 2020 21:22:09 UTC+10, rich T wrote:

 Gary

 Believe this is the issue that Luke is having:

 pi@raspberrypi:~ $ wget -P /var/tmp 
 https://github.com/gjr80/weewx-weewx-wd/releases/download/v2.0.0/weewxwd-2.0.0.tar.gz
 --2020-08-18 07:17:01--  
 https://github.com/gjr80/weewx-weewx-wd/releases/download/v2.0.0/weewxwd-2.0.0.tar.gz
 Resolving github.com (github.com)... 140.82.112.4
 Connecting to github.com (github.com)|140.82.112.4|:443... connected.
 HTTP request sent, awaiting response... 404 Not Found
 2020-08-18 07:17:02 ERROR 404: Not Found.

 Now if you go to https://github.com/gjr80/weewx-weewx-wd, cloning or 
 downloading the zip file seems to work.

 Rich

 On Sunday, August 16, 2020 at 6:26:16 PM UTC-4, Luke Marcum wrote:
>
> Im trying to set up weewx to obtain data from my gw1000, running on my 
> pi4.  Im using these instructions to set it up: 
> https://github.com/weewx/weewx/wiki/gw1000-recipe and I've made it to 
> the part where I have to update the interceptor settings in weewx.conf 
> but 
> I can't seem to find where this part of the settings is.  I have been 
> able 
> to run interceptor.py from the interceptor download and it gets my 
> current 
> weather data, but I can't seem to connect it to weewx.  HELP!!!
>


-- 
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/7e8bd353-c761-4142-ac5c-84fee8393656o%40googlegroups.com.


[weewx-user] Re: whew and gw1000

2020-08-19 Thread Luke Marcum
Its fine!

On Wednesday, August 19, 2020 at 7:35:56 PM UTC-4, gjr80 wrote:
>
> Have published the WeeWX-WD 
>  v2.0.0 release just 
> now. Download and installation should work as per the readme. My apologies 
> for the delay.
>
> Gary
>
> On Tuesday, 18 August 2020 22:41:09 UTC+10, gjr80 wrote:
>>
>> Rich, thanks, indeed I did not publish a 2.0.0 release package and hence 
>> the 404 error. 
>>
>> Luke. As Rich points out you can download a zip of the repo and that will 
>> install, my concern is whether there are any outstanding issues with 2.0.0. 
>> From memory I had them all sorted and then other things took me away from 
>> publishing the release. Give me day to have a look over 2.0.0 and publish 
>> the release.
>>
>> Gary
>>
>> On Tuesday, 18 August 2020 21:22:09 UTC+10, rich T wrote:
>>>
>>> Gary
>>>
>>> Believe this is the issue that Luke is having:
>>>
>>> pi@raspberrypi:~ $ wget -P /var/tmp 
>>> https://github.com/gjr80/weewx-weewx-wd/releases/download/v2.0.0/weewxwd-2.0.0.tar.gz
>>> --2020-08-18 07:17:01--  
>>> https://github.com/gjr80/weewx-weewx-wd/releases/download/v2.0.0/weewxwd-2.0.0.tar.gz
>>> Resolving github.com (github.com)... 140.82.112.4
>>> Connecting to github.com (github.com)|140.82.112.4|:443... connected.
>>> HTTP request sent, awaiting response... 404 Not Found
>>> 2020-08-18 07:17:02 ERROR 404: Not Found.
>>>
>>> Now if you go to https://github.com/gjr80/weewx-weewx-wd, cloning or 
>>> downloading the zip file seems to work.
>>>
>>> Rich
>>>
>>> On Sunday, August 16, 2020 at 6:26:16 PM UTC-4, Luke Marcum wrote:

 Im trying to set up weewx to obtain data from my gw1000, running on my 
 pi4.  Im using these instructions to set it up: 
 https://github.com/weewx/weewx/wiki/gw1000-recipe and I've made it to 
 the part where I have to update the interceptor settings in weewx.conf but 
 I can't seem to find where this part of the settings is.  I have been able 
 to run interceptor.py from the interceptor download and it gets my current 
 weather data, but I can't seem to connect it to weewx.  HELP!!!

>>>

-- 
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/f2bfbefc-4232-440f-9a1b-1774af315023o%40googlegroups.com.


[weewx-user] wsum and sumtime are different after upgrading to 4.1.1

2020-08-19 Thread David Geiger
I have been a long time user of weewx, great software!

I recently updated from 3.9.2 to 4.1.1. After the update, I noticed that my 
average yearly outTemp was different. I took a look in the database and 
noticed that after the upgrade, my wsum and sumtime are a factor of 300 
times greater than before the upgrade. Before, sumtime = 288 each day, 
after the upgrade it = 86400 each day. I noticed it in the 
archive_day_outTemp table. The average for the day is still correct, but 
when you run for a span that includes 3.9.2 and 4.1.1, the 4.1.1 far out 
weighs the 3.9.2.

I have my archive interval set to 300. It was not changed between 3.9.2 and 
4.1.1

-- 
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/b9f624ae-fcb7-40ab-bada-263a3d665300n%40googlegroups.com.


[weewx-user] Re: Migrating/Importing WD data in MySql DB to WeeWx MySql DB

2020-08-19 Thread gjr80
Sorry can't help you with MySQL to MySQL migration. 

Regards wee_import though, yes it can be slow. When I wrote the WD import 
module the WD user who first used it in anger had something like (from 
memory) 10 years of data to import. The import had to be done in batches 
(again from memory) of 2-3 years each (wee_import uses transactions on the 
database but does keep track of duplicate timestamps and a few other things 
so memory usage does grow as the span of the import grows). I found one 
email from the user with the results of the first batch import and 1.4 
millions records were imported on a Raspberry Pi in 58 minutes. Al things 
considered I find that reasonable.

There are a couple of things you can do to speed up wee_import. You can 
tweak a the tranche setting in the import config file, this alters the size 
of the transactions (in records) that wee_import uses. The default is 250, 
you could raise this which will result in fewer db transactions but it will 
likely increase memory usage so you may need to do the import in smaller 
batches. One other approach if using a slow(ish) RPi as your WeeWX machine 
is to do just the import on a faster machine and then copy the imported 
data to the WeeWX RPi. Granted this is simpler when using SQLite but 
depending on your setup could be adapted for MySQL.

You say you have 60 000 odd MySQL records, that does not seem like much, 
how does that correlate with the number of entries in the WD log files?

Gary

On Thursday, 20 August 2020 08:48:46 UTC+10, Andrew M wrote:
>
> I started to use the wee_import process to process all my WD log files to 
> WeeWx MySqlDB, and it was taking a long time. It seems like If I have many 
> years of data it will take that long to import them into WeeWx MySqlDB.
>
> I then thought, oh wait, i already have the WD data in a MySql DB, so why 
> am i doing this process.
>
> Now I have to figure out how I can gracefully import all the WD data I 
> have in a MySQL DB to the one I set up for WeeWx. Both are on the same 
> hosted server. Different DB names.
>
> There is one table for WD and multiple tables for WeeWx so  have no idea 
> on where to begin with this. I have ~60,000 rows of data in the WD MySQL DB 
> table.
>
> Does anyone have a graceful way of migrating the WD MySQL DB into a WeeWX 
> DB?
>
> Am I overlooking something in the documentation or in group?
>
> Thank you.
>
>
>

-- 
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/0405b588-7b17-41b9-8994-d0b71a4f21dfo%40googlegroups.com.


[weewx-user] Re: Belchertown gets year summary wrong

2020-08-19 Thread Pat
Take a look at the wiki documentation for the xaxis categories 

. 

>  *You will need to give the right labels, and do not expect all output to 
start with January*. For example, if you start a new database in June, then 
you would use xAxis_categories = 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 
'Dec'. **It is up to you to provide the right labels for the data you're 
expecting. **  

On Wednesday, August 19, 2020 at 2:10:45 PM UTC-4 ba...@kdbarto.org wrote:

> I've only had data since early March, I just added the Year summary 
> ([[avgclimatethisyear]] from the 
> https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation#average-climate-values-chart)
>  
> and it is starting from January. So even though the data reported is 
> correct, the month is wrong.
>
> Any idea how to fix that one?
>
> http://www.kdbarto.org/weather/belchertown/graphs/?graph=year
>
> On a side note - is there anyplace where I can find a "complete list" of 
> all the possible graphs that Belchertown, or the default skin for weewx 
> supports out of the box?
>
>  David
>
>

-- 
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/e3497bee-dd3c-4626-9b40-292d042b8a62n%40googlegroups.com.


[weewx-user] Re: Pi Display for Belchertown

2020-08-19 Thread Pat
AWESOME!

On Wednesday, August 19, 2020 at 7:00:23 AM UTC-4 andyhud...@googlemail.com 
wrote:

> Morning - thought some users here might be interested in a 3d printed case 
> just uploaded to Thingiverse, made to take advantage of the great /pi view 
> of Belchertown. Anyhow hope its ok to post - anyone interested can see more 
> at 
> https://www.instagram.com/p/CED6hG6JTN5/?utm_source=ig_web_button_share_sheet 
>  
> or
>  
> print it via https://www.thingiverse.com/thing:4574032 
>
>
>
> [image: PiCasefrontsm.jpg]
>

-- 
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/4203a8f9-23c4-400c-ae0c-fb7a0c7ddb94n%40googlegroups.com.


[weewx-user] Re: GW1000 output and database

2020-08-19 Thread gjr80
Hi,

I think we might need a bit of clarification as to what it is you are 
trying to do. You say "inTemp is being used by another service", do you 
mean that WeeWX field inTemp is being *provided* by another service/driver 
(which has consequences for running the  GW1000 driver as as service) or do 
you mean WeeWX field inTemp is being *used* by another service (which has 
no consequences for the GW1000 driver when run as a service). Does the same 
apply for inHumidity? When you ran the GW1000 driver directly with 
--test-service there was no extraTemp2 or extraHumid2 fields and your field 
map does not map anything to these fields so I would expect extraTemp2 and 
extraHumid2 to show as N/A in any reports.

Perhaps you have a misunderstanding re the field map. The field map maps 
GW000 'fields' to WeeWX fields. The GW1000 driver uses a default field map. 
The default field map can be altered in two ways; you can replace the 
entire default field map by defining your own field map using a 
[[field_map]] stanza, or you can alter the default field map by listing 
changes to the default field map in a [[field_map_extensions]] stanza. It 
is not clear if you were attempting one of these approaches as you have no [[ 
]] level stanza in the config extra you posted. Also when defining a field 
map entry the format is:

WeeWX field name = GW1000 field name

where:
GW1000 field name is the name of the GW1000 'field' that you wish 
to map 
WeeWX field name is the WeeWX field name you wish to contain the 
data from the GW1000 'field' concerned. The WeeWX field name is the the 
field name you will use in reports etc

You can see what fields your GW1000 emits by running the GW1000 driver 
directly with the --live-data command line option (the fields shown when 
running the driver directly using the --test-service or --test-driver 
command line options are WeeWX field names, ie they have been mapped using 
the field map, fields shown using --live-data are GW1000 'fields' ie they 
are unmapped).

Gary

On Thursday, 20 August 2020 08:15:29 UTC+10, Timothy Buchanan wrote:
>
> I installed GW1000 as a service and the test-service command gives this 
> output:
>
> dateTime: 1597861672, dummyTemp: 96.3, extraHumid1: 26, extraTemp1: 85.1, 
> inHumidity: 33, inTemp: 75.74, pressure: 22.2360805875, relbarometer: 
> 753.0, soilMoist1: 15, usUnits: 1, wh31_ch1_batt: 0, wh51_ch1_batt: 0
>
> In weewx.conf, I put this list of options:
>
> [GW1000]
> driver = user.gw1000
> inTemp = extraTemp2
> inHumidity = extraHumid2
> extraTemp1 = extraTemp1
> extraHumid1 = extraHumid1
> soilMoist1 = soilMoist1
> pressure = ""
>
> I chose these because inTemp is being used by another service. When I 
> tried to use the data in my skin (modified exfoliation), I found that 
> extraTemp2 and extraHumid2 are shown as NA. The other values are displayed. 
> What did I do wrong here? Thanks for any help.
>

-- 
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/5a3f744a-4fbd-49e0-9d2a-d065bda77c32o%40googlegroups.com.


[weewx-user] Re: WEEWX_WD

2020-08-19 Thread gjr80
Refer this post 
.

Gary

On Tuesday, 18 August 2020 07:34:01 UTC+10, Luke Marcum wrote:
>
> So, im going to start a new thread and ask questions here whenever I need 
> help setting up WEEWX_WD.  Right now im on step one and i input wget -P 
> /var/tmp 
> https://github.com/gjr80/weewx-weewx-wd/releases/download/v2.0.0/weewxwd-2.0.0.tar.gz
>  
> but it connects to GitHub.com but then says "HTTP request sent, awaiting 
> response...404 Not Found"!
>

-- 
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/aabe4379-6ccd-4de8-aae0-bca5a234a2f9o%40googlegroups.com.


[weewx-user] Re: whew and gw1000

2020-08-19 Thread gjr80
Have published the WeeWX-WD 
 v2.0.0 release just 
now. Download and installation should work as per the readme. My apologies 
for the delay.

Gary

On Tuesday, 18 August 2020 22:41:09 UTC+10, gjr80 wrote:
>
> Rich, thanks, indeed I did not publish a 2.0.0 release package and hence 
> the 404 error. 
>
> Luke. As Rich points out you can download a zip of the repo and that will 
> install, my concern is whether there are any outstanding issues with 2.0.0. 
> From memory I had them all sorted and then other things took me away from 
> publishing the release. Give me day to have a look over 2.0.0 and publish 
> the release.
>
> Gary
>
> On Tuesday, 18 August 2020 21:22:09 UTC+10, rich T wrote:
>>
>> Gary
>>
>> Believe this is the issue that Luke is having:
>>
>> pi@raspberrypi:~ $ wget -P /var/tmp 
>> https://github.com/gjr80/weewx-weewx-wd/releases/download/v2.0.0/weewxwd-2.0.0.tar.gz
>> --2020-08-18 07:17:01--  
>> https://github.com/gjr80/weewx-weewx-wd/releases/download/v2.0.0/weewxwd-2.0.0.tar.gz
>> Resolving github.com (github.com)... 140.82.112.4
>> Connecting to github.com (github.com)|140.82.112.4|:443... connected.
>> HTTP request sent, awaiting response... 404 Not Found
>> 2020-08-18 07:17:02 ERROR 404: Not Found.
>>
>> Now if you go to https://github.com/gjr80/weewx-weewx-wd, cloning or 
>> downloading the zip file seems to work.
>>
>> Rich
>>
>> On Sunday, August 16, 2020 at 6:26:16 PM UTC-4, Luke Marcum wrote:
>>>
>>> Im trying to set up weewx to obtain data from my gw1000, running on my 
>>> pi4.  Im using these instructions to set it up: 
>>> https://github.com/weewx/weewx/wiki/gw1000-recipe and I've made it to 
>>> the part where I have to update the interceptor settings in weewx.conf but 
>>> I can't seem to find where this part of the settings is.  I have been able 
>>> to run interceptor.py from the interceptor download and it gets my current 
>>> weather data, but I can't seem to connect it to weewx.  HELP!!!
>>>
>>

-- 
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/dd82fdcb-a4a2-46e5-a789-95abf34bbe58o%40googlegroups.com.


Re: [weewx-user] UnicodeDecodeError in database

2020-08-19 Thread Tom Keffer
I don't have any problem with either copy of weewx.conf that you sent to
me. Things to try:

1. This is /home/weewx/weewx.conf, right?

2. Try reading it directly:

*python -c "import configobj;
c=configobj.ConfigObj('/home/weewx/weewx.conf')"*

3. Set debug=1 in weewx.conf, then try running weewxd, then send us the
log.

-tk



On Wed, Aug 19, 2020 at 7:19 AM David Marshall 
wrote:

> Hi Tom
>
>
>
>1. Yes wee_database
>2. Yes same path different  copies
>3. No edits – in fact I tried not to change anything in the final
>install apart from setting it to simulator.
>
>
>
> I attach the last version of weewx.conf, which is still producing the
> error.
>
>
>
> David
>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
> *From: *Tom Keffer 
> *Sent: *19 August 2020 15:59
> *To: *weewx-user 
> *Subject: *Re: [weewx-user] UnicodeDecodeError in database
>
>
>
> 1. All these attempts were with running wee_database? Or, something else?
>
>
>
> 2. I assume all these different attempts used the same path, namely
> /home/weewx/weewx.conf. And, we're sure they used different copies (albeit,
> at the same path location)?
>
>
>
> 3. It's hard to explain how fresh, untouched versions of weewx.conf are
> all getting the same error. Are you editing these copies before running?
>
>
>
> Can you send me the offending weewx.conf to my personal email? tkeffer at
> gmail.com
>
>
>
> -tk
>
>
>
> On Wed, Aug 19, 2020 at 6:35 AM David Marshall 
> wrote:
>
> Thanks Tom
>
>
>
> Tried your code to show the offending line but nothing appears. Then tried
> a clean weewx.conf from the install folder but still the same error
> message. Then tried a full reinstall, but still the same error.
>
> Then tried it with the the default database using simulator and still the
> same error - so you are right it is not my database. What next?
>
> On Wednesday, August 19, 2020 at 2:51:31 PM UTC+2, Tom Keffer wrote:
>
> The decode error is actually in your configuration file, weewx.conf, and
> not in the database.
>
>
>
> Somehow, your copy of weewx.conf got corrupted. One of the lines has a
> character sequence that starts out as a utf-8 encoding, but the following
> byte is not what was expected.
>
>
>
> Unfortunately, the error does not tell you which line the bad character
> sequence is in, only that it is in byte position 26 of that line. Perhaps
> this will help (NOT TESTED):
>
>
>
> *od -x -A d weewx.conf | grep e0*
>
>
>
> This should print out the line and offending sequence.
>
>
>
> -tk
>
>
>
>
>
>
>
> On Wed, Aug 19, 2020 at 5:25 AM David Marshall 
> wrote:
>
> Hi
>
>
>
> Installed a fresh version of weewx 4.1.1 without problem using setup.py on
> a raspberry.
>
>
>
> Transferred my existing sqlite database from weewx 3.9.1. It is big, about
> 3 years of data. This worked fine.
>
>
>
> But when I tried to use reconfigure I got the following error
>
>
>
> pi@raspberrypi:~ $ /home/weewx/bin/wee_database --reconfigure
> /home/weewx/archive/weewx.sdb
>
> Traceback (most recent call last):
>
>   File "/home/weewx/bin/wee_database", line 974, in 
>
> main()
>
>   File "/home/weewx/bin/wee_database", line 128, in main
>
> config_path, config_dict = weecfg.read_config(options.config_path,
> args)
>
>   File "/home/weewx/bin/weecfg/__init__.py", line 179, 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
>
> return 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 0xe0 in position 26:
> invalid continuation byte
>
>
>
> Anyone know how to fix this?
>
>
>
>
>
>
>
>
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/97c28bf4-30c7-455c-851f-469187c31c79o%40googlegroups.com
> 
> .
>
> --
> 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/93094213-6958-49a1-ba13-7f3ca3a90274o%40googlegroups.com
> 

[weewx-user] Migrating/Importing WD data in MySql DB to WeeWx MySql DB

2020-08-19 Thread Andrew M
I started to use the wee_import process to process all my WD log files to 
WeeWx MySqlDB, and it was taking a long time. It seems like If I have many 
years of data it will take that long to import them into WeeWx MySqlDB.

I then thought, oh wait, i already have the WD data in a MySql DB, so why 
am i doing this process.

Now I have to figure out how I can gracefully import all the WD data I have 
in a MySQL DB to the one I set up for WeeWx. Both are on the same hosted 
server. Different DB names.

There is one table for WD and multiple tables for WeeWx so  have no idea on 
where to begin with this. I have ~60,000 rows of data in the WD MySQL DB 
table.

Does anyone have a graceful way of migrating the WD MySQL DB into a WeeWX 
DB?

Am I overlooking something in the documentation or in group?

Thank you.


-- 
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/f7d8b03e-89ec-49f2-a700-3d2098b03ba7n%40googlegroups.com.


[weewx-user] GW1000 output and database

2020-08-19 Thread Timothy Buchanan
I installed GW1000 as a service and the test-service command gives this 
output:

dateTime: 1597861672, dummyTemp: 96.3, extraHumid1: 26, extraTemp1: 85.1, 
inHumidity: 33, inTemp: 75.74, pressure: 22.2360805875, relbarometer: 
753.0, soilMoist1: 15, usUnits: 1, wh31_ch1_batt: 0, wh51_ch1_batt: 0

In weewx.conf, I put this list of options:

[GW1000]
driver = user.gw1000
inTemp = extraTemp2
inHumidity = extraHumid2
extraTemp1 = extraTemp1
extraHumid1 = extraHumid1
soilMoist1 = soilMoist1
pressure = ""

I chose these because inTemp is being used by another service. When I tried 
to use the data in my skin (modified exfoliation), I found that extraTemp2 
and extraHumid2 are shown as NA. The other values are displayed. What did I 
do wrong here? Thanks for any help.

-- 
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/82408400-064e-4949-a242-54162cab5f5dn%40googlegroups.com.


Re: [weewx-user] GW1000 driver b11 release

2020-08-19 Thread Bill Arthur
I've installed it on two Pi zero W installations (with designated static IP 
address).
Perfect installation, no problems whatsoever.

On Tuesday, August 18, 2020 at 8:23:36 AM UTC-5 gjr80 wrote:

> On Tuesday, 18 August 2020 13:49:39 UTC+10, Graham Eddy wrote:
>>
>> unable to reproduce error - driver too reliable!
>>
>> sending the debug==3 logs anyway (direct to gary rather than clog up the 
>> forum) in case they prove useful later.
>> three logs, one with GW1000 disconnected a bit more than 30 secs, another 
>> with just a few secs disconnection and another much longer (about 15 mins) 
>> - with suffix .txt (sorry about previous .log).
>> at that debug level there is a lot of noise from my Alarms service…
>>
>
> Thanks, replied separately re the logs. 
>
>
>> i must have hit a corner case on my first test.
>> i don’t know weewx guts well enough but OSError exception (rather than 
>> IOError) coming from StdPrint sounds very strange, maybe a resource 
>> exhaustion
>>
>
> I still can't quite get my head around exactly what happened, in some 
> regards it looked like the driver (run as a service in this case) was sent 
> a command to shutdown. I have found some faulty logic in the lost contact 
> handling in the driver that I believe could cause such a shutdown if the 
> GW1000 was lost. I need to work through that logic again and I need to look 
> at where the OSError was coming from. But that will have to wait a few days.
>  
>
>>
>> Q: “Is there anything noteworthy about your GW1000/WeeWX machine network 
>> connections? Does the log cover two disconnections of the GW1000?"
>> A: single disconnect, while moving GW1000 to its permanent position ready 
>> for cutover. no unusual config - both server (RPi 4) and GW1000 on wifi 
>> only, no service interruptions during tests, no weird interface-bending apps
>>
>
> Just a single disconnect, interesting that that OSError was recurring, I 
> first thought you had two disconnections. Makes me think there was 
> something else going on but it stills seems to have been triggered by the 
> GW1000 disconnection. 
>
> Gary
>

-- 
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/557a147e-29f1-4cbd-a879-8486f7305236n%40googlegroups.com.


[weewx-user] Belchertown gets year summary wrong

2020-08-19 Thread ba...@kdbarto.org
I've only had data since early March, I just added the Year summary 
([[avgclimatethisyear]] from the 
https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation#average-climate-values-chart)
 
and it is starting from January. So even though the data reported is 
correct, the month is wrong.

Any idea how to fix that one?

http://www.kdbarto.org/weather/belchertown/graphs/?graph=year

On a side note - is there anyplace where I can find a "complete list" of 
all the possible graphs that Belchertown, or the default skin for weewx 
supports out of the box?

 David

-- 
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/1fde9f7f-6ca1-47ea-8282-2c42f375f65cn%40googlegroups.com.


[weewx-user] Re: whew and gw1000

2020-08-19 Thread Luke Marcum
How do I install it if I just download the file?

On Tuesday, August 18, 2020 at 7:22:09 AM UTC-4, rich T wrote:
>
> Gary
>
> Believe this is the issue that Luke is having:
>
> pi@raspberrypi:~ $ wget -P /var/tmp 
> https://github.com/gjr80/weewx-weewx-wd/releases/download/v2.0.0/weewxwd-2.0.0.tar.gz
> --2020-08-18 07:17:01--  
> https://github.com/gjr80/weewx-weewx-wd/releases/download/v2.0.0/weewxwd-2.0.0.tar.gz
> Resolving github.com (github.com)... 140.82.112.4
> Connecting to github.com (github.com)|140.82.112.4|:443... connected.
> HTTP request sent, awaiting response... 404 Not Found
> 2020-08-18 07:17:02 ERROR 404: Not Found.
>
> Now if you go to https://github.com/gjr80/weewx-weewx-wd, cloning or 
> downloading the zip file seems to work.
>
> Rich
>
> On Sunday, August 16, 2020 at 6:26:16 PM UTC-4, Luke Marcum wrote:
>>
>> Im trying to set up weewx to obtain data from my gw1000, running on my 
>> pi4.  Im using these instructions to set it up: 
>> https://github.com/weewx/weewx/wiki/gw1000-recipe and I've made it to 
>> the part where I have to update the interceptor settings in weewx.conf but 
>> I can't seem to find where this part of the settings is.  I have been able 
>> to run interceptor.py from the interceptor download and it gets my current 
>> weather data, but I can't seem to connect it to weewx.  HELP!!!
>>
>

-- 
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/54284055-468c-4f55-aa05-0b0587fc8f82o%40googlegroups.com.


Re: [weewx-user] Re: Pi Display for Belchertown

2020-08-19 Thread 'Andy Hudson-Smith' via weewx-user
It’s just the cheap waveshare 3.5 (which is actually really nice and the
touch control works wel) it will fit the adafruit screen as well though. I
meant to post in the dedicated screen post but failed to find it so just
followed up a previous post in WF 

 Andy

On Wed, 19 Aug 2020 at 15:39, vince  wrote:

> On Wednesday, August 19, 2020 at 4:00:23 AM UTC-7,
> andyhud...@googlemail.com wrote:
>>
>> Morning - thought some users here might be interested in a 3d printed
>> case just uploaded to Thingiverse, made to take advantage of the great /pi
>> view of Belchertown. Anyhow hope its ok to post - anyone interested can see
>> more at
>> https://www.instagram.com/p/CED6hG6JTN5/?utm_source=ig_web_button_share_sheet
>> or
>> print it via https://www.thingiverse.com/thing:4574032
>>
>>
> Beautiful.   You should post that to the WeatherFlow forums in the
> 'dedicated display' thread that keeps popping up.Which display is that
> exactly ?
>
>
>
>
>
>
>
>
> --
>
>
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
>
>
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/7fbpM6Kwk44/unsubscribe.
>
>
> To unsubscribe from this group and all its topics, 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/b3e5a479-e1aa-48a0-91c4-a943e3921102o%40googlegroups.com
> 
> .
>
>
>

-- 
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/CAOdDda8O9PMPkP3Sv%3DgouUA0bUHYb%3DpPbgbC%2BaPHtAjyJ0VsRw%40mail.gmail.com.


[weewx-user] Re: Pi Display for Belchertown

2020-08-19 Thread vince
On Wednesday, August 19, 2020 at 4:00:23 AM UTC-7, 
andyhud...@googlemail.com wrote:
>
> Morning - thought some users here might be interested in a 3d printed case 
> just uploaded to Thingiverse, made to take advantage of the great /pi view 
> of Belchertown. Anyhow hope its ok to post - anyone interested can see more 
> at 
> https://www.instagram.com/p/CED6hG6JTN5/?utm_source=ig_web_button_share_sheet 
>  
> or
>  
> print it via https://www.thingiverse.com/thing:4574032 
>
>
Beautiful.   You should post that to the WeatherFlow forums in the 
'dedicated display' thread that keeps popping up.Which display is that 
exactly ? 

-- 
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/b3e5a479-e1aa-48a0-91c4-a943e3921102o%40googlegroups.com.


RE: [weewx-user] UnicodeDecodeError in database

2020-08-19 Thread David Marshall
Hi Tom

1. Yes wee_database
2. Yes same path different  copies
3. No edits – in fact I tried not to change anything in the final install apart 
from setting it to simulator.

I attach the last version of weewx.conf, which is still producing the error.

David

Sent from Mail for Windows 10

From: Tom Keffer
Sent: 19 August 2020 15:59
To: weewx-user
Subject: Re: [weewx-user] UnicodeDecodeError in database

1. All these attempts were with running wee_database? Or, something else?

2. I assume all these different attempts used the same path, namely 
/home/weewx/weewx.conf. And, we're sure they used different copies (albeit, at 
the same path location)? 

3. It's hard to explain how fresh, untouched versions of weewx.conf are all 
getting the same error. Are you editing these copies before running?

Can you send me the offending weewx.conf to my personal email? tkeffer at 
gmail.com

-tk

On Wed, Aug 19, 2020 at 6:35 AM David Marshall  wrote:
Thanks Tom

Tried your code to show the offending line but nothing appears. Then tried a 
clean weewx.conf from the install folder but still the same error message. Then 
tried a full reinstall, but still the same error.
Then tried it with the the default database using simulator and still the same 
error - so you are right it is not my database. What next?

On Wednesday, August 19, 2020 at 2:51:31 PM UTC+2, Tom Keffer wrote:
The decode error is actually in your configuration file, weewx.conf, and not in 
the database.

Somehow, your copy of weewx.conf got corrupted. One of the lines has a 
character sequence that starts out as a utf-8 encoding, but the following byte 
is not what was expected. 

Unfortunately, the error does not tell you which line the bad character 
sequence is in, only that it is in byte position 26 of that line. Perhaps this 
will help (NOT TESTED):

od -x -A d weewx.conf | grep e0

This should print out the line and offending sequence.

-tk



On Wed, Aug 19, 2020 at 5:25 AM David Marshall  wrote:
Hi

Installed a fresh version of weewx 4.1.1 without problem using setup.py on a 
raspberry.

Transferred my existing sqlite database from weewx 3.9.1. It is big, about 3 
years of data. This worked fine.

But when I tried to use reconfigure I got the following error

pi@raspberrypi:~ $ /home/weewx/bin/wee_database --reconfigure 
/home/weewx/archive/weewx.sdb
Traceback (most recent call last):
  File "/home/weewx/bin/wee_database", line 974, in 
    main()
  File "/home/weewx/bin/wee_database", line 128, in main
    config_path, config_dict = weecfg.read_config(options.config_path, args)
  File "/home/weewx/bin/weecfg/__init__.py", line 179, 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
    return 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 0xe0 in position 26: 
invalid continuation byte

Anyone know how to fix this?




-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/97c28bf4-30c7-455c-851f-469187c31c79o%40googlegroups.com.
-- 
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/93094213-6958-49a1-ba13-7f3ca3a90274o%40googlegroups.com.
-- 
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/CAPq0zEDyDz5xh8gtJRyeCKxmCbJGuAYqChLJeq4d%2BGQrD3vUFA%40mail.gmail.com.

-- 
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/5f3d34eb.1c69fb81.4c509.d9cd%40mx.google.com.


weewx.conf
Description: Binary data


Re: [weewx-user] UnicodeDecodeError in database

2020-08-19 Thread Tom Keffer
1. All these attempts were with running wee_database? Or, something else?

2. I assume all these different attempts used the same path, namely
/home/weewx/weewx.conf. And, we're sure they used different copies (albeit,
at the same path location)?

3. It's hard to explain how fresh, untouched versions of weewx.conf are all
getting the same error. Are you editing these copies before running?

Can you send me the offending weewx.conf to my personal email? tkeffer at
gmail.com

-tk

On Wed, Aug 19, 2020 at 6:35 AM David Marshall 
wrote:

> Thanks Tom
>
> Tried your code to show the offending line but nothing appears. Then tried
> a clean weewx.conf from the install folder but still the same error
> message. Then tried a full reinstall, but still the same error.
> Then tried it with the the default database using simulator and still the
> same error - so you are right it is not my database. What next?
>
> On Wednesday, August 19, 2020 at 2:51:31 PM UTC+2, Tom Keffer wrote:
>>
>> The decode error is actually in your configuration file, weewx.conf, and
>> not in the database.
>>
>> Somehow, your copy of weewx.conf got corrupted. One of the lines has a
>> character sequence that starts out as a utf-8 encoding, but the following
>> byte is not what was expected.
>>
>> Unfortunately, the error does not tell you which line the bad character
>> sequence is in, only that it is in byte position 26 of that line. Perhaps
>> this will help (NOT TESTED):
>>
>> *od -x -A d weewx.conf | grep e0*
>>
>> This should print out the line and offending sequence.
>>
>> -tk
>>
>>
>>
>> On Wed, Aug 19, 2020 at 5:25 AM David Marshall 
>> wrote:
>>
>>> Hi
>>>
>>> Installed a fresh version of weewx 4.1.1 without problem using setup.py
>>> on a raspberry.
>>>
>>> Transferred my existing sqlite database from weewx 3.9.1. It is big,
>>> about 3 years of data. This worked fine.
>>>
>>> But when I tried to use reconfigure I got the following error
>>>
>>> pi@raspberrypi:~ $ /home/weewx/bin/wee_database --reconfigure
>>> /home/weewx/archive/weewx.sdb
>>> Traceback (most recent call last):
>>>   File "/home/weewx/bin/wee_database", line 974, in 
>>> main()
>>>   File "/home/weewx/bin/wee_database", line 128, in main
>>> config_path, config_dict = weecfg.read_config(options.config_path,
>>> args)
>>>   File "/home/weewx/bin/weecfg/__init__.py", line 179, 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
>>> return 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 0xe0 in position 26:
>>> invalid continuation byte
>>>
>>> Anyone know how to fix this?
>>>
>>>
>>>
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/97c28bf4-30c7-455c-851f-469187c31c79o%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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/93094213-6958-49a1-ba13-7f3ca3a90274o%40googlegroups.com
> 
> .
>

-- 
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/CAPq0zEDyDz5xh8gtJRyeCKxmCbJGuAYqChLJeq4d%2BGQrD3vUFA%40mail.gmail.com.


Re: [weewx-user] UnicodeDecodeError in database

2020-08-19 Thread David Marshall
Thanks Tom

Tried your code to show the offending line but nothing appears. Then tried 
a clean weewx.conf from the install folder but still the same error 
message. Then tried a full reinstall, but still the same error.
Then tried it with the the default database using simulator and still the 
same error - so you are right it is not my database. What next?

On Wednesday, August 19, 2020 at 2:51:31 PM UTC+2, Tom Keffer wrote:
>
> The decode error is actually in your configuration file, weewx.conf, and 
> not in the database.
>
> Somehow, your copy of weewx.conf got corrupted. One of the lines has a 
> character sequence that starts out as a utf-8 encoding, but the following 
> byte is not what was expected. 
>
> Unfortunately, the error does not tell you which line the bad character 
> sequence is in, only that it is in byte position 26 of that line. Perhaps 
> this will help (NOT TESTED):
>
> *od -x -A d weewx.conf | grep e0*
>
> This should print out the line and offending sequence.
>
> -tk
>
>
>
> On Wed, Aug 19, 2020 at 5:25 AM David Marshall  > wrote:
>
>> Hi
>>
>> Installed a fresh version of weewx 4.1.1 without problem using setup.py 
>> on a raspberry.
>>
>> Transferred my existing sqlite database from weewx 3.9.1. It is big, 
>> about 3 years of data. This worked fine.
>>
>> But when I tried to use reconfigure I got the following error
>>
>> pi@raspberrypi:~ $ /home/weewx/bin/wee_database --reconfigure 
>> /home/weewx/archive/weewx.sdb
>> Traceback (most recent call last):
>>   File "/home/weewx/bin/wee_database", line 974, in 
>> main()
>>   File "/home/weewx/bin/wee_database", line 128, in main
>> config_path, config_dict = weecfg.read_config(options.config_path, 
>> args)
>>   File "/home/weewx/bin/weecfg/__init__.py", line 179, 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
>> return 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 0xe0 in position 26: 
>> invalid continuation byte
>>
>> Anyone know how to fix this?
>>
>>
>>
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/97c28bf4-30c7-455c-851f-469187c31c79o%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/93094213-6958-49a1-ba13-7f3ca3a90274o%40googlegroups.com.


Re: [weewx-user] UnicodeDecodeError in database

2020-08-19 Thread Tom Keffer
The decode error is actually in your configuration file, weewx.conf, and
not in the database.

Somehow, your copy of weewx.conf got corrupted. One of the lines has a
character sequence that starts out as a utf-8 encoding, but the following
byte is not what was expected.

Unfortunately, the error does not tell you which line the bad character
sequence is in, only that it is in byte position 26 of that line. Perhaps
this will help (NOT TESTED):

*od -x -A d weewx.conf | grep e0*

This should print out the line and offending sequence.

-tk



On Wed, Aug 19, 2020 at 5:25 AM David Marshall 
wrote:

> Hi
>
> Installed a fresh version of weewx 4.1.1 without problem using setup.py on
> a raspberry.
>
> Transferred my existing sqlite database from weewx 3.9.1. It is big, about
> 3 years of data. This worked fine.
>
> But when I tried to use reconfigure I got the following error
>
> pi@raspberrypi:~ $ /home/weewx/bin/wee_database --reconfigure
> /home/weewx/archive/weewx.sdb
> Traceback (most recent call last):
>   File "/home/weewx/bin/wee_database", line 974, in 
> main()
>   File "/home/weewx/bin/wee_database", line 128, in main
> config_path, config_dict = weecfg.read_config(options.config_path,
> args)
>   File "/home/weewx/bin/weecfg/__init__.py", line 179, 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
> return 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 0xe0 in position 26:
> invalid continuation byte
>
> Anyone know how to fix this?
>
>
>
>
> --
> 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/97c28bf4-30c7-455c-851f-469187c31c79o%40googlegroups.com
> 
> .
>

-- 
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/CAPq0zECdAYF6MxE6Lyd2o8Svq_94pt%2ByMyiy_AniiBOZnT6H_g%40mail.gmail.com.


[weewx-user] UnicodeDecodeError in database

2020-08-19 Thread David Marshall
Hi

Installed a fresh version of weewx 4.1.1 without problem using setup.py on 
a raspberry.

Transferred my existing sqlite database from weewx 3.9.1. It is big, about 
3 years of data. This worked fine.

But when I tried to use reconfigure I got the following error

pi@raspberrypi:~ $ /home/weewx/bin/wee_database --reconfigure 
/home/weewx/archive/weewx.sdb
Traceback (most recent call last):
  File "/home/weewx/bin/wee_database", line 974, in 
main()
  File "/home/weewx/bin/wee_database", line 128, in main
config_path, config_dict = weecfg.read_config(options.config_path, args)
  File "/home/weewx/bin/weecfg/__init__.py", line 179, 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
return 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 0xe0 in position 26: 
invalid continuation byte

Anyone know how to fix this?




-- 
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/97c28bf4-30c7-455c-851f-469187c31c79o%40googlegroups.com.


Re: [weewx-user] Re: Staging Area to Experiment?

2020-08-19 Thread Andy Sloane
Personally, I was thinking of using VirtualBox to create  a RHEL VM on my
PC, and then installing it on that.  Maybe use vagrant to get it off the
ground and make sure I can rinse and repeat.

On Wed, 19 Aug 2020 at 12:59, Ξ  wrote:

> How do you spin up a throwaway instance?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/pS3qjKcGoAo/unsubscribe.
> To unsubscribe from this group and all its topics, 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/af82807c-562c-4077-8f65-db22987c6594o%40googlegroups.com
> 
> .
>

-- 
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/CAAV0NpaE6nBGMHw%2BzZNKefSV6Q_Rf_U1rbbjZg14yov9jRZEjw%40mail.gmail.com.


Re: [weewx-user] weewx and extreme value

2020-08-19 Thread Tom Keffer
You can filter out extreme values and prevent them from reaching the
database. See the section *StdQC
* in the User's Guide.

As for fixing values in the database, see the wiki article *Cleaning up old
'bad' data *
.

On Wed, Aug 19, 2020 at 5:02 AM Olivier GARNIER <
earloliviergarn...@gmail.com> wrote:

> It seem to be possible that weewx record à 15°C and  the next record 1mn
> after is -64°C
> Would it be possible not to record or to replace by the last good record a
> such value ?
>
> --
> 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/7a5895b3-651f-4ccb-acc9-d69efac4599dn%40googlegroups.com
> 
> .
>

-- 
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/CAPq0zEDRk4GRZ5Fx4XrScG4QpLRNyqKTjUVpxQet2gOmJ%3D%3DU8w%40mail.gmail.com.


[weewx-user] weewx and extreme value

2020-08-19 Thread Olivier GARNIER
It seem to be possible that weewx record à 15°C and  the next record 1mn 
after is -64°C
Would it be possible not to record or to replace by the last good record a 
such value ?

-- 
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/7a5895b3-651f-4ccb-acc9-d69efac4599dn%40googlegroups.com.


[weewx-user] Re: Staging Area to Experiment?

2020-08-19 Thread Ξ
How do you spin up a throwaway instance?

-- 
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/af82807c-562c-4077-8f65-db22987c6594o%40googlegroups.com.


[weewx-user] Re: Moonrise and Moonset strange

2020-08-19 Thread 'Hans Cilker' via weewx-user
ha, ok, i found that its Astro time what i see... strange, i have always 
seen it like a poet: Its romantik to see the moon rising over the ocean
sorry

andrew.s...@gmail.com schrieb am Mittwoch, 19. August 2020 um 11:41:55 
UTC+2:

> You cannot often see the moon during the daytime - so when it rises in the 
> nmorning you tend not to see it
>
> see
> https://www.timeanddate.com/moon/cyprus/nicosia replace cyprus and 
> nicosia with your country and city if you wish
>
>
>
> On Wednesday, 19 August 2020 12:28:49 UTC+3, Hans Cilker wrote:
>>
>> OK, then ei do not understand the meaning, for me, the moon is rising in 
>> the evenening and moonset is in the moment, as i was writing, it seams 
>> strange to me to that moonrise is in the morning, but may be i do not 
>> understand it.
>>
>>
>> andrew.s...@gmail.com schrieb am Mittwoch, 19. August 2020 um 11:05:36 
>> UTC+2:
>>
>>> what makes you think something is wrong??  I just checked nicosia 
>>> (cyprus) with my weewx station and another website and we have moonrise at 
>>> 6am and moonset at 8pm at the moment.
>>>
>>>
>>>
>>> On Wednesday, 19 August 2020 11:38:38 UTC+3, Hans Cilker wrote:

 Hallo Together,
 i am Running WeeWX version 4.1.1. When i take a look at the datas for 
 Moonrise and moonset, it seams to be strange, Moonrise:  06:11:23 and 
 Moonset:  21:22:48. In this cases i could just change the Lable, but 
 highest point of the moon at 13:56:18is not to solve with changing the 
 lable. I have taken a look at som stations around, i found no one with the 
 right lable. Anybody an idea whats to do to solve this problem?
 Best wishes
 Hans



-- 
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/1d5ffc00-47c3-413e-8393-9f1f46f5a0fan%40googlegroups.com.


[weewx-user] Re: Moonrise and Moonset strange

2020-08-19 Thread Andrew Milner
You cannot often see the moon during the daytime - so when it rises in the 
nmorning you tend not to see it

see
https://www.timeanddate.com/moon/cyprus/nicosia replace cyprus and nicosia 
with your country and city if you wish



On Wednesday, 19 August 2020 12:28:49 UTC+3, Hans Cilker wrote:
>
> OK, then ei do not understand the meaning, for me, the moon is rising in 
> the evenening and moonset is in the moment, as i was writing, it seams 
> strange to me to that moonrise is in the morning, but may be i do not 
> understand it.
>
>
> andrew.s...@gmail.com schrieb am Mittwoch, 19. August 2020 um 11:05:36 
> UTC+2:
>
>> what makes you think something is wrong??  I just checked nicosia 
>> (cyprus) with my weewx station and another website and we have moonrise at 
>> 6am and moonset at 8pm at the moment.
>>
>>
>>
>> On Wednesday, 19 August 2020 11:38:38 UTC+3, Hans Cilker wrote:
>>>
>>> Hallo Together,
>>> i am Running WeeWX version 4.1.1. When i take a look at the datas for 
>>> Moonrise and moonset, it seams to be strange, Moonrise:  06:11:23 and 
>>> Moonset:  21:22:48. In this cases i could just change the Lable, but 
>>> highest point of the moon at 13:56:18is not to solve with changing the 
>>> lable. I have taken a look at som stations around, i found no one with the 
>>> right lable. Anybody an idea whats to do to solve this problem?
>>> Best wishes
>>> Hans
>>>
>>>

-- 
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/79c92031-e9ad-44f8-ab7b-1dafd1195e1eo%40googlegroups.com.


[weewx-user] Re: Moonrise and Moonset strange

2020-08-19 Thread 'Hans Cilker' via weewx-user
OK, then ei do not understand the meaning, for me, the moon is rising in 
the evenening and moonset is in the moment, as i was writing, it seams 
strange to me to that moonrise is in the morning, but may be i do not 
understand it.


andrew.s...@gmail.com schrieb am Mittwoch, 19. August 2020 um 11:05:36 
UTC+2:

> what makes you think something is wrong??  I just checked nicosia (cyprus) 
> with my weewx station and another website and we have moonrise at 6am and 
> moonset at 8pm at the moment.
>
>
>
> On Wednesday, 19 August 2020 11:38:38 UTC+3, Hans Cilker wrote:
>>
>> Hallo Together,
>> i am Running WeeWX version 4.1.1. When i take a look at the datas for 
>> Moonrise and moonset, it seams to be strange, Moonrise:  06:11:23 and 
>> Moonset:  21:22:48. In this cases i could just change the Lable, but 
>> highest point of the moon at 13:56:18is not to solve with changing the 
>> lable. I have taken a look at som stations around, i found no one with the 
>> right lable. Anybody an idea whats to do to solve this problem?
>> Best wishes
>> Hans
>>
>>

-- 
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/9bb77529-d0fd-4be8-b337-937a3012b50bn%40googlegroups.com.


[weewx-user] Re: Moonrise and Moonset strange

2020-08-19 Thread Andrew Milner
what makes you think something is wrong??  I just checked nicosia (cyprus) 
with my weewx station and another website and we have moonrise at 6am and 
moonset at 8pm at the moment.



On Wednesday, 19 August 2020 11:38:38 UTC+3, Hans Cilker wrote:
>
> Hallo Together,
> i am Running WeeWX version 4.1.1. When i take a look at the datas for 
> Moonrise and moonset, it seams to be strange, Moonrise:  06:11:23 and 
> Moonset:  21:22:48. In this cases i could just change the Lable, but 
> highest point of the moon at 13:56:18is not to solve with changing the 
> lable. I have taken a look at som stations around, i found no one with the 
> right lable. Anybody an idea whats to do to solve this problem?
> Best wishes
> Hans
>
>

-- 
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/c05b1d9b-755b-4921-81ef-3fd6db099825o%40googlegroups.com.


[weewx-user] Moonrise and Moonset strange

2020-08-19 Thread 'Hans Cilker' via weewx-user
Hallo Together,
i am Running WeeWX version 4.1.1. When i take a look at the datas for 
Moonrise and moonset, it seams to be strange, Moonrise:  06:11:23 and 
Moonset:  21:22:48. In this cases i could just change the Lable, but 
highest point of the moon at 13:56:18is not to solve with changing the 
lable. I have taken a look at som stations around, i found no one with the 
right lable. Anybody an idea whats to do to solve this problem?
Best wishes
Hans

-- 
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/258db778-c64d-4ec7-af2e-d1fb3c6158d4n%40googlegroups.com.