[weewx-user] suggestion for a future release

2020-05-13 Thread Andrew Milner
I have seen many posts where there has been confusion or doubt as to how 
weewx has been installed or updated.  As a suggestion would it not be good 
idea for this information to be included in weewx.conf together with the 
version.
ie if installing or updating via setup.py this is included together with 
the current version (and ideally the previous version)
and similarly if using one of the other installes / updaters.
Just a thought for a future release/update

-- 
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/8d14ca3a-91a2-4835-ba27-aeb043f73fa4%40googlegroups.com.


[weewx-user] Re: Updated to 4.0 and now it doesn't work

2020-05-13 Thread Banana Bob
To add to that Gary I answered "yes" to a question to take the new supplied 
conf file instead of keeping my custom one. When I went in to add my 
changes to the 4.0 file I noticed then that the latitude/longitude was 
incorrect, but assumed it was a change required by the upgrade.
James  

On Thursday, 14 May 2020 15:55:45 UTC+12, gjr80 wrote:
>
> Ok, thanks.
>
> 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/1574d9dc-d37c-491a-aa5a-81300db8a23e%40googlegroups.com.


[weewx-user] Re: Updated to 4.0 and now it doesn't work

2020-05-13 Thread gjr80
Ok, thanks.

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/32921f38-6ecc-450c-8897-86763428e7b9%40googlegroups.com.


[weewx-user] Re: Updated to 4.0 and now it doesn't work

2020-05-13 Thread Banana Bob
I think it must have been 3.9.2 and I presume that the package would have 
been a deb but delivered by the apt-get command that's the way I normally 
update my system.

On Thursday, 14 May 2020 15:50:51 UTC+12, gjr80 wrote:
>
> Upgrade from which WeeWX version? Upgrade via setup.py, .deb package or 
> .rpm package?
>
> 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/5640a6bd-f884-4a43-bef1-5959aee2c25f%40googlegroups.com.


[weewx-user] Re: Updated to 4.0 and now it doesn't work

2020-05-13 Thread gjr80
Upgrade from which WeeWX version? Upgrade via setup.py, .deb package or .rpm 
package?

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/7d4bbb47-1d9a-4115-8897-41b547f955a8%40googlegroups.com.


[weewx-user] Re: Updated to 4.0 and now it doesn't work

2020-05-13 Thread Banana Bob
I have weewx running on a Raspberry Pi and just did the normal apt-get 
update then upgrade.

Thank you for the fix. I have it back up now.


On Thursday, 14 May 2020 15:31:46 UTC+12, gjr80 wrote:
>
> Hi,
>
> here is the problem:
>
> May 14 15:19:14 weather weewx[814] CRITICAL __main__:   ValueError
> : invalid literal for float(): -40.8694607 175.0611268
>
> In weewx.conf under [Station] your latitude setting appears to contain 
> both latitude and longitude data. You nee to edit weewx.conf and correct 
> the [Station] latitude setting. I would also check your longitude setting 
> while you are there. Save weewx.conf then restart WeeWX and check your 
> log for errors.
>
> This is the second time this exact same error has occurred today, would 
> you mind telling us how you installed/upgraded to WeeWX 4 ?
>
> Gary
>
> On Thursday, 14 May 2020 13:25:58 UTC+10, Banana Bob wrote:
>>
>> I am getting the following errors after an update to 4.0
>>
>> May 14 15:19:14 weather weewx[814] CRITICAL __main__: File 
>> "/usr/share/weewx/weewxd", line 148, in main
>> May 14 15:19:14 weather weewx[814] CRITICAL __main__:   
>> engine = weewx.engine.StdEngine(config_dict)
>> May 14 15:19:14 weather weewx[814] CRITICAL __main__: File 
>> "/usr/share/weewx/weewx/engine.py", line 72, in __init__
>> May 14 15:19:14 weather weewx[814] CRITICAL __main__:   
>> self.preLoadServices(config_dict)
>> May 14 15:19:14 weather weewx[814] CRITICAL __main__: File 
>> "/usr/share/weewx/weewx/engine.py", line 112, in preLoadServices
>> May 14 15:19:14 weather weewx[814] CRITICAL __main__:   
>> self.stn_info = weewx.station.StationInfo(self.console, 
>> **config_dict['Station'])
>> May 14 15:19:14 weather weewx[814] CRITICAL __main__: File 
>> "/usr/share/weewx/weewx/station.py", line 51, in __init__
>> May 14 15:19:14 weather weewx[814] CRITICAL __main__:   
>> self.latitude_f  = float(stn_dict['latitude'])
>> May 14 15:19:14 weather weewx[814] CRITICAL __main__:   
>> ValueError: invalid literal for float(): -40.8694607 175.0611268
>> May 14 15:19:14 weather weewx[814] CRITICAL __main__:   Exiting.
>>
>> What can I do to fix this please.
>>
>

-- 
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/7c338aa8-a3d5-4a5b-b26f-7cf731521f8a%40googlegroups.com.


[weewx-user] Re: Updated to 4.0 and now it doesn't work

2020-05-13 Thread gjr80
Hi,

here is the problem:

May 14 15:19:14 weather weewx[814] CRITICAL __main__:   ValueError: 
invalid literal for float(): -40.8694607 175.0611268

In weewx.conf under [Station] your latitude setting appears to contain both 
latitude and longitude data. You nee to edit weewx.conf and correct the 
[Station] 
latitude setting. I would also check your longitude setting while you are 
there. Save weewx.conf then restart WeeWX and check your log for errors.

This is the second time this exact same error has occurred today, would you 
mind telling us how you installed/upgraded to WeeWX 4 ?

Gary

On Thursday, 14 May 2020 13:25:58 UTC+10, Banana Bob wrote:
>
> I am getting the following errors after an update to 4.0
>
> May 14 15:19:14 weather weewx[814] CRITICAL __main__: File 
> "/usr/share/weewx/weewxd", line 148, in main
> May 14 15:19:14 weather weewx[814] CRITICAL __main__:   engine 
> = weewx.engine.StdEngine(config_dict)
> May 14 15:19:14 weather weewx[814] CRITICAL __main__: File 
> "/usr/share/weewx/weewx/engine.py", line 72, in __init__
> May 14 15:19:14 weather weewx[814] CRITICAL __main__:   
> self.preLoadServices(config_dict)
> May 14 15:19:14 weather weewx[814] CRITICAL __main__: File 
> "/usr/share/weewx/weewx/engine.py", line 112, in preLoadServices
> May 14 15:19:14 weather weewx[814] CRITICAL __main__:   
> self.stn_info = weewx.station.StationInfo(self.console, 
> **config_dict['Station'])
> May 14 15:19:14 weather weewx[814] CRITICAL __main__: File 
> "/usr/share/weewx/weewx/station.py", line 51, in __init__
> May 14 15:19:14 weather weewx[814] CRITICAL __main__:   
> self.latitude_f  = float(stn_dict['latitude'])
> May 14 15:19:14 weather weewx[814] CRITICAL __main__:   
> ValueError: invalid literal for float(): -40.8694607 175.0611268
> May 14 15:19:14 weather weewx[814] CRITICAL __main__:   Exiting.
>
> What can I do to fix this please.
>

-- 
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/edd0e0e3-67bc-4233-a929-74375a99f659%40googlegroups.com.


[weewx-user] Updated to 4.0 and now it doesn't work

2020-05-13 Thread Banana Bob
I am getting the following errors after an update to 4.0

May 14 15:19:14 weather weewx[814] CRITICAL __main__: File 
"/usr/share/weewx/weewxd", line 148, in main
May 14 15:19:14 weather weewx[814] CRITICAL __main__:   engine 
= weewx.engine.StdEngine(config_dict)
May 14 15:19:14 weather weewx[814] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 72, in __init__
May 14 15:19:14 weather weewx[814] CRITICAL __main__:   
self.preLoadServices(config_dict)
May 14 15:19:14 weather weewx[814] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 112, in preLoadServices
May 14 15:19:14 weather weewx[814] CRITICAL __main__:   
self.stn_info = weewx.station.StationInfo(self.console, 
**config_dict['Station'])
May 14 15:19:14 weather weewx[814] CRITICAL __main__: File 
"/usr/share/weewx/weewx/station.py", line 51, in __init__
May 14 15:19:14 weather weewx[814] CRITICAL __main__:   
self.latitude_f  = float(stn_dict['latitude'])
May 14 15:19:14 weather weewx[814] CRITICAL __main__:   ValueError: 
invalid literal for float(): -40.8694607 175.0611268
May 14 15:19:14 weather weewx[814] CRITICAL __main__:   Exiting.

What can I do to fix this please.

-- 
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/94146de1-b722-4c10-ba30-889c44c21f07%40googlegroups.com.


[weewx-user] Re: Interceptor + gw1000 + remote temp/soil sensors

2020-05-13 Thread gjr80
You will find them here in units.py 
. WeeWX 
takes care of those fields that are in the default schema 
, 
anything else needs the user to take care of it. WeeWX allows you to access 
fields in the current archive record (accessed through the $current tag) 
that have not been saved to your database. If you want to access aggregates 
(eg $day..max) then the obs concerned () must be in your database 
schema and  saved to your database. I was likely wrong in my previous 
post, extraTemp8 and soilMoist5 are likely not in your schema/archive, the 
interceptor driver will have added extraTemp8 and soilMoist5 to loop 
packets and this will have caused WeeWX to include them in the archive 
record but they will were likely not saved to your archive. So 
$current.extraTemp8 will work but I expect $day.extraTemp8.max will not.

If you want to add extraTemp8 and soilMoist5 to your database so that you 
can view the aggregates you will need to refer to the section Adding a new 
type to the database 
 in the 
Customization Guide.

Gary

On Thursday, 14 May 2020 11:34:37 UTC+10, John Hill wrote:
>
> Bingo.
>
> I never would have figured that out on my own.  Thanks Gary,
>
> Just out of curiosity, where are all the other group associations stored 
> (from import weewx.units)?  I'm curious why/how extraTemp8 wasn't set to be 
> the same as extraTemp1-7.
>

-- 
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/77845003-8d79-4bd8-bd43-94742e06e201%40googlegroups.com.


[weewx-user] Re: Interceptor + gw1000 + remote temp/soil sensors

2020-05-13 Thread John Hill
Bingo.

I never would have figured that out on my own.  Thanks Gary,

Just out of curiosity, where are all the other group associations stored 
(from import weewx.units)?  I'm curious why/how extraTemp8 wasn't set to be 
the same as extraTemp1-7.

-- 
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/b45f294c-82cc-4602-9d43-ef99b3ff9fb1%40googlegroups.com.


Re: [weewx-user] Re: Error since upgrade from 3.9.2 to 4.0.0

2020-05-13 Thread gjr80

On Thursday, 14 May 2020 08:17:07 UTC+10, Tom Keffer wrote:
>
> Yes, that could do it. I'm surprised that worked in V3.9. Use this instead
>
> $day.rain.sum.nolabel("%.2f","0.0")
>

Been thinking about this too as it puzzled me. I note there are a number of 
$hour tags in the template. I have found that $hour tags can be susceptible 
to returning (seemingly) unexpected None values if you are missing a full 
(top of the hour to top of the hour) of data in the day concerned. I am 
wondering that since the 0.0 is the value used if the tag is None, perhaps 
it was an $hour tag that threw the error, the 0.0 in a $day tag will sit 
there quite happily until the $day tag returns a None and there is probably 
less chance of this happening, the changeover from 3.9.2 to 4.0.0 could 
easily have resulted in an hour devoid of data. Also, since the error is 
non-fatal if it did show up under 3.9.2 it would be easily missed unless 
your are paying attention to the logs.

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/defb1234-6f22-4f3a-aa9c-ff4ffb757bbf%40googlegroups.com.


[weewx-user] Re: Interceptor + gw1000 + remote temp/soil sensors

2020-05-13 Thread gjr80
Hi,

The problem is that whilst the database schema you are using may know about 
extraTemp8 and soilMoist5 the WeeWX unit system only knows about extraTemp1-
extraTemp7 and soilMoist1-soilMosit4, you need a little python code to have 
extraTemp8 and solMoist5 recognised by the unit system. Try adding the 
following code to extensions.py (you will find extensions.py in 
/home/weewx/bin/user or /usr/share/weewx/user depending on your WeeWX 
install):

import weewx.units
weewx.units.obs_group_dict['extraTemp8'] = 'group_temperature'
weewx.units.obs_group_dict['soilMoist5'] = 'group_moisture'

Save extensions.py and restart WeeWX. You should now have units and 
formatting on extraTemp8 and soilMoist5. If you are interested the section 
Customizing 
units and unit groups 
 in the Customization 
Guide  covers this.

Gary

On Thursday, 14 May 2020 09:32:44 UTC+10, John Hill wrote:
>
> oops, image looks small inline in 1st post.  Attaching it here:
>

-- 
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/aec02440-ce92-4dbb-bf2a-b8131ee78d80%40googlegroups.com.


Re: [weewx-user] Re: Belchertown 1.1

2020-05-13 Thread Ron Sell
Thanks for the tips

On Wed, May 13, 2020 at 7:29 PM G Hammer  wrote:

> Stick with the current version and troubleshoot it. It is different and
> the time spent will be useful.
>
> On Wed, May 13, 2020, 7:14 PM Ron Sell  wrote:
>
>> I don’t want 1.0. I just tried to install to try and troubleshoot things.
>>
>> On Wed, May 13, 2020 at 4:27 PM G Hammer  wrote:
>>
>>> I recall having that look once a while back.
>>> I think I did this to correct it.
>>> If it wasn't, no harm done if they are available for your Pi.
>>> It looks like pyephem or if python3, python3-ephem aren't installed in
>>> the second screenshot.
>>>
>>> Just wondering why you wish to return to v 1 though.
>>>
>>> Anyway, give these a try.
>>>
>>> sudo apt-get -y install libfreetype6-dev
>>> sudo apt-get -y install libjpeg-dev
>>>
>>>
>>>
>>> --
>>> 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/7ea36df9-3f25-4d20-8db7-ffe2e02eed16%40googlegroups.com
>>> 
>>> .
>>
>>
>>> --
>> 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/AgqvlniDdLg/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/CABn15daaGpNsgD_%3Df-uuL%3D%2BLDhxfJ2c8hZ6UmFvizg6ZHYLQ1g%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/CALBRR-3Se7eKyWR8_uo4Og6Rv_cZkJfQQP-Mt%3DfsLenXPi%3DFZw%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/CABn15dZn8u2x4JzPmC%3D8UeMOQrLSjCdEqEYwuFCaGPny7knHQA%40mail.gmail.com.


[weewx-user] Re: Interceptor + gw1000 + remote temp/soil sensors

2020-05-13 Thread John Hill
oops, image looks small inline in 1st post.  Attaching it here:

-- 
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/7bf3a190-336d-4320-9819-2d70a7f710cd%40googlegroups.com.


[weewx-user] Re: Interceptor + gw1000 + remote temp/soil sensors

2020-05-13 Thread John Hill



oops, image looks small inline.  Attaching it to this post.

On Wednesday, May 13, 2020 at 7:29:28 PM UTC-4, John Hill wrote:
>
> Hi,
> Finally got around to adding more temp/soil sensors to my setup (3.9.2, 
> gw1000, interceptor).  Everything went fine, except for some reason the 
> unit is missing from the last temp sensor i added (extraTemp8) and the last 
> soil sensor I added (soilMoist5):
>
> [image: Untitled.png]
>
>
>
> Those sensors are being read and mapped by interceptor correctly 
> (temperature_8 and soil_moisture_5):
>
> raw data: PASSKEY==GW1000B_V1.5.8=2020-05-13+19:58
> :30=77.9=51=30.070=30.070=
> 86.7=41=96=14.76=22.82&
> maxdailygust=26.17=228.73=2=0.000
> =0.000=0.000=0.000=0.531&
> monthlyrainin=1.220=10.929=10.929=77.54&
> humidity1=51=78.44=50=77.54=51=
> 88.34=38=76.10=58=77.54=50&
> temp7f=76.46=52=77.72=50=26&
> soilmoisture2=42=38=43=38&
> wh68batt=1.52=1.6=0=0=0=0=0&
> batt5=0=0=0=0=1.7=1.7=1.5&
> soilbatt4=1.6=1.8=915M=GW1000_Pro
>
> raw packet: {'temperature_2': 78.44, 'temperature_3': 77.54, 
> 'temperature_1': 77.54, 'temperature_6': 77.54, 'temperature_7': 76.46, 
> 'temperature_4': 88.34, 'temperature_5': 76.1, 'temperature_8': 77.72, 
> 'soil_battery_2': 1.7, 'humidity_7': 52.0, 'soil_battery_4': 1.6, 
> 'dateTime': 1589399910, 'humidity_1': 51.0, 'battery_8': 0.0, 'battery_7': 
> 0.0, 'battery_6': 0.0, 'battery_5': 0.0, 'battery_4': 0.0, 'battery_3': 
> 0.0, 'battery_2': 0.0, 'battery_1': 0.0, 'temperature_out': 86.7, 
> 'wind_dir': 96.0, 'rain_total': 10.929, 'humidity_in': 51.0, 'humidity_4': 
> 38.0, 'soil_battery_1': 1.7, 'humidity_6': 50.0, 'soil_battery_3': 1.5, 
> 'solar_radiation': 228.73, 'soil_battery_5': 1.8, 'humidity_2': 50.0, 
> 'humidity_3': 51.0, 'rain_rate': 0.0, 'humidity_8': 50.0, 'rain': 0.0, 
> 'pressure': 30.07, 'usUnits': 1, 'wind_speed': 14.76, 'temperature_in': 
> 77.9, 'wind_gust': 22.82, 'humidity_5': 58.0, 'humidity_out': 41.0, 'uv': 
> 2.0, 'wh26_battery': 0.0, 'soil_moisture_1': 26.0, 'soil_moisture_2': 42.0
> , 'soil_moisture_3': 38.0, 'soil_moisture_4': 43.0, 'soil_moisture_5': 
> 38.0}
>
> mapped packet: {'outHumidity': 41.0, 'extraHumid8': 50.0, 'soilMoist3': 
> 38.0, 'soilMoist2': 42.0, 'rainRate': 0.0, 'radiation': 228.73, 
> 'soilMoist1': 26.0, 'inTemp': 77.9, 'soilMoist4': 43.0, 'rain': 0.0, 
> 'extraHumid6': 50.0, 'pressure': 30.07, 'extraHumid4': 38.0, 'extraHumid5'
> : 58.0, 'extraHumid2': 50.0, 'extraHumid3': 51.0, 'extraTemp8': 77.72, 
> 'extraHumid1': 51.0, 'extraTemp6': 77.54, 'extraTemp7': 76.46, 
> 'extraTemp4': 88.34, 'extraTemp5': 76.1, 'extraTemp2': 78.44, 'extraTemp3'
> : 77.54, 'usUnits': 1, 'extraTemp1': 77.54, 'extraHumid7': 52.0, 'UV': 2.0
> , 'dateTime': 1589399910, 'windDir': 96.0, 'outTemp': 86.7, 'windSpeed': 
> 14.76, 'inHumidity': 51.0, 'windGust': 22.82}
>
> My current.inc shows extraTemp8 isn't referenced any differently than the 
> other extraTemps:
> #if $day.extraTemp7.has_data
>   
> $obs.label.extraTemp7
> $current.extraTemp7
>   
> #end if
> #if $day.extraTemp8.has_data
>   
> $obs.label.extraTemp8
> $current.extraTemp8
>   
> #end if
>
> Also tried rebuilding my DB, just in case, but values are still not 
> formatted correctly with units.
>
> Any ideas?
>

-- 
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/877f7d4a-abf3-48fc-92f8-257d9b29ad79%40googlegroups.com.


[weewx-user] Interceptor + gw1000 + remote temp/soil sensors

2020-05-13 Thread John Hill
Hi,
Finally got around to adding more temp/soil sensors to my setup (3.9.2, 
gw1000, interceptor).  Everything went fine, except for some reason the 
unit is missing from the last temp sensor i added (extraTemp8) and the last 
soil sensor I added (soilMoist5):

[image: Untitled.png]



Those sensors are being read and mapped by interceptor correctly 
(temperature_8 and soil_moisture_5):

raw data: PASSKEY==GW1000B_V1.5.8=2020-05-13+19:58:
30=77.9=51=30.070=30.070=86.7
=41=96=14.76=22.82=
26.17=228.73=2=0.000=0.000&
hourlyrainin=0.000=0.000=0.531=1.220&
yearlyrainin=10.929=10.929=77.54=51=
78.44=50=77.54=51=88.34=38&
temp5f=76.10=58=77.54=50=76.46=
52=77.72=50=26=42
=38=43=38=1.52=1.6=0&
batt1=0=0=0=0=0=0=0=0=
1.7=1.7=1.5=1.6=1.8=915M=
GW1000_Pro

raw packet: {'temperature_2': 78.44, 'temperature_3': 77.54, 'temperature_1'
: 77.54, 'temperature_6': 77.54, 'temperature_7': 76.46, 'temperature_4': 
88.34, 'temperature_5': 76.1, 'temperature_8': 77.72, 'soil_battery_2': 1.7, 
'humidity_7': 52.0, 'soil_battery_4': 1.6, 'dateTime': 1589399910, 
'humidity_1': 51.0, 'battery_8': 0.0, 'battery_7': 0.0, 'battery_6': 0.0, 
'battery_5': 0.0, 'battery_4': 0.0, 'battery_3': 0.0, 'battery_2': 0.0, 
'battery_1': 0.0, 'temperature_out': 86.7, 'wind_dir': 96.0, 'rain_total': 
10.929, 'humidity_in': 51.0, 'humidity_4': 38.0, 'soil_battery_1': 1.7, 
'humidity_6': 50.0, 'soil_battery_3': 1.5, 'solar_radiation': 228.73, 
'soil_battery_5': 1.8, 'humidity_2': 50.0, 'humidity_3': 51.0, 'rain_rate': 
0.0, 'humidity_8': 50.0, 'rain': 0.0, 'pressure': 30.07, 'usUnits': 1, 
'wind_speed': 14.76, 'temperature_in': 77.9, 'wind_gust': 22.82, 
'humidity_5': 58.0, 'humidity_out': 41.0, 'uv': 2.0, 'wh26_battery': 0.0, 
'soil_moisture_1': 26.0, 'soil_moisture_2': 42.0, 'soil_moisture_3': 38.0, 
'soil_moisture_4': 43.0, 'soil_moisture_5': 38.0}

mapped packet: {'outHumidity': 41.0, 'extraHumid8': 50.0, 'soilMoist3': 38.0
, 'soilMoist2': 42.0, 'rainRate': 0.0, 'radiation': 228.73, 'soilMoist1': 
26.0, 'inTemp': 77.9, 'soilMoist4': 43.0, 'rain': 0.0, 'extraHumid6': 50.0, 
'pressure': 30.07, 'extraHumid4': 38.0, 'extraHumid5': 58.0, 'extraHumid2': 
50.0, 'extraHumid3': 51.0, 'extraTemp8': 77.72, 'extraHumid1': 51.0, 
'extraTemp6': 77.54, 'extraTemp7': 76.46, 'extraTemp4': 88.34, 'extraTemp5': 
76.1, 'extraTemp2': 78.44, 'extraTemp3': 77.54, 'usUnits': 1, 'extraTemp1': 
77.54, 'extraHumid7': 52.0, 'UV': 2.0, 'dateTime': 1589399910, 'windDir': 
96.0, 'outTemp': 86.7, 'windSpeed': 14.76, 'inHumidity': 51.0, 'windGust': 
22.82}

My current.inc shows extraTemp8 isn't referenced any differently than the 
other extraTemps:
#if $day.extraTemp7.has_data
  
$obs.label.extraTemp7
$current.extraTemp7
  
#end if
#if $day.extraTemp8.has_data
  
$obs.label.extraTemp8
$current.extraTemp8
  
#end if

Also tried rebuilding my DB, just in case, but values are still not 
formatted correctly with units.

Any ideas?

-- 
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/924e1799-4d28-440a-9660-a0f44283259e%40googlegroups.com.


Re: [weewx-user] Re: Belchertown 1.1

2020-05-13 Thread G Hammer
Stick with the current version and troubleshoot it. It is different and the
time spent will be useful.

On Wed, May 13, 2020, 7:14 PM Ron Sell  wrote:

> I don’t want 1.0. I just tried to install to try and troubleshoot things.
>
> On Wed, May 13, 2020 at 4:27 PM G Hammer  wrote:
>
>> I recall having that look once a while back.
>> I think I did this to correct it.
>> If it wasn't, no harm done if they are available for your Pi.
>> It looks like pyephem or if python3, python3-ephem aren't installed in
>> the second screenshot.
>>
>> Just wondering why you wish to return to v 1 though.
>>
>> Anyway, give these a try.
>>
>> sudo apt-get -y install libfreetype6-dev
>> sudo apt-get -y install libjpeg-dev
>>
>>
>>
>> --
>> 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/7ea36df9-3f25-4d20-8db7-ffe2e02eed16%40googlegroups.com
>> 
>> .
>>
> --
> 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/AgqvlniDdLg/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/CABn15daaGpNsgD_%3Df-uuL%3D%2BLDhxfJ2c8hZ6UmFvizg6ZHYLQ1g%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/CALBRR-3Se7eKyWR8_uo4Og6Rv_cZkJfQQP-Mt%3DfsLenXPi%3DFZw%40mail.gmail.com.


Re: [weewx-user] Re: Belchertown 1.1

2020-05-13 Thread Ron Sell
I don’t want 1.0. I just tried to install to try and troubleshoot things.

On Wed, May 13, 2020 at 4:27 PM G Hammer  wrote:

> I recall having that look once a while back.
> I think I did this to correct it.
> If it wasn't, no harm done if they are available for your Pi.
> It looks like pyephem or if python3, python3-ephem aren't installed in the
> second screenshot.
>
> Just wondering why you wish to return to v 1 though.
>
> Anyway, give these a try.
>
> sudo apt-get -y install libfreetype6-dev
> sudo apt-get -y install libjpeg-dev
>
>
>
> --
> 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/7ea36df9-3f25-4d20-8db7-ffe2e02eed16%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/CABn15daaGpNsgD_%3Df-uuL%3D%2BLDhxfJ2c8hZ6UmFvizg6ZHYLQ1g%40mail.gmail.com.


Re: [weewx-user] Re: web page is DEFAULT

2020-05-13 Thread 'doug wright' via weewx-user
Yea for that.  All is well with displaying the report page.  Thanks Gary and 
Dave. 
Doug

Sent from my iPhone

> On May 13, 2020, at 5:36 PM, gjr80  wrote:
> 
> WeeWX use the singular for units, so foot not feet. Your altitude setting 
> under [Station] in weewx.conf has feet in it.
> 
> 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/91f49ab9-4efb-4101-8cde-08adc013f62c%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/C4E4B25D-2F52-4598-B31D-F2EB24115767%40yahoo.com.


Re: [weewx-user] Re: web page is DEFAULT

2020-05-13 Thread gjr80
WeeWX use the singular for units, so foot not feet. Your altitude setting under 
[Station] in weewx.conf has feet in it.

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/91f49ab9-4efb-4101-8cde-08adc013f62c%40googlegroups.com.


Re: [weewx-user] Re: web page is DEFAULT

2020-05-13 Thread 'dwright361' via weewx-user
Gary : I got his now after the LONG LAT fix...
Doug




i@weewx:~ $ sudo /etc/init.d/weewx start
[ ok ] Starting weewx (via systemctl): weewx.service.
pi@weewx:~ $ tail -f /var/log/syslog
May 13 17:28:58 weewx weewx[7592] CRITICAL __main__: File 
"/usr/share/weewx/weewx/wxservices.py", line 565, in altimeter
May 13 17:28:58 weewx weewx[7592] CRITICAL __main__:   altitude 
= weewx.units.convertStd(self.altitude_vt, record['usUnits'])
May 13 17:28:58 weewx weewx[7592] CRITICAL __main__: File 
"/usr/share/weewx/weewx/units.py", line 1270, in convertStd
May 13 17:28:58 weewx weewx[7592] CRITICAL __main__:   return 
StdUnitConverters[target_std_unit_system].convert(val_t)
May 13 17:28:58 weewx weewx[7592] CRITICAL __main__: File 
"/usr/share/weewx/weewx/units.py", line 889, in convert
May 13 17:28:58 weewx weewx[7592] CRITICAL __main__:   
new_val_t = convert(val_t, new_unit_type)
May 13 17:28:58 weewx weewx[7592] CRITICAL __main__: File 
"/usr/share/weewx/weewx/units.py", line 1238, in convert
May 13 17:28:58 weewx weewx[7592] CRITICAL __main__:   
conversion_func = conversionDict[val_t[1]][target_unit_type]
May 13 17:28:58 weewx weewx[7592] CRITICAL __main__:   KeyError: 
u'feet'
May 13 17:28:58 weewx weewx[7592] CRITICAL __main__:   Exiting.


On Wednesday, May 13, 2020 at 5:27:08 PM UTC-5, gjr80 wrote:
>
> The user account you are using to edit weewx.conf has insufficient 
> privileges, use an account that does have sufficient privileges or prefix 
> you editor command with sudo.
>
> 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/2037bfd6-50d6-48cc-9f11-ef335ca2e7bb%40googlegroups.com.


Re: [weewx-user] Re: web page is DEFAULT

2020-05-13 Thread 'doug wright' via weewx-user
Thanks Dave

Sent from my iPhone

> On May 13, 2020, at 5:25 PM, Dave Webb KB1PVH  wrote:
> 
> 
> Use sudo nano /etc/weewx/weewx.conf
> 
> Dave-KB1PVH
> 
> 
> Sent from my Galaxy S9
> 
>> On Wed, May 13, 2020, 6:23 PM 'doug wright' via weewx-user 
>>  wrote:
>> Permissions denied to save weewx.conf
>> 
>> Sent from my iPhone
>> 
>> > On May 13, 2020, at 4:53 PM, gjr80  wrote:
>> > 
>> > You have an error with your latitude setting in weewx.conf:
>> > 
>> > May 13 16:32:29 weewx weewx[6603] CRITICAL __main__:   ValueError: 
>> > invalid literal for float(): 28.275153 -97.464723
>> > 
>> > It looks like you have specified both latitude and longitude for latitude. 
>> > Edit weewx.conf, fix the error, save weewx.conf and restart WeeWX. Then 
>> > see if there are any further errors in the log.
>> > 
>> > 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/1a2982db-126d-4518-985a-db6d5ddff551%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/B145BD70-49DD-4F81-87FE-3932027A5FF0%40yahoo.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/CAEMY9Ffpy2es2uGC9ZZ6s9b4arBv3BPqPYZQD28kX8x5RzLjXA%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/122C8C17-E223-405B-8190-0F41C06EF06F%40yahoo.com.


Re: [weewx-user] Re: Error since upgrade from 3.9.2 to 4.0.0

2020-05-13 Thread Tom Keffer
Commit 09e64e5

guards
against this in the future.

On Wed, May 13, 2020 at 3:16 PM Tom Keffer  wrote:

> Yes, that could do it. I'm surprised that worked in V3.9. Use this instead
>
> $day.rain.sum.nolabel("%.2f","0.0")
>
>
>
> On Wed, May 13, 2020 at 1:39 PM Russell van vlack 
> wrote:
>
>> Is it a line like this that's causing the issue?  Not necessarily that
>> line in particular, but as an example. Just thinking from my small
>> programming background and seeing the comment on "float".
>>
>> $day.rain.sum.nolabel("%.2f",0.0)
>>
>> --
>> 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/89e2f17f-e7aa-4fc0-a7cb-ba923400b293%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/CAPq0zEB%2BnT88CLaRx21YQDyX78Lw9_1tkjP8BuummgBsMvPdkw%40mail.gmail.com.


Re: [weewx-user] Re: web page is DEFAULT

2020-05-13 Thread gjr80
The user account you are using to edit weewx.conf has insufficient privileges, 
use an account that does have sufficient privileges or prefix you editor 
command with sudo.

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/45e92719-00c9-4505-a2a3-a5106a3ac267%40googlegroups.com.


Re: [weewx-user] Re: web page is DEFAULT

2020-05-13 Thread Dave Webb KB1PVH
Use sudo nano /etc/weewx/weewx.conf

Dave-KB1PVH


Sent from my Galaxy S9

On Wed, May 13, 2020, 6:23 PM 'doug wright' via weewx-user <
weewx-user@googlegroups.com> wrote:

> Permissions denied to save weewx.conf
>
> Sent from my iPhone
>
> > On May 13, 2020, at 4:53 PM, gjr80  wrote:
> >
> > You have an error with your latitude setting in weewx.conf:
> >
> > May 13 16:32:29 weewx weewx[6603] CRITICAL __main__: 
> ValueError: invalid literal for float(): 28.275153 -97.464723
> >
> > It looks like you have specified both latitude and longitude for
> latitude. Edit weewx.conf, fix the error, save weewx.conf and restart
> WeeWX. Then see if there are any further errors in the log.
> >
> > 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/1a2982db-126d-4518-985a-db6d5ddff551%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/B145BD70-49DD-4F81-87FE-3932027A5FF0%40yahoo.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/CAEMY9Ffpy2es2uGC9ZZ6s9b4arBv3BPqPYZQD28kX8x5RzLjXA%40mail.gmail.com.


Re: [weewx-user] Re: web page is DEFAULT

2020-05-13 Thread 'doug wright' via weewx-user
Permissions denied to save weewx.conf

Sent from my iPhone

> On May 13, 2020, at 4:53 PM, gjr80  wrote:
> 
> You have an error with your latitude setting in weewx.conf:
> 
> May 13 16:32:29 weewx weewx[6603] CRITICAL __main__:   ValueError: 
> invalid literal for float(): 28.275153 -97.464723
> 
> It looks like you have specified both latitude and longitude for latitude. 
> Edit weewx.conf, fix the error, save weewx.conf and restart WeeWX. Then see 
> if there are any further errors in the log.
> 
> 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/1a2982db-126d-4518-985a-db6d5ddff551%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/B145BD70-49DD-4F81-87FE-3932027A5FF0%40yahoo.com.


Re: [weewx-user] Re: Error since upgrade from 3.9.2 to 4.0.0

2020-05-13 Thread Tom Keffer
Yes, that could do it. I'm surprised that worked in V3.9. Use this instead

$day.rain.sum.nolabel("%.2f","0.0")



On Wed, May 13, 2020 at 1:39 PM Russell van vlack 
wrote:

> Is it a line like this that's causing the issue?  Not necessarily that
> line in particular, but as an example. Just thinking from my small
> programming background and seeing the comment on "float".
>
> $day.rain.sum.nolabel("%.2f",0.0)
>
> --
> 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/89e2f17f-e7aa-4fc0-a7cb-ba923400b293%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/CAPq0zECbfz3tu3A2x4-2o1uNkE4xvwK6GUdSewmfoyV4eWu6Eg%40mail.gmail.com.


[weewx-user] Re: web page is DEFAULT

2020-05-13 Thread gjr80
You have an error with your latitude setting in weewx.conf:

May 13 16:32:29 weewx weewx[6603] CRITICAL __main__:   ValueError: 
invalid literal for float(): 28.275153 -97.464723

It looks like you have specified both latitude and longitude for latitude. Edit 
weewx.conf, fix the error, save weewx.conf and restart WeeWX. Then see if there 
are any further errors in the log.

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/1a2982db-126d-4518-985a-db6d5ddff551%40googlegroups.com.


Re: [weewx-user] Belchertown 1.1

2020-05-13 Thread William Burton
Hello Ron,

Did you follow the instructions at 
https://github.com/poblabs/weewx-belchertown/tree/development#belchertown-skin-as-default-skin?

You should view with the URL: http://10.0.0.181, not /var/www/html as some 
references to CSS or JavaScript might not resolve correctly.

Check the timestamp of index.html in /var/www/html which should be updated 
after each archive interval when reports are run:
$ ls -l /var/www/html/index.html


Also, check the document root location of your webserver Apache or Nginx.

Hope this helps,
-Bill

On Tuesday, May 12, 2020 at 4:59:03 PM UTC-4, Ron Sell wrote:
>
> Thank You. Now i just cant find out why my updates to my weewx.conf wont 
> change my belchertown skin
>
> On Tue, May 12, 2020 at 4:20 PM Tom Keffer > 
> wrote:
>
>> See the documentation 
>> . Basically, you 
>> set option "enable" to false:
>>
>> [[SeasonsReport]]
>> # The SeasonsReport uses the 'Seasons' skin, which contains the
>> # images, templates and plots for the report.
>> skin = Seasons
>> enable = false
>>
>> -tk
>>
>> On Tue, May 12, 2020 at 11:52 AM Ron Sell > > wrote:
>>
>>> I started with a fresh install.
>>>
>>> My intention is to only use belchertown skin. How do I disable the 
>>> others?
>>>
>>> None of the changes i make in the weewx.conf for belchertown skin take 
>>> affect.
>>> IE: powered_by = "WeatherFlow"
>>>
>>> this never shows on the skin:
>>>
>>>
>>>
>>>
>>> On Tue, May 12, 2020 at 2:29 PM Tom Keffer >> > wrote:
>>>
 I'm not sure what you're trying to do here, but any particular reason 
 why you're running both weewxd *and* wee_reports? Usually, it's one or 
 the other.

 And, you're running both the Seasons report *and* the Belchertown 
 report, albeit to different directories. Is that your intention?

 Finally, when you say, "none of my changes take affect" what changes 
 are you referring to? The change from the old system? Adding something to 
 the new system?

 Remote debugging is tough, so it helps to be very explicit about what 
 you mean, and to supply lots of information.

 -tk


 On Tue, May 12, 2020 at 11:15 AM Ron Sell >>> > wrote:

> Attached the log file
>
> On Tue, May 12, 2020 at 2:02 PM Tom Keffer  > wrote:
>
>> Impossible to say without seeing the log. See *Help! Posting to 
>> weewx-user *.
>>
>> On Tue, May 12, 2020 at 10:59 AM Ron Sell > > wrote:
>>
>>> I am trying to re create my Weewx on a new server. I am having the 
>>> hardest time. When I make changes to the weewx.conf, restart service 
>>> and 
>>> run sudo weewx_reports none of my changes take affect. What am I 
>>> missing?
>>>
>>> [[Belchertown]]
>>>
>>> HTML_ROOT = /var/www/html
>>>
>>> skin = Belchertown
>>>
>>> [[[Extras]]]
>>>
>>> belchertown_root_url = http://10.0.0.1 
>>> 81
>>>
>>>   # footer_copyright_text = BelchertownWeather.com
>>>
>>> forecast_enabled = 1
>>>
>>> forecast_api_id = x
>>>
>>> forecast_api_secret = x
>>>
>>> forecast_units = "us"
>>>
>>> forecast_stale = forecast_stale
>>>
>>> earthquake_enabled = 0
>>>
>>> twitterenabled = 0
>>>
>>> webpage_autorefresh = 20
>>>
>>>   #mqtt_websockets_enabled = 1
>>>
>>>#   mqtt_websockets_host = "10.0.0.32"
>>>
>>>#   mqtt_websockets_port = 9001
>>>
>>>#   mqtt_websockets_topic = "weather/#"
>>>
>>> disconnect_live_website_visitor = 0
>>>
>>> show_apptemp = 1
>>>
>>>   #  show_windrun = 1
>>>
>>> station_observations = barometer, dewpoint, outHumidity, 
>>> cloudbase, rainWithRainRate, UV, radiation
>>>
>>> theme = auto
>>>
>>> reload_hook_images = 1
>>>
>>> reload_images_hook_af = 60
>>>
>>> show_last_updated_alert = 1
>>>
>>> last_updated_alert_threshold = 1800
>>>
>>> footer_disclaimer_text = "Weather"
>>>
>>> footer_copyright_text = " "
>>>
>>> powered_by = "WeatherFlow"
>>>
>>> about_page_header = "About"
>>>
>>> home_page_header = "Weather Conditions"
>>>
>>> -- 
>>> 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 

[weewx-user] Re: web page is DEFAULT

2020-05-13 Thread 'dwright361' via weewx-user
[ ok ] Stopping weewx (via systemctl): weewx.service.
pi@weewx:~ $ sudo /etc/init.d/weewx start
[ ok ] Starting weewx (via systemctl): weewx.service.
pi@weewx:~ $ tail -f /var/log/syslog
May 13 16:32:29 weewx weewx[6603] CRITICAL __main__: File 
"/usr/share/weewx/weewxd", line 148, in main
May 13 16:32:29 weewx weewx[6603] CRITICAL __main__:   engine = 
weewx.engine.StdEngine(config_dict)
May 13 16:32:29 weewx weewx[6603] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 72, in __init__
May 13 16:32:29 weewx weewx[6603] CRITICAL __main__:   
self.preLoadServices(config_dict)
May 13 16:32:29 weewx weewx[6603] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 112, in preLoadServices
May 13 16:32:29 weewx weewx[6603] CRITICAL __main__:   
self.stn_info = weewx.station.StationInfo(self.console, 
**config_dict['Station'])
May 13 16:32:29 weewx weewx[6603] CRITICAL __main__: File 
"/usr/share/weewx/weewx/station.py", line 51, in __init__
May 13 16:32:29 weewx weewx[6603] CRITICAL __main__:   
self.latitude_f  = float(stn_dict['latitude'])
May 13 16:32:29 weewx weewx[6603] CRITICAL __main__:   ValueError: 
invalid literal for float(): 28.275153 -97.464723
May 13 16:32:29 weewx weewx[6603] CRITICAL __main__:   Exiting.


On Wednesday, May 13, 2020 at 3:42:39 PM UTC-5, gjr80 wrote:
>
> Hi, 
>
> The answer is in your first post: 
>
> If WeeWX was installed from DEB or RPM package, no configuration should be 
> necessary since the reports are placed in the directory 
> /var/www/html/weewx, which is in the Apache DocumentRoot directory 
> /var/www/html 
>
> I am guessing that since you got a 404 error when you used /weewx in your 
> browser that WeeWX has not placed it’s generated pages in 
> /var/www/html/weewx. This could be because they have been saved elsewhere 
> or more likely they have not been generated at all. I suggest you look in 
> the log, are files being generated and where are they being saved? If you 
> run into difficulties edit weewx.conf, set debug = 1, save weewx.conf and 
> restart WeeWX. Let WeeWX run for 10-15 minutes then take a copy of the log 
> from when you restarted WeeWX through until the 10-15 minutes have elapsed 
> making sure you get the full WeeWX start up. Post the log extract here’s s 
> we will see if we can work out what it going on. 
>
> 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/17a415eb-8771-42b6-8ad2-c4256fe50b65%40googlegroups.com.


[weewx-user] Re: web page is DEFAULT

2020-05-13 Thread gjr80
Hi,

The answer is in your first post:

If WeeWX was installed from DEB or RPM package, no configuration should be 
necessary since the reports are placed in the directory /var/www/html/weewx, 
which is in the Apache DocumentRoot directory /var/www/html

I am guessing that since you got a 404 error when you used /weewx in your 
browser that WeeWX has not placed it’s generated pages in /var/www/html/weewx. 
This could be because they have been saved elsewhere or more likely they have 
not been generated at all. I suggest you look in the log, are files being 
generated and where are they being saved? If you run into difficulties edit 
weewx.conf, set debug = 1, save weewx.conf and restart WeeWX. Let WeeWX run for 
10-15 minutes then take a copy of the log from when you restarted WeeWX through 
until the 10-15 minutes have elapsed making sure you get the full WeeWX start 
up. Post the log extract here’s s we will see if we can work out what it going 
on.

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/2b2f4e5f-8fc1-422d-9fa0-d9986f9225f1%40googlegroups.com.


[weewx-user] Re: Error since upgrade from 3.9.2 to 4.0.0

2020-05-13 Thread Russell van vlack
Is it a line like this that's causing the issue?  Not necessarily that line 
in particular, but as an example. Just thinking from my small programming 
background and seeing the comment on "float".

$day.rain.sum.nolabel("%.2f",0.0)

-- 
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/89e2f17f-e7aa-4fc0-a7cb-ba923400b293%40googlegroups.com.


[weewx-user] Re: Error since upgrade from 3.9.2 to 4.0.0

2020-05-13 Thread Russell van vlack
Looks like I ran up against a line limit.  Attached as plain text.

-- 
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/c8288dfb-5933-462f-b1f9-d10f1e009269%40googlegroups.com.
{
  "detail": {
"timestamp": "$current.dateTime.format("%m/%d/%Y %H:%M")",
"station": "$station.location",
"lat": "$station.latitude[0] $station.latitude[1]' 
$station.latitude[2]",
"lon": "$station.longitude[0] $station.longitude[1]' 
$station.longitude[2]",
"el": "$station.altitude",
"hw": "$station.hardware",
"weev": "v$station.version",
"weeup": "$station.uptime",
"osup": "$station.os_uptime"
  },
  "almanac": {
#if $almanac.hasExtras
  #set $sun_altitude = $almanac.sun.alt
  #if $sun_altitude < 0
#set $sun_None="(Always down)"
  #else
#set $sun_None="(Always up)"
  #end if
  "hasextended": 1,
  "twilight": {
"start": "$almanac(horizon=-6).sun(use_center=1).rise",
"end": "$almanac(horizon=-6).sun(use_center=1).set"
  },
  "sun": {
"rise": "$almanac.sun.rise.string($sun_None)",
"transit": "$almanac.sun.transit",
"set": "$almanac.sun.set.string($sun_None)"
  },
  "moon": {
"rise": "$almanac.moon.rise",
"transit": "$almanac.moon.transit",
"set": "$almanac.moon.set",
"phase": "$almanac.moon_phase",
"full": "$almanac.moon_fullness",
"nextEvents": {
  "nextNew": "$almanac.next_new_moon.format("%m/%d/%Y %H:%M")",
  "nextFull": "$almanac.next_full_moon.format("%m/%d/%Y %H:%M")"
}
  },
  "other": {
"solstice": "$almanac.next_solstice.format("%m/%d/%Y %H:%M")",
"equinox": "$almanac.next_equinox.format("%m/%d/%Y %H:%M")",
"sun_alt": "$almanac.sun.alt",
"sun_az": "$almanac.sun.az",
"sun_size": "$almanac.sun.size",
"moon_alt": "$almanac.moon.alt",
"moon_az": "$almanac.moon.az",
"moon_size": "$almanac.moon.size",
"sun_moon_separation": "$almanac.separation(($almanac.sun.az, 
$almanac.sun.alt), ($almanac.moon.az, $almanac.moon.alt))"

  }
#else
  "hasextended": 0,
  "sun": {
"rise": "$almanac.sunrise",
"set": "$almanac.sunset"
  },
  "moon": {
"phase": "$almanac.moon_phase ($almanac.moon_fullness% full)"
  }
#end if
  },
  "current": {
"otemp": $current.outTemp.formatted,
"otemptest": $current.outTemp.format(None_string="'N/A'", add_label=False),
"otemptrend": $trend.outTemp.formatted,
"otemptrendtest": $trend.outTemp.format(None_string="'N/A'", 
add_label=False),
"ochill": $current.windchill.formatted,
"ochilltrend": $trend.windchill.formatted,
"oheat": $current.heatindex.formatted,
"oheattrend": $trend.heatindex.formatted,
"odew": $current.dewpoint.formatted,
"odewtrend": $trend.dewpoint.formatted,
"orh": $current.outHumidity.formatted,
"orhtrend": $trend.outHumidity.formatted,
"bar": $current.barometer.formatted,
"bartrend": $trend.barometer.formatted,
"wspeed": $current.windSpeed.formatted,
"wspeedtrend": $trend.windSpeed.formatted,
"wdeg": "$current.windDir.formatted",
"wdir": "$current.windDir.ordinal_compass",
"wgust": $current.windGust.formatted,
"wgusttrend": $trend.windGust.formatted,
"wgustdeg": "$current.windGustDir.formatted",
"wgustdir": "$current.windGustDir.ordinal_compass",
"rainrate": $current.rainRate.formatted,
"rainratetrend": $trend.rainRate.formatted,
#if $day.radiation.has_data
"sr": $current.radiation.formatted,
"srtrend": $trend.radiation.formatted,
#end if
"itemp": $current.inTemp.formatted,
"itemptrend": $trend.inTemp.formatted,
"irh": $current.inHumidity.formatted,
"irhtrend": $trend.inHumidity.formatted
  },
  "summary": {
"h1": {
  "otemp": [
{
  "v": $hour.outTemp.max.formatted,
  "t": "$hour.outTemp.maxtime.format("%H:%M")"
},{
  "v": $hour.outTemp.min.formatted,
  "t": "$hour.outTemp.mintime.format("%H:%M")"
},{
  "v": $hour.outTemp.avg.formatted
}
  ],
  "oheat": [
{
  "v": $hour.heatindex.max.formatted,
  "t": "$hour.heatindex.maxtime.format("%H:%M")"
},{
  "v": $hour.heatindex.min.formatted,
  "t": "$hour.heatindex.mintime.format("%H:%M")"
},{
  "v": $hour.heatindex.avg.formatted
}
  ],
  "ochill": [
{
  "v": $hour.windchill.max.formatted,
  "t": "$hour.windchill.maxtime.format("%H:%M")"
},{
  "v": $hour.windchill.min.formatted,
  "t": "$hour.windchill.mintime.format("%H:%M")"

[weewx-user] Re: Belchertown 1.1

2020-05-13 Thread G Hammer
I recall having that look once a while back.
I think I did this to correct it.
If it wasn't, no harm done if they are available for your Pi.
It looks like pyephem or if python3, python3-ephem aren't installed in the 
second screenshot.

Just wondering why you wish to return to v 1 though.

Anyway, give these a try.

sudo apt-get -y install libfreetype6-dev
sudo apt-get -y install libjpeg-dev



-- 
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/7ea36df9-3f25-4d20-8db7-ffe2e02eed16%40googlegroups.com.


Re: [weewx-user] Error since upgrade from 3.9.2 to 4.0.0

2020-05-13 Thread Tom Keffer
Version 4.0 uses a different strategy of ensuring that strings are unicode,
so I can see that something might work in V3.9, but not V4.

Could you post your template wxsummary.json.new.tmpl?

-tk

On Wed, May 13, 2020 at 1:07 PM Russell van vlack 
wrote:

> Good afternoon.
>
> I keep getting the following error after upgrading to 4.0.0 from 3.9.2 a
> little while ago.
>
> May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator: Generate failed with exception ' 'exceptions.TypeError'>'
> May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator:  Ignoring template
> /etc/weewx/skins/W8AGT/wxsummary.json.new.tmpl
> May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator:  Reason: not expecting type ''
> May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator:   Traceback (most recent call last):
> May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator: File
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
> May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator:   unicode_string =
> compiled_template.respond()
> May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator: File
> "_etc_weewx_skins_W8AGT_wxsummary_json_new_tmpl.py", line 3491, in respond
> May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator: File "/usr/share/weewx/weewx/units.py",
> line 1088, in nolabel
> May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator:   return self.toString(addLabel=False,
> useThisFormat=format_string, None_string=None_string)
> May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator: File "/usr/share/weewx/weewx/units.py",
> line 1051, in toString
> May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator:   localize=localize)
> May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator: File "/usr/share/weewx/weewx/units.py",
> line 782, in toString
> May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator:   val_ustr = six.ensure_text(val_str)
> May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator: File "/usr/share/weewx/six.py", line 908,
> in ensure_text
> May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator:   raise TypeError("not expecting type '%s'"
> % type(s))
> May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR
> weewx.cheetahgenerator:   TypeError: not expecting type ''
> May 13 15:44:31 w8agtweather1 weewx-lowell[4322] INFO
> weewx.cheetahgenerator: Generated 3 files for report StandardReport in
> 13.11 seconds
>
> I see some issues on the forums pointing toward an error in my template
> but nothing has changed with my template since the upgrade was done.
>
> Any constructive help on where to start would be much appreciated.
>
> 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/ce004508-ec35-4d75-af1d-3863bb5f8c1c%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/CAPq0zEAYSSLuhre5emJYxXiYBGhZd-Yr%3DWwcw5n-J8FH_ZsBtg%40mail.gmail.com.


[weewx-user] Error since upgrade from 3.9.2 to 4.0.0

2020-05-13 Thread Russell van vlack
Good afternoon.

I keep getting the following error after upgrading to 4.0.0 from 3.9.2 a 
little while ago.

May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: Generate failed with exception ''
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:  Ignoring template 
/etc/weewx/skins/W8AGT/wxsummary.json.new.tmpl
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:  Reason: not expecting type ''
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   Traceback (most recent call last):
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   unicode_string = 
compiled_template.respond()
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: File 
"_etc_weewx_skins_W8AGT_wxsummary_json_new_tmpl.py", line 3491, in respond
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: File "/usr/share/weewx/weewx/units.py", 
line 1088, in nolabel
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   return self.toString(addLabel=False, 
useThisFormat=format_string, None_string=None_string)
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: File "/usr/share/weewx/weewx/units.py", 
line 1051, in toString
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   localize=localize)
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: File "/usr/share/weewx/weewx/units.py", 
line 782, in toString
May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   val_ustr = six.ensure_text(val_str)
May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: File "/usr/share/weewx/six.py", line 908, 
in ensure_text
May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   raise TypeError("not expecting type '%s'" 
% type(s))
May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   TypeError: not expecting type ''
May 13 15:44:31 w8agtweather1 weewx-lowell[4322] INFO 
weewx.cheetahgenerator: Generated 3 files for report StandardReport in 
13.11 seconds

I see some issues on the forums pointing toward an error in my template but 
nothing has changed with my template since the upgrade was done.

Any constructive help on where to start would be much appreciated.

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/ce004508-ec35-4d75-af1d-3863bb5f8c1c%40googlegroups.com.


Re: [weewx-user] mysql data import from weewx 3.9. in 4.0

2020-05-13 Thread Joachim Puttkammer
When I go back to V3.9 and "Database A", then I will lost datas for two 
weeks.
So now I leave everything and live with a much smaller data gap.

I expressed myself unhappily regarding the new database. 
I meant the new database now has over 100 tables and an alphabetical order 
compared to the previous.

Joachim

Am Mittwoch, 13. Mai 2020 21:39:46 UTC+2 schrieb Tom Keffer:
>
> Heavens. You are making this way more complicated than necessary. There is 
> no "V4.0 database" --- the database has not changed. The only new thing is 
> the opportunity to use an extended schema. But, if the original "wview" 
> schema is working fine for you, don't do anything.
>
> 1. Go back to your original "Database A". Get rid of the rest.
>
> 2. Go back to your original V3.9 setup. Get rid of the rest.
>
> 3. Do a simple upgrade as you always have:
>
>
>
> *sudo apt-get updatesudo apt-get install weewx*
>
> 4. Then install the Belchertown skin.
>
> Now you're running on WeeWX V4 with Python 2. 
>
> 5. If you do want to use the extended schema, perhaps because you have 
> some new sensors that can take advantage of the extended schema, follow the 
> directions I gave in this post 
> . 
> Otherwise, don't do it.
>
> 6. If you want to change to Python 3, then you'll have to switch 
> repositories. Assuming a Debian 10 system, follow the directions here 
> . If you have a Debian 9 system, 
> it's more complicated, and we recommend staying with Python 2.
>
>
> On Wed, May 13, 2020 at 10:05 AM Joachim Puttkammer  > wrote:
>
>> I will briefly describe what I have done.
>> 1. weewx database saved (mysqldump)
>> 2. update from 3.9 to 4.0
>> 3. Installed Belchertown skin and found that there are problems with the 
>> NOAA reports
>> 4. 4.0 completely uninstalled (all weewx files, folders and database) and 
>> reinstalled, and transferred the all backed up settings. 
>> 5. Did not remember that the weewx.conf 3.9 has the entry 'target_unit = 
>> METRICWX'. With the 4.0 it says 'US'.  After days database saved and weewx 
>> database deleted. 'target_unit' changed back to METRICWX.
>>
>> Conclusion: 
>> 1 Database A with METRICWX and old structure 3.9
>> 1 Database B with METRICWX and new structure 4.0
>> 1 Database C with US and new structure 4.0
>> I imported the METRICWX Database A with a php script into Database B. Now 
>> I want to import Database C as well, but how?
>>
>> I want to keep the structure of the 4.0 Database.
>>
>> greetings
>> Joachim
>>
>>
>>
>> Am Montag, 11. Mai 2020 13:06:09 UTC+2 schrieb Graham Eddy:
>>>
>>> unless you are using features of the new database, you can simply 
>>> continue using the old database (no unload/reload - keeping a copy of old 
>>> database before using it with updated weewx, of course).
>>> g-eddy
>>>
>>> On 11 May 2020, at 8:53 pm, Joachim Puttkammer  
>>> wrote:
>>>
>>> Hi all,
>>> I have reinstalled weewx 4.0 and now I want to import the old mysql DB 
>>> (weewx 3.9). Unfortunately there is a problem with the import, because the 
>>> old archive table has 52 columns and the new one has 114 columns.
>>>
>>>
>>>
>>>
>>> -- 
>> 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/778a347a-b25a-40ec-80af-9273debad5bd%40googlegroups.com
>>  
>> 
>> .
>>
>
Am Mittwoch, 13. Mai 2020 21:39:46 UTC+2 schrieb Tom Keffer:
>
> Heavens. You are making this way more complicated than necessary. There is 
> no "V4.0 database" --- the database has not changed. The only new thing is 
> the opportunity to use an extended schema. But, if the original "wview" 
> schema is working fine for you, don't do anything.
>
> 1. Go back to your original "Database A". Get rid of the rest.
>
> 2. Go back to your original V3.9 setup. Get rid of the rest.
>
> 3. Do a simple upgrade as you always have:
>
>
>
> *sudo apt-get updatesudo apt-get install weewx*
>
> 4. Then install the Belchertown skin.
>
> Now you're running on WeeWX V4 with Python 2. 
>
> 5. If you do want to use the extended schema, perhaps because you have 
> some new sensors that can take advantage of the extended schema, follow the 
> directions I gave in this post 
> . 
> Otherwise, don't do it.
>
> 6. If you want to change to Python 3, then you'll have to switch 
> repositories. Assuming a Debian 10 system, follow the directions here 
> . If you have a Debian 9 system, 
> it's more complicated, and we recommend staying with Python 2.
>
>
> On Wed, May 13, 2020 

Re: [weewx-user] ViolatedPrecondition: lastUpdate

2020-05-13 Thread Tom Keffer
You're leaving out a lot of details, in particular, what you mean by
"...this database and the data to be imported..."

Inside a WeeWX database is actually two databases: the "archive" database,
and the "daily summaries" database. You can't just add new data in the
former (using SQL INSERT statements) without updating the latter. They have
to be kept in sync. You have two choices:

   1. Depending on what you're trying to do, you might be able to use one
   of the WeeWX tools to do the import, which may be able to keep the daily
   summaries up to date.
   2. Alternatively, and perhaps the easiest, just drop the daily summaries
   and let WeeWX rebuild them. See wee_database --drop-daily
   .

-tk

On Wed, May 13, 2020 at 12:18 PM Joachim Puttkammer 
wrote:

> Hi,
> To import data into the weewx database, I transferred this database and
> the data to be imported from the Raspi to the local PC, because it is much
> faster.  To test the import I started Weewx on the local PC (simulator) and
> after 2 runs ( added record ) I stopped weewx and removed the last two
> simulator records from the file. Database back to the Raspi and now I get
> the following error message :
> ViolatedPrecondition: lastUpdate(2020-05-13 11:34:00 CEST (1589362440)) >
> lastRecord(2020-05-13 08:39:00 CEST (1589351940))
>  Exiting.
> I added a record with lastUpdate Time, after that weewx started, but data
> for about 3 hours is missing.
> Where can I manipulate the entry lastUpdate?
>
> Joachim
>
> --
> 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/1bbc647c-d042-4482-a0b4-45c953933f65%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/CAPq0zEAbV4X68rgk1HSzEsM4dMTGnAyQRy4uWZ1fpFOvtzQ%3D-g%40mail.gmail.com.


Re: [weewx-user] mysql data import from weewx 3.9. in 4.0

2020-05-13 Thread Tom Keffer
Heavens. You are making this way more complicated than necessary. There is
no "V4.0 database" --- the database has not changed. The only new thing is
the opportunity to use an extended schema. But, if the original "wview"
schema is working fine for you, don't do anything.

1. Go back to your original "Database A". Get rid of the rest.

2. Go back to your original V3.9 setup. Get rid of the rest.

3. Do a simple upgrade as you always have:



*sudo apt-get updatesudo apt-get install weewx*

4. Then install the Belchertown skin.

Now you're running on WeeWX V4 with Python 2.

5. If you do want to use the extended schema, perhaps because you have some
new sensors that can take advantage of the extended schema, follow the
directions I gave in this post
.
Otherwise, don't do it.

6. If you want to change to Python 3, then you'll have to switch
repositories. Assuming a Debian 10 system, follow the directions here
. If you have a Debian 9 system, it's
more complicated, and we recommend staying with Python 2.


On Wed, May 13, 2020 at 10:05 AM Joachim Puttkammer 
wrote:

> I will briefly describe what I have done.
> 1. weewx database saved (mysqldump)
> 2. update from 3.9 to 4.0
> 3. Installed Belchertown skin and found that there are problems with the
> NOAA reports
> 4. 4.0 completely uninstalled (all weewx files, folders and database) and
> reinstalled, and transferred the all backed up settings.
> 5. Did not remember that the weewx.conf 3.9 has the entry 'target_unit =
> METRICWX'. With the 4.0 it says 'US'.  After days database saved and weewx
> database deleted. 'target_unit' changed back to METRICWX.
>
> Conclusion:
> 1 Database A with METRICWX and old structure 3.9
> 1 Database B with METRICWX and new structure 4.0
> 1 Database C with US and new structure 4.0
> I imported the METRICWX Database A with a php script into Database B. Now
> I want to import Database C as well, but how?
>
> I want to keep the structure of the 4.0 Database.
>
> greetings
> Joachim
>
>
>
> Am Montag, 11. Mai 2020 13:06:09 UTC+2 schrieb Graham Eddy:
>>
>> unless you are using features of the new database, you can simply
>> continue using the old database (no unload/reload - keeping a copy of old
>> database before using it with updated weewx, of course).
>> g-eddy
>>
>> On 11 May 2020, at 8:53 pm, Joachim Puttkammer 
>> wrote:
>>
>> Hi all,
>> I have reinstalled weewx 4.0 and now I want to import the old mysql DB
>> (weewx 3.9). Unfortunately there is a problem with the import, because the
>> old archive table has 52 columns and the new one has 114 columns.
>>
>>
>>
>>
>> --
> 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/778a347a-b25a-40ec-80af-9273debad5bd%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/CAPq0zEBvpxxTjek-Dv0dfXdxfMZJ9Be5CCqJPfNgENGM_wx4Tw%40mail.gmail.com.


[weewx-user] Re: web page is DEFAULT

2020-05-13 Thread 'dwright361' via weewx-user
I think my reports are in the wrong path . the Index.html is the default 
Debian test page. What folder are the reports from the weather station held?

On Wednesday, May 13, 2020 at 12:14:11 PM UTC-5, dwright361 wrote:
>
> Phil; I  tried that and I get :Not Found
>
> The requested URL was not found on this server.
> --
> Apache/2.4.25 (Raspbian) Server at 10.10.5.187 Port 80
> On Wednesday, May 13, 2020 at 11:58:59 AM UTC-5, Phil Green wrote:
>>
>> On my system I have to state folder /weewx at the end of your url in 
>> order to pickup the index.html in the weewx folder under the main root of 
>> the url. 
>> Regards
>> Phil
>>
>

-- 
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/85c5598a-8cc3-4bb9-b59b-1248b7fa2fff%40googlegroups.com.


[weewx-user] ViolatedPrecondition: lastUpdate

2020-05-13 Thread Joachim Puttkammer
Hi,
To import data into the weewx database, I transferred this database and the 
data to be imported from the Raspi to the local PC, because it is much 
faster.  To test the import I started Weewx on the local PC (simulator) and 
after 2 runs ( added record ) I stopped weewx and removed the last two 
simulator records from the file. Database back to the Raspi and now I get 
the following error message :
ViolatedPrecondition: lastUpdate(2020-05-13 11:34:00 CEST (1589362440)) > 
lastRecord(2020-05-13 08:39:00 CEST (1589351940))
 Exiting.
I added a record with lastUpdate Time, after that weewx started, but data 
for about 3 hours is missing.
Where can I manipulate the entry lastUpdate?

Joachim

-- 
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/1bbc647c-d042-4482-a0b4-45c953933f65%40googlegroups.com.


[weewx-user] Re: web page is DEFAULT

2020-05-13 Thread 'dwright361' via weewx-user
Phil; I  tried that and I get :Not Found

The requested URL was not found on this server.
--
Apache/2.4.25 (Raspbian) Server at 10.10.5.187 Port 80
On Wednesday, May 13, 2020 at 11:58:59 AM UTC-5, Phil Green wrote:
>
> On my system I have to state folder /weewx at the end of your url in order 
> to pickup the index.html in the weewx folder under the main root of the 
> url. 
> Regards
> Phil
>

-- 
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/c7bc780f-0f2a-4feb-a49c-dac603bb2b50%40googlegroups.com.


Re: [weewx-user] mysql data import from weewx 3.9. in 4.0

2020-05-13 Thread Joachim Puttkammer
I will briefly describe what I have done.
1. weewx database saved (mysqldump)
2. update from 3.9 to 4.0
3. Installed Belchertown skin and found that there are problems with the 
NOAA reports
4. 4.0 completely uninstalled (all weewx files, folders and database) and 
reinstalled, and transferred the all backed up settings. 
5. Did not remember that the weewx.conf 3.9 has the entry 'target_unit = 
METRICWX'. With the 4.0 it says 'US'.  After days database saved and weewx 
database deleted. 'target_unit' changed back to METRICWX.

Conclusion: 
1 Database A with METRICWX and old structure 3.9
1 Database B with METRICWX and new structure 4.0
1 Database C with US and new structure 4.0
I imported the METRICWX Database A with a php script into Database B. Now I 
want to import Database C as well, but how?

I want to keep the structure of the 4.0 Database.

greetings
Joachim



Am Montag, 11. Mai 2020 13:06:09 UTC+2 schrieb Graham Eddy:
>
> unless you are using features of the new database, you can simply continue 
> using the old database (no unload/reload - keeping a copy of old database 
> before using it with updated weewx, of course).
> g-eddy
>
> On 11 May 2020, at 8:53 pm, Joachim Puttkammer  > wrote:
>
> Hi all,
> I have reinstalled weewx 4.0 and now I want to import the old mysql DB 
> (weewx 3.9). Unfortunately there is a problem with the import, because the 
> old archive table has 52 columns and the new one has 114 columns.
>
>
>
>
>

-- 
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/778a347a-b25a-40ec-80af-9273debad5bd%40googlegroups.com.


[weewx-user] web page is DEFAULT

2020-05-13 Thread Phil Green
On my system I have to state folder /weewx at the end of your url in order to 
pickup the index.html in the weewx folder under the main root of the url. 
Regards
Phil

-- 
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/afcd857d-4713-453f-a99b-81c73d43f611%40googlegroups.com.


Re: [weewx-user] Re: FTPS error in WeeWX version 4.0.0

2020-05-13 Thread Tom Keffer
Stephen and I had an offline conversation and came up with a fix. Commit
3c81cd2

.

To use the fix, replace your copy of weewx/reportengine.py

.
Same with weeutil/ftpupload.py

.

Then under [[FTP]] add this option

  [[FTP]]
... (as before)
reuse_ssl = True

The fix will only work with Python >= 3.6.

-tk


On Tue, May 12, 2020 at 3:05 PM Stephen  wrote:

>
>
> On Tuesday, 12 May 2020 17:31:10 UTC+1, Tom Keffer wrote:
>>
>> Does the client have access to any ssh keys?
>>
>
> No
>
> Is there a debug mode for the client where you can watch what it's doing,
>> and see what's different?
>>
>
>  Yes, here is the output.  I'm using lftp.  There are some differences so
> I modified the WeeWX code to make it do the same but it didn't fix it.
>
> server.myhost.net <--- 220-- Welcome to Pure-FTPd [privsep] [TLS]
> --
> server.myhost.net <--- 220-You are user number 3 of 50 allowed.
> server.myhost.net <--- 220-Local time is now 19:53. Server port: 21.
> server.myhost.net <--- 220-This is a private system - No anonymous login
> server.myhost.net <--- 220-IPv6 connections are also welcome on this
> server.
> server.myhost.net <--- 220 You will be disconnected after 15 minutes of
> inactivity.
> server.myhost.net ---> FEAT
> server.myhost.net <--- 211-Extensions supported:
> server.myhost.net <---  EPRT
> server.myhost.net <---  IDLE
> server.myhost.net <---  MDTM
> server.myhost.net <---  SIZE
> server.myhost.net <---  MFMT
> server.myhost.net <---  REST STREAM
> server.myhost.net <---  MLST
> type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
> server.myhost.net <---  MLSD
> server.myhost.net <---  AUTH TLS
> server.myhost.net <---  PBSZ
> server.myhost.net <---  PROT
> server.myhost.net <---  UTF8
> server.myhost.net <---  TVFS
> server.myhost.net <---  ESTA
> server.myhost.net <---  PASV
> server.myhost.net <---  EPSV
> server.myhost.net <---  SPSV
> server.myhost.net <---  ESTP
> server.myhost.net <--- 211 End.
> server.myhost.net ---> AUTH TLS
> server.myhost.net <--- 234 AUTH TLS OK.
> server.myhost.net ---> OPTS UTF8 ON
> server.myhost.net <--- 200 OK, UTF-8 enabled
> server.myhost.net ---> USER u...@mydomain.com
> server.myhost.net <--- 331 User u...@mydomain.com OK. Password required
> server.myhost.net ---> PASS **
> server.myhost.net <--- 230 OK. Current restricted directory is /
> server.myhost.net ---> OPTS MLST
> type;size;modify;UNIX.mode;UNIX.uid;UNIX.gid
> server.myhost.net <--- 200  MLST OPTS
> type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
> server.myhost.net ---> PWD
> server.myhost.net <--- 257 "/" is your current location
> server.myhost.net ---> PBSZ 0
> server.myhost.net <--- 200 PBSZ=0
> server.myhost.net ---> PROT P
> server.myhost.net <--- 200 Data protection level set to "private"
> server.myhost.net ---> TYPE I
> server.myhost.net <--- 200 TYPE is now 8-bit binary
> server.myhost.net ---> PASV
> server.myhost.net <--- 227 Entering Passive Mode (185,24,98,215,210,134)
> server.myhost.net  Connecting data socket to (185.24.98.215) port
> 53894
> server.myhost.net ---> STOR yearrain.png
> server.myhost.net <--- 150 Accepted data connection
> server.myhost.net <--- 226-File successfully transferred
> server.myhost.net <--- 226 0.054 seconds (measured here), 115.09 Kbytes
> per second
> server.myhost.net ---> MFMT 20200510200531 yearrain.png
> server.myhost.net <--- 213 UTIME OK
> server.myhost.net ---> QUIT
> server.myhost.net <--- 221-Goodbye. You uploaded 7 and downloaded 0
> kbytes.
> server.myhost.net <--- 221 Logout.
>
> --
> 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/639b82ae-f9f9-44eb-a651-1838a15b4978%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/CAPq0zEDub%2BgiHFD3q89jT-T8DKn39tLaYpjEijCGhvh45ESJaQ%40mail.gmail.com.


Re: [weewx-user] Belchertown 1.1

2020-05-13 Thread G Hammer
Did you install the skin using wee_extension --install ?


On Tuesday, May 12, 2020 at 4:59:03 PM UTC-4, Ron Sell wrote:
>
> Thank You. Now i just cant find out why my updates to my weewx.conf wont 
> change my belchertown skin
>
> On Tue, May 12, 2020 at 4:20 PM Tom Keffer > 
> wrote:
>
>> See the documentation 
>> . Basically, you 
>> set option "enable" to false:
>>
>> [[SeasonsReport]]
>> # The SeasonsReport uses the 'Seasons' skin, which contains the
>> # images, templates and plots for the report.
>> skin = Seasons
>> enable = false
>>
>> -tk
>>
>> On Tue, May 12, 2020 at 11:52 AM Ron Sell > > wrote:
>>
>>> I started with a fresh install.
>>>
>>> My intention is to only use belchertown skin. How do I disable the 
>>> others?
>>>
>>> None of the changes i make in the weewx.conf for belchertown skin take 
>>> affect.
>>> IE: powered_by = "WeatherFlow"
>>>
>>> this never shows on the skin:
>>>
>>>
>>>
>>>
>>> On Tue, May 12, 2020 at 2:29 PM Tom Keffer >> > wrote:
>>>
 I'm not sure what you're trying to do here, but any particular reason 
 why you're running both weewxd *and* wee_reports? Usually, it's one or 
 the other.

 And, you're running both the Seasons report *and* the Belchertown 
 report, albeit to different directories. Is that your intention?

 Finally, when you say, "none of my changes take affect" what changes 
 are you referring to? The change from the old system? Adding something to 
 the new system?

 Remote debugging is tough, so it helps to be very explicit about what 
 you mean, and to supply lots of information.

 -tk


 On Tue, May 12, 2020 at 11:15 AM Ron Sell >>> > wrote:

> Attached the log file
>
> On Tue, May 12, 2020 at 2:02 PM Tom Keffer  > wrote:
>
>> Impossible to say without seeing the log. See *Help! Posting to 
>> weewx-user *.
>>
>> On Tue, May 12, 2020 at 10:59 AM Ron Sell > > wrote:
>>
>>> I am trying to re create my Weewx on a new server. I am having the 
>>> hardest time. When I make changes to the weewx.conf, restart service 
>>> and 
>>> run sudo weewx_reports none of my changes take affect. What am I 
>>> missing?
>>>
>>> [[Belchertown]]
>>>
>>> HTML_ROOT = /var/www/html
>>>
>>> skin = Belchertown
>>>
>>> [[[Extras]]]
>>>
>>> belchertown_root_url = http://10.0.0.1 
>>> 81
>>>
>>>   # footer_copyright_text = BelchertownWeather.com
>>>
>>> forecast_enabled = 1
>>>
>>> forecast_api_id = x
>>>
>>> forecast_api_secret = x
>>>
>>> forecast_units = "us"
>>>
>>> forecast_stale = forecast_stale
>>>
>>> earthquake_enabled = 0
>>>
>>> twitterenabled = 0
>>>
>>> webpage_autorefresh = 20
>>>
>>>   #mqtt_websockets_enabled = 1
>>>
>>>#   mqtt_websockets_host = "10.0.0.32"
>>>
>>>#   mqtt_websockets_port = 9001
>>>
>>>#   mqtt_websockets_topic = "weather/#"
>>>
>>> disconnect_live_website_visitor = 0
>>>
>>> show_apptemp = 1
>>>
>>>   #  show_windrun = 1
>>>
>>> station_observations = barometer, dewpoint, outHumidity, 
>>> cloudbase, rainWithRainRate, UV, radiation
>>>
>>> theme = auto
>>>
>>> reload_hook_images = 1
>>>
>>> reload_images_hook_af = 60
>>>
>>> show_last_updated_alert = 1
>>>
>>> last_updated_alert_threshold = 1800
>>>
>>> footer_disclaimer_text = "Weather"
>>>
>>> footer_copyright_text = " "
>>>
>>> powered_by = "WeatherFlow"
>>>
>>> about_page_header = "About"
>>>
>>> home_page_header = "Weather Conditions"
>>>
>>> -- 
>>> 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/7b73b2c5-7d4a-4b90-8543-32a823497dc8%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 

Re: [weewx-user] Re: Interceptor 0.40 "skipping rain measurement"

2020-05-13 Thread John Kline
If you are seeing this message any more than once at WeeWX startup, then 
nothing I said applies.

> On May 13, 2020, at 7:15 AM, Wifi75  wrote:
> 
> 
> but yesterday and yesterday it rained a lot and showed me several mm of rain, 
> but in total it is zero
> 
> 
> 
> 
>> Il giorno mer 13 mag 2020 alle ore 16:09 John Kline  ha 
>> scritto:
>> I’m not familiar with your driver, but this doesn’t look like an error.
>> 
>> It looks like, on startup, the cumulative total rain (totalrainin) is being 
>> read for the first time.  For all subsequent reads, the totalrainin wil be 
>> compared to the previously read value to compute rain delta (i.e., the 
>> amount of rain that fell between the last read and this read).
>> 
>> I believe the informational message you are reading is simply stating that 
>> this is the first read and thus, can’t compute a delta because there is no 
>> previous read.
>> 
>> At least, this is my guess, without knowing the particulars.
>> 
 On May 13, 2020, at 12:48 AM, Wifi75  wrote:
 
>>> 
>>> 
 hello, I have some problem:
>>> 
>>> Weewx[11635] INFO user.interceptor: using 'totalrainin' for rain_total
>>> May 13 09:41:37 ubuntu-server python2[11635]: weewx[11635] INFO 
>>> user.interceptor: skipping rain measurement of 0.63: no last rain
>>> 
>>> I have GW1000 and WS69e station
>>> 
>>> I don't understand how I can fix this problem. 
>>> -- 
>>> 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/7872337f-ffc3-493b-9522-f546df5aba2b%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/B90C4E60-4C04-42A5-BBF4-E2B42C47264D%40johnkline.com.
> 
> 
> -- 
> Grazie
> -- 
> 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/CAPNKSOcEAgOCTUaM%3DtAhxX59s6rH7y1662zH6_JgD7PEqfmOnA%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/0F278680-F8CA-477A-85DC-E6EA67DBC435%40johnkline.com.


Re: [weewx-user] Import from Weathercat

2020-05-13 Thread gjr80
Ville,

I received all of your post in the email summary, think the embedded image 
may have caused some hiccups for google groups.

I have yet to write the weathercat instructions for the Utilities Guide 
 but they will be very similar to the 
Cumulus  and 
Weather 
Display  
sections, the process will be very similar so you may get some good 
background by reading those sections.

The easiest was to use the weathercat import and not interfere with your 
current install is to clone the WeeWX Github development branch and run 
wee_import from there. Instructions as follows:

1. install git if not already installed:

$ sudo apt-get install git

2. create a directory in which the WeeWX repo will be cloned and change to 
that directory:

$ mkdir /var/tmp/src
$ cd /var/tmp/src

3. clone the development branch of the WeeWX GitHub repo:

$ git clone -b development https://github.com/weewx/weewx

4. check wee_import works:

$ sudo PYTHONPATH=/var/tmp/src/weewx/bin /var/tmp/src/weewx/bin/wee_import 
--help
$ sudo PYTHONPATH=/var/tmp/src/weewx/bin /var/tmp/src/weewx/bin/wee_import 
--version

you should see the wee_import help and the version should be 0.5

5. copy the example weathercat import config file to /var/tmp:

$ cp /var/tmp/src/weewx/util/import/weathercat-example.conf /var/tmp/wcat.
conf

6. edit /var/tmp/wcat.conf and have a read through the settings and the 
comments. Change settings as required. Likely you will only need to change 
the directory setting, the interval setting and perhaps the [[Units]] 
settings. The directory setting should be the path to the directory 
containing the year directories containing your .cat files. The interval 
setting should be set to the interval used in the .cat files, in the .cat 
files I have seen this has been 1 minute so I have used interval = 1. 
Change the [[Units]] settings to suit the data in your .cat files, remember 
the setting must use WeeWX unit codes, the comments should help you.

7. stop WeeWX and backup your database

8. first try a dry run, the import command will look something like:

$ sudo PYTHONPATH=/var/tmp/src/weewx/bin /var/tmp/src/weewx/bin/wee_import 
--config=/home/weewx/weewx.conf --import-config=/var/tmp/wcat.conf --dry-run

You need to use your existing weewx.conf, I have assumed it is in 
/home/weewx, depending on your install it might be in /etc/weewx, change as 
required. You will likely see a lot of warnings indicating a field was 
mapped but no data was found, this is due to the fields that are in the 
wee_import .cat field map but for which there is no data in your .cat 
files, mostly it is the less common fields such as soil moisture, leaf 
temperature etc. Unless there are obvious discrepancies you can ignore 
these. You can suppress the warnings using the optional --suppress-warnings 
command line option. 

I suggest that for your first dry run import just have a few months of .cat 
files in your import directory, or limit your import with --from and --to 
command line options, otherwise you might be waiting for some time.

9. if the dry run goes OK do a live import by removing the --dry-run 
command line option.

10. finally, you can remove the trial code code using:

$ rm -R /var/tmp/src

Any problems/issues/feedback please let me know.

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/814c912a-06db-452f-ae7c-fe2ce7907aaa%40googlegroups.com.


[weewx-user] web page is DEFAULT

2020-05-13 Thread 'dwright361' via weewx-user
*in regards to the web page delivering the WEEWX reports outlined here:*

*Configure Apache to see the WeeWX reports.*

   - 
   
   If WeeWX was installed from DEB or RPM package, no configuration should 
   be necessary since the reports are placed in the directory 
   /var/www/html/weewx, which is in the Apache DocumentRoot directory 
   /var/www/html
   - 
   
   If WeeWX was installed using setup.py, you must tell Apache where to 
   find the WeeWX reports. One method is to install an Apache configuration 
   snippet: 
   
   sudo cp util/apache/conf.d/weewx.conf /etc/apache2/conf.d
   
   Be sure that the path in the Apache configuration snippet matches the 
   HTML_ROOT defined in the WeeWX configuration file. For example, the path 
   for a default setup.py installation would look like this: 
   
   Alias /weewx /home/weewx/public_html
   
   Options FollowSymlinks
   AllowOverride None
   
   
   Restart Apache to make the changes happe
   - 
   - 
   - 
   
   *I  loaded from the DEB package but as stated above "no further 
   configuration is needed , But I see the Apache default web page at my URL. 
   I assume I need to reconfig a path or file name.*
   - *How can i resolve this ?*
   - *Thanks in advance*
   - 
*Doug *
   - 
   

-- 
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/5446e901-4784-4bff-a76a-4813d759231f%40googlegroups.com.


Re: [weewx-user] Re: Interceptor 0.40 "skipping rain measurement"

2020-05-13 Thread Wifi75
but yesterday and yesterday it rained a lot and showed me several mm of
rain, but in total it is zero

[image: image.png]

Il giorno mer 13 mag 2020 alle ore 16:09 John Kline  ha
scritto:

> I’m not familiar with your driver, but this doesn’t look like an error.
>
> It looks like, on startup, the cumulative total rain (totalrainin) is
> being read for the first time.  For all subsequent reads, the totalrainin
> wil be compared to the previously read value to compute rain delta (i.e.,
> the amount of rain that fell between the last read and this read).
>
> I believe the informational message you are reading is simply stating that
> this is the first read and thus, can’t compute a delta because there is no
> previous read.
>
> At least, this is my guess, without knowing the particulars.
>
> On May 13, 2020, at 12:48 AM, Wifi75  wrote:
>
> 
>
> hello, I have some problem:
>>
>
> Weewx[11635] INFO user.interceptor: using 'totalrainin' for rain_total
> May 13 09:41:37 ubuntu-server python2[11635]: weewx[11635] INFO user.
> interceptor: skipping rain measurement of 0.63: no last rain
>
> I have GW1000 and WS69e station
>
> I don't understand how I can fix this problem.
>
> --
> 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/7872337f-ffc3-493b-9522-f546df5aba2b%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/B90C4E60-4C04-42A5-BBF4-E2B42C47264D%40johnkline.com
> 
> .
>


-- 
Grazie

-- 
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/CAPNKSOcEAgOCTUaM%3DtAhxX59s6rH7y1662zH6_JgD7PEqfmOnA%40mail.gmail.com.


Re: [weewx-user] Re: Interceptor 0.40 "skipping rain measurement"

2020-05-13 Thread John Kline
I’m not familiar with your driver, but this doesn’t look like an error.

It looks like, on startup, the cumulative total rain (totalrainin) is being 
read for the first time.  For all subsequent reads, the totalrainin wil be 
compared to the previously read value to compute rain delta (i.e., the amount 
of rain that fell between the last read and this read).

I believe the informational message you are reading is simply stating that this 
is the first read and thus, can’t compute a delta because there is no previous 
read.

At least, this is my guess, without knowing the particulars.

> On May 13, 2020, at 12:48 AM, Wifi75  wrote:
> 
> 
> 
>> hello, I have some problem:
> 
> Weewx[11635] INFO user.interceptor: using 'totalrainin' for rain_total
> May 13 09:41:37 ubuntu-server python2[11635]: weewx[11635] INFO 
> user.interceptor: skipping rain measurement of 0.63: no last rain
> 
> I have GW1000 and WS69e station
> 
> I don't understand how I can fix this problem. 
> -- 
> 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/7872337f-ffc3-493b-9522-f546df5aba2b%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/B90C4E60-4C04-42A5-BBF4-E2B42C47264D%40johnkline.com.


Re: [weewx-user] Re: weewx-wh23xx - Weewx breaks starting/running after upgrade from 3.9.2 to 4.0

2020-05-13 Thread Tom Keffer
Thanks.

Just to be clear: these changes will allow the wh23xx driver to work with
WeeWX V4, under Python 2. It is still not ported to Python 3.

We will have to wait and hear from Matthew for that.

-tk

On Tue, May 12, 2020 at 11:54 PM Bogdan  wrote:

>
>
> среда, 13 мая 2020 г., 7:16:17 UTC+2 пользователь Günther Wrana написал:
>>
>> Hello I also use the driver and just wanted to ask before I update the
>> version whether the driver also works with version 4?
>> Because I read here that there is a problem.
>>
>> Thanks Günther
>>
>> Hallo ich benutze den Treiber auch und wollte nur nachfragen bevor ich
>> die Version update ob der Treiber bei der Version 4 auch funktioniert?
>> Weil ich hier gelesen habe das es Problem gibt.
>>
>> Danke Günther
>>
> --
> 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/aaa4173e-dfe1-41f1-9533-fde70c0b7557%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/CAPq0zECsh6CNV_dK2f1VnpgKirRkBM9G829PVqHLy%2BqyKFv7ow%40mail.gmail.com.


Re: [weewx-user] Weewx 4.0.0 on Centos 7.8 & Python 3

2020-05-13 Thread Tom Keffer
Hi, Chris

We're trying to keep the package installs simple and not have a lot of
either/or options. Hence the decision to go with Python 2 on Redhat 7.

But, I'm more interested in the ImageDraw error. Can you tell me in what
context this happened? More of the stack trace would be welcome.

-tk

On Tue, May 12, 2020 at 8:53 PM Chris Nelson  wrote:

> On V3.9.2 I was having package dependency problems with graph generation
> (pillow?), and thought I'd move to the new Py3 version.  For reference on
> 3.9.2…
>
> File "/usr/lib64/python2.7/site-packages/PIL/ImageDraw.py", line 82, in
> __init__
>
>   TypeError: function takes exactly 1 argument (2 given)
>
>
>
> I manually zapped all files I could find from 3.9.2 (save 
> /etc/weewx/weewx.conf),
> and am following these instructions.  I'm on Centos 7.8, and did the
> now-supported Python3.6.2 install (yum install -y python3), which sits
> alongside the Python 2.7.5 system install.  (see
> https://www.liquidweb.com/kb/how-to-install-python-3-on-centos-7/)
>
>
>
> The instructions on page http://weewx.com/docs/redhat.htm could use a
> touch in the context of Py3 on Centos 7.7+.
>
>
>
> For Redhat 7 with Python:
>
> sudo pip3 install pyserial pyusb Cheetah3 Pillow
>
>
> For Redhat 7 with Python2 *or *Python3:
>
> curl -s http://weewx.com/yum/weewx-el7.repo | sudo tee
> /etc/yum.repos.d/weewx.repo
>
>
>
> For whatever reason, my installation landed at /usr/share/weewx. I don't
> have a weewx user. I also use a systemd weewx.service file, rather than the
> rc/init.d startup.
>
> All is well.
>
> --
> 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/9513fb37-acac-4c72-814d-253f8dfdd543%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/CAPq0zEA7eESj5VDg2jZOfMCQA_fZQACkrRPOdi_9QcwDus_jtw%40mail.gmail.com.


[weewx-user] Re: Multiple stations on one host

2020-05-13 Thread Gert Andersen
Hi
Is this script still valid using Weewx 4?

Basically , I want to have 3 WeeWx instances pointing to 3 different 
domains on 1 computer, each domain with different configuration. All 3 
instances should read from the same mqtt subscription port and using 
Interceptor. Can all 3 Interceptor extensions listen to the same port or 
must Interceptor  listen to a unique ports, say 8001, 8002 and 8003.

I'll be using Belchertown and mqtt for all 3 domains. More or less the same 
question here with  Mosquitto. Can I use the  same ports(1883 for mqtt and 
9001 for sockets) for all domains or should I setup different ports for 
each domain.

Thanks
Gert

On Friday, January 6, 2017 at 2:17:16 AM UTC+1, mwall wrote:
>
> On Thursday, January 5, 2017 at 7:36:48 PM UTC-5, tomnykds wrote:
>>
>> Best I can tell, you can run only one weather station per weewx process 
>> instance, but is there any reason multiple instances can't be run on the 
>> same host from per-station directories (installs and configs of weewx)?  To 
>> further complicate things, can all the archive data be hosted on a single 
>> MySQL process as long at the database names are unique?
>>
>
> chris,
>
> just to be clear: you can run any number of weewx instances from a single 
> weewx installation on a single computer.  each instance must have its own 
> config file, database, and reports directory (if the instance emits any 
> html/text/images).
>
> no need to modify the weewx-multi init script - just put the list of 
> instance names in /etc/default/weewx-multi
>
> m
>

-- 
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/9e04f15d-1811-439a-b192-67fefbb0ab4c%40googlegroups.com.


[weewx-user] niculskin - Problems with Backgroundcolor in chronicle

2020-05-13 Thread Michael
Hello,

I'm looking at the skin right now: niculskin. But in my opinion the 
chronicle is not displayed correctly (see attached Hardcopies). The first 
value of a group is always highlighted, but all other values have the 
standard grey background. Unfortunately I can't find the cause. Does anyone 
have a good tip for me where I could look up.
Thanks a lot

Michael


-- 
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/707fe775-ef4d-433f-9c91-be4d940b33ef%40googlegroups.com.


[weewx-user] Re: Interceptor 0.40 "skipping rain measurement"

2020-05-13 Thread Wifi75


> hello, I have some problem:
>

Weewx[11635] INFO user.interceptor: using 'totalrainin' for rain_total
May 13 09:41:37 ubuntu-server python2[11635]: weewx[11635] INFO user.
interceptor: skipping rain measurement of 0.63: no last rain

I have GW1000 and WS69e station

I don't understand how I can fix this problem. 

-- 
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/7872337f-ffc3-493b-9522-f546df5aba2b%40googlegroups.com.


[weewx-user] Re: interceptor packet

2020-05-13 Thread n yj


On Saturday, March 21, 2020 at 2:05:25 AM UTC+8, mwall wrote:
>
> please try the attached interceptor 0.54b
>

managed to get my console replaced, running v1.4.9 EasyWeather on WSView. 
0.54b did the trick and its now reading wu-protocol correctly. i was 
playing around with 0.53 with an ecowitt protocol and it seemed to work as 
well...

but this time, i'm receiving repeated timestamps from raw data. its 
probably not a software side issue, but is it possible to prefer to use 
computer timestamps instead?

-- 
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/9c5423e6-9bfe-4675-b19c-9695742f9171%40googlegroups.com.


[weewx-user] Re: weewx output plugin/extension for WXSIM weather simulator?

2020-05-13 Thread Ville Helander
Hi Christian!

Did you get anythink working after this? 
Is there way to enhance the crt extension to create monthly files also?
Or is weewx-wd better option?

-Ville-


perjantai 4. tammikuuta 2019 16.33.00 UTC+2 Christian Peters kirjoitti:
>
> Hm...
>
> yesthere is the 'crt' extension which emitts a cumulus style file, but 
> not a monthly report but a realtime.txt.
>
> Am Freitag, 4. Januar 2019 14:14:00 UTC+1 schrieb pmcg...@gmail.com:
>>
>> The Cumulus Wiki shows the format of their monthly log files, if you 
>> generated a similar report it could work.
>>
>> https://cumuluswiki.wxforum.net/a/Monthly_log_files
>>
>>
>>

-- 
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/ed0f714b-82a1-4d26-b6e6-6752e6f9d007%40googlegroups.com.


Re: [weewx-user] Re: weewx-wh23xx - Weewx breaks starting/running after upgrade from 3.9.2 to 4.0

2020-05-13 Thread Bogdan


среда, 13 мая 2020 г., 8:54:36 UTC+2 пользователь Bogdan написал:
>
>
>
> среда, 13 мая 2020 г., 7:16:17 UTC+2 пользователь Günther Wrana написал:
>>
>> Hello I also use the driver and just wanted to ask before I update the 
>> version whether the driver also works with version 4?
>> Because I read here that there is a problem.
>>
>> Thanks Günther
>>
>> Hallo ich benutze den Treiber auch und wollte nur nachfragen bevor ich 
>> die Version update ob der Treiber bei der Version 4 auch funktioniert?
>> Weil ich hier gelesen habe das es Problem gibt.
>>
>> Danke Günther
>>
>
The original driver will not work.  

-- 
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/e7848118-7f37-4767-ba28-02c51aaf9eeb%40googlegroups.com.


Re: [weewx-user] Re: weewx-wh23xx - Weewx breaks starting/running after upgrade from 3.9.2 to 4.0

2020-05-13 Thread Bogdan


среда, 13 мая 2020 г., 7:16:17 UTC+2 пользователь Günther Wrana написал:
>
> Hello I also use the driver and just wanted to ask before I update the 
> version whether the driver also works with version 4?
> Because I read here that there is a problem.
>
> Thanks Günther
>
> Hallo ich benutze den Treiber auch und wollte nur nachfragen bevor ich die 
> Version update ob der Treiber bei der Version 4 auch funktioniert?
> Weil ich hier gelesen habe das es Problem gibt.
>
> Danke Günther
>

-- 
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/aaa4173e-dfe1-41f1-9533-fde70c0b7557%40googlegroups.com.
<>


Re: [weewx-user] Re: weewx-wh23xx - Weewx breaks starting/running after upgrade from 3.9.2 to 4.0

2020-05-13 Thread Bogdan


среда, 13 мая 2020 г., 7:16:17 UTC+2 пользователь Günther Wrana написал:
>
> Hello I also use the driver and just wanted to ask before I update the 
> version whether the driver also works with version 4?
> Because I read here that there is a problem.
>
> Thanks Günther
>
> Hallo ich benutze den Treiber auch und wollte nur nachfragen bevor ich die 
> Version update ob der Treiber bei der Version 4 auch funktioniert?
> Weil ich hier gelesen habe das es Problem gibt.
>
> Danke Günther
>


Generally the driver is working on weewx 4. It is only made two small 
changing in it. 

First, it is fixed import of 'log_traceback':
from weeutil.weeutil import timestamp_to_string
from weeutil.log import log_traceback

Second, is for prevent spam to syslog, simply stubed debug log procedure:
def logdbg(msg):
   # logmsg(syslog.LOG_DEBUG, msg)
pass

With that two changing the driver for me is works normally.
Seems it is possible to treat it as a temporarily solution. 

-- 
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/26f1030c-1313-4ba4-9add-117055b6f278%40googlegroups.com.