Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-17 Thread salinois

hi,

so, now is good, I tried an other time with the master.zip

an error in the file weewx.conf maybe !!!

thanks for your help, Arend

bye

Patrick

Le 16/01/2021 à 21:11, Arend a écrit :

If this is your website:

http://jurassikpat.ddns.net/weewx/belchertown/ 



Then you don't have installed the skin version that a gave the link to.

Op zaterdag 16 januari 2021 om 20:39:58 UTC+1 schreef sali...@gmail.com:

Hi

I used already the master, "weewx-belchertown-master.zip", but
there is more errors before !!!

bye

patrick

Le 16/01/2021 à 19:31, Arend a écrit :

Thank you Vince for pointing this out.

He needs the unreleased master:
https://github.com/poblabs/weewx-belchertown/archive/master.zip


Arend

Op zaterdag 16 januari 2021 om 19:20:56 UTC+1 schreef vince:

On Saturday, January 16, 2021 at 9:59:45 AM UTC-8 Arend wrote:

That belchertown.py file is an old 1.2 version. The
problem right now is that there are multiple Belchertown
versions out there which all bear the version number 1.2.
This is because at the moment changes are all merged into
the Belchertown 1.2 master without changes to the version
numbers.


Um - not quite.   There is no such thing as 'Belchertown
1.2 master'.   There is the released v1.2 and there is a
rolling  'unreleased' master of whatever might come next.

A quick look says that there have been 137 commits to master
after 1.2 was released in September, so if you simply run off
a git clone of master there is some risk until Pat releases a
new tested version.  You can get the 'released' versions from
https://github.com/poblabs/weewx-belchertown/releases



-- 
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+...@googlegroups.com.
To view this discussion on the web visit

https://groups.google.com/d/msgid/weewx-user/95d5d647-c8d2-427f-9484-f7908843d877n%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/9a02a429-8a71-4f95-af7a-6be4e08dbbb5n%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/cca01e7d-d79c-ddcd-6a92-5bf42541d741%40gmail.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-17 Thread salinois

hi again,

so, now I try your link on an other RPi and I have errors:

Jan 17 13:54:17 raspberrypi weewx[2134] ERROR weewx.reportengine: Caught 
unrecoverable exception in generator 
'weewx.cheetahgenerator.CheetahGenerator'
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   'aqi'
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   Traceback (most recent call last):
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:     File 
"/usr/share/weewx/user/belchertown.py", line 1074, in get_extension_list
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   aqi = 
data['aqi'][0]['response'][0]['periods'][0]['aqi']
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   KeyError: 'aqi'
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine: 
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   During handling of the above 
exception, another exception occurred:
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine: 
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   Traceback (most recent call last):
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:     File 
"/usr/share/weewx/weewx/reportengine.py", line 196, in run
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   obj.start()
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:     File 
"/usr/share/weewx/weewx/reportengine.py", line 281, in start
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   self.run()
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:     File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 149, in run
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   ngen = 
self.generate(gen_dict[section_name], self.gen_ts)
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:     File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 219, in generate
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   ngen += 
self.generate(section[subsection], gen_ts)
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:     File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 219, in generate
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   ngen += 
self.generate(section[subsection], gen_ts)
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:     File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 308, in generate
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   default_binding)
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:     File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 379, in _getSearchList
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   searchList += 
obj.get_extension_list(timespan, db_lookup)
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:     File 
"/usr/share/weewx/user/belchertown.py", line 1079, in get_extension_list
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   logerr( "Error getting AQI from 
Aeris weather. The error was:\n%s\nThe response from the Aeris AQI 
server was:\n%s\nThe URL being used is:\n%s" % (error, data['aqi'], 
aqi_url))
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   KeyError: 'aqi'
Jan 17 13:54:17 raspberrypi weewx[2134] ERROR 
weewx.reportengine:   Generator terminated



Patrick

Le 16/01/2021 à 21:11, Arend a écrit :

If this is your website:

http://jurassikpat.ddns.net/weewx/belchertown/ 



Then you don't have installed the skin version that a gave the link to.

Op zaterdag 16 januari 2021 om 20:39:58 UTC+1 schreef sali...@gmail.com:

Hi

I used already the master, "weewx-belchertown-master.zip", but
there is more errors before !!!

bye

patrick

Le 16/01/2021 à 19:31, Arend a écrit :

Thank you Vince for pointing this out.

He needs the unreleased master:
https://github.com/poblabs/weewx-belchertown/archive/master.zip


Arend

Op zaterdag 16 januari 2021 om 19:20:56 UTC+1 schreef vince:

On Saturday, January 16, 2021 at 9:59:45 AM UTC-8 Arend wrote:

That belchertown.py file is an old 1.2 version. The
problem right now is that there are multiple Belchertown
versions out there which all bear the version number 1.2.
This is because at the moment changes are all merged into
the Belchertown 1.2 

Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-17 Thread salinois

hi,

as I told you in my mail of 01/16, I have already tried this version, 
but it crashes weewx and I have lots of errors that I did not have 
before !!!


weird

Patrick


Le 16/01/2021 à 21:11, Arend a écrit :

If this is your website:

http://jurassikpat.ddns.net/weewx/belchertown/ 



Then you don't have installed the skin version that a gave the link to.

Op zaterdag 16 januari 2021 om 20:39:58 UTC+1 schreef sali...@gmail.com:

Hi

I used already the master, "weewx-belchertown-master.zip", but
there is more errors before !!!

bye

patrick

Le 16/01/2021 à 19:31, Arend a écrit :

Thank you Vince for pointing this out.

He needs the unreleased master:
https://github.com/poblabs/weewx-belchertown/archive/master.zip


Arend

Op zaterdag 16 januari 2021 om 19:20:56 UTC+1 schreef vince:

On Saturday, January 16, 2021 at 9:59:45 AM UTC-8 Arend wrote:

That belchertown.py file is an old 1.2 version. The
problem right now is that there are multiple Belchertown
versions out there which all bear the version number 1.2.
This is because at the moment changes are all merged into
the Belchertown 1.2 master without changes to the version
numbers.


Um - not quite.   There is no such thing as 'Belchertown
1.2 master'.   There is the released v1.2 and there is a
rolling  'unreleased' master of whatever might come next.

A quick look says that there have been 137 commits to master
after 1.2 was released in September, so if you simply run off
a git clone of master there is some risk until Pat releases a
new tested version.  You can get the 'released' versions from
https://github.com/poblabs/weewx-belchertown/releases



-- 
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+...@googlegroups.com.
To view this discussion on the web visit

https://groups.google.com/d/msgid/weewx-user/95d5d647-c8d2-427f-9484-f7908843d877n%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/9a02a429-8a71-4f95-af7a-6be4e08dbbb5n%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/a9fe9822-5a6b-3cca-b6a8-b3422ac6373d%40gmail.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-16 Thread Arend
If this is your website:

http://jurassikpat.ddns.net/weewx/belchertown/

Then you don't have installed the skin version that a gave the link to.

Op zaterdag 16 januari 2021 om 20:39:58 UTC+1 schreef sali...@gmail.com:

> Hi
>
> I used already the master, "weewx-belchertown-master.zip", but there is 
> more errors before !!!
>
> bye
>
> patrick
> Le 16/01/2021 à 19:31, Arend a écrit :
>
> Thank you Vince for pointing this out. 
>
> He needs the unreleased master: 
> https://github.com/poblabs/weewx-belchertown/archive/master.zip
>
> Arend
>
> Op zaterdag 16 januari 2021 om 19:20:56 UTC+1 schreef vince:
>
>> On Saturday, January 16, 2021 at 9:59:45 AM UTC-8 Arend wrote:
>>
>>> That belchertown.py file is an old 1.2 version. The problem right now is 
>>> that there are multiple Belchertown versions out there which all bear the 
>>> version number 1.2. This is because at the moment changes are all merged 
>>> into the Belchertown 1.2 master without changes to the version numbers.
>>
>>
>> Um - not quite.   There is no such thing as 'Belchertown 1.2 master'. 
>>   There is the released v1.2 and there is a rolling  'unreleased' master of 
>> whatever might come next.
>>
>> A quick look says that there have been 137 commits to master after 1.2 
>> was released in September, so if you simply run off a git clone of master 
>> there is some risk until Pat releases a new tested version.  You can get 
>> the 'released' versions from 
>> https://github.com/poblabs/weewx-belchertown/releases
>>
>>
>> -- 
> 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+...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/95d5d647-c8d2-427f-9484-f7908843d877n%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/9a02a429-8a71-4f95-af7a-6be4e08dbbb5n%40googlegroups.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-16 Thread salinois

Hi

I used already the master, "weewx-belchertown-master.zip", but there is 
more errors before !!!


bye

patrick

Le 16/01/2021 à 19:31, Arend a écrit :

Thank you Vince for pointing this out.

He needs the unreleased master: 
https://github.com/poblabs/weewx-belchertown/archive/master.zip 



Arend

Op zaterdag 16 januari 2021 om 19:20:56 UTC+1 schreef vince:

On Saturday, January 16, 2021 at 9:59:45 AM UTC-8 Arend wrote:

That belchertown.py file is an old 1.2 version. The problem
right now is that there are multiple Belchertown versions out
there which all bear the version number 1.2. This is because
at the moment changes are all merged into the Belchertown 1.2
master without changes to the version numbers.


Um - not quite.   There is no such thing as 'Belchertown 1.2
master'.   There is the released v1.2 and there is a rolling
 'unreleased' master of whatever might come next.

A quick look says that there have been 137 commits to master after
1.2 was released in September, so if you simply run off a git
clone of master there is some risk until Pat releases a new tested
version.  You can get the 'released' versions from
https://github.com/poblabs/weewx-belchertown/releases



--
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/95d5d647-c8d2-427f-9484-f7908843d877n%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/d771fb20-e6c2-2043-2fb6-ea35791212c4%40gmail.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-16 Thread Arend
Thank you Vince for pointing this out.

He needs the unreleased master: 
https://github.com/poblabs/weewx-belchertown/archive/master.zip

Arend

Op zaterdag 16 januari 2021 om 19:20:56 UTC+1 schreef vince:

> On Saturday, January 16, 2021 at 9:59:45 AM UTC-8 Arend wrote:
>
>> That belchertown.py file is an old 1.2 version. The problem right now is 
>> that there are multiple Belchertown versions out there which all bear the 
>> version number 1.2. This is because at the moment changes are all merged 
>> into the Belchertown 1.2 master without changes to the version numbers.
>
>
> Um - not quite.   There is no such thing as 'Belchertown 1.2 master'. 
>   There is the released v1.2 and there is a rolling  'unreleased' master of 
> whatever might come next.
>
> A quick look says that there have been 137 commits to master after 1.2 was 
> released in September, so if you simply run off a git clone of master there 
> is some risk until Pat releases a new tested version.  You can get the 
> 'released' versions from 
> https://github.com/poblabs/weewx-belchertown/releases
>
>
>

-- 
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/95d5d647-c8d2-427f-9484-f7908843d877n%40googlegroups.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-16 Thread vince
On Saturday, January 16, 2021 at 9:59:45 AM UTC-8 Arend wrote:

> That belchertown.py file is an old 1.2 version. The problem right now is 
> that there are multiple Belchertown versions out there which all bear the 
> version number 1.2. This is because at the moment changes are all merged 
> into the Belchertown 1.2 master without changes to the version numbers.


Um - not quite.   There is no such thing as 'Belchertown 1.2 master'.   
There is the released v1.2 and there is a rolling  'unreleased' master of 
whatever might come next.

A quick look says that there have been 137 commits to master after 1.2 was 
released in September, so if you simply run off a git clone of master there 
is some risk until Pat releases a new tested version.  You can get the 
'released' versions 
from https://github.com/poblabs/weewx-belchertown/releases


-- 
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/65f33e9c-ec17-47b6-a196-d52ea0a2fc1fn%40googlegroups.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-16 Thread Arend
That belchertown.py file is an old 1.2 version. The problem right now is 
that there are multiple Belchertown versions out there which all bear the 
version number 1.2. This is because at the moment changes are all merged 
into the Belchertown 1.2 master without changes to the version numbers.

My advice would be to upgrade your skin from the Belchertown repo with the 
latest "1.2". That way you are sure your skin will get updated with many 
new features and fixes including the earthquakedistance unit fix. If you 
choose to do this, make sure you backup your current skin.conf and 
graphs,conf files before your upgrade.

Op zaterdag 16 januari 2021 om 18:30:52 UTC+1 schreef sali...@gmail.com:

> I am come back with my origin version " release 1.2 of skin" , that works 
> well; but I have always the same error with eart quake.
>
> I join my belchertown.py file.
>
> thanks
>
> Patrick
> Le 16/01/2021 à 17:16, salinois a écrit :
>
> hi again me,
>
>  I found some errors from me but now I have others errors:
>
> Jan 16 17:10:29 raspberrypi weewx[18631] INFO user.belchertown: New 
> forecast file downloaded to 
> /var/www/html/weewx/belchertown/json/forecast.json
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: Caught 
> unrecoverable exception in generator 
> 'weewx.cheetahgenerator.CheetahGenerator'
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
>   'CheetahGenerator' object has no attribute 'group_unit_dict'
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
>   Traceback (most recent call last):
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
> File "/usr/share/weewx/weewx/reportengine.py", line 196, in run
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
>   obj.start()
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
> File "/usr/share/weewx/weewx/reportengine.py", line 281, in start
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
>   self.run()
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 149, in run
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
>   ngen = self.generate(gen_dict[section_name], self.gen_ts)
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 219, in 
> generate
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
>   ngen += self.generate(section[subsection], gen_ts)
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 219, in 
> generate
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
>   ngen += self.generate(section[subsection], gen_ts)
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 308, in 
> generate
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
>   default_binding)
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 379, in 
> _getSearchList
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
>   searchList += obj.get_extension_list(timespan, db_lookup)
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
> File "/usr/share/weewx/user/belchertown.py", line 1059, in 
> get_extension_list
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
>   distance_unit = self.generator.group_unit_dict["group_distance"]
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
>   AttributeError: 'CheetahGenerator' object has no attribute 
> 'group_unit_dict'
> Jan 16 17:10:29 raspberrypi weewx[18631] ERROR weewx.reportengine: 
>   Generator terminated
>
> I put for you my file "belchertown.py"
>
>
> Le 16/01/2021 à 17:01, salinois a écrit :
>
> hi, Arend,
>
> I am with skin belchertown 1.2.
>
> I done this modifications inside belchertown.py
>
> [
>
> *Additional context*
>
> Fixes:
>
> Changed in belchertown.py:
>
> distance_unit = converter.group_unit_dict["group_distance"]
>
> into
>
> distance_unit = self.generator.converter.group_unit_dict["group_distance"]
>
> And:
>
> eqdistance = eq_distance_round % eqdistance_bearing[0]
>
> into
>
> eqdistance = locale.format("%g", float(eq_distance_round % 
> eqdistance_bearing[0]) )
>
> And:
>
> eqmag = eqdata["features"][0]["properties"]["mag"]
>
> into
>
> eqmag = locale.format("%g", float(eqdata["features"][0]["properties"]["mag"]) 
> )
>
> And:
>
> eqmag = 

Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-16 Thread salinois

hi, Arend,

I am with skin belchertown 1.2.

I done this modifications inside belchertown.py

[

*Additional context*

Fixes:

Changed in belchertown.py:

|distance_unit = converter.group_unit_dict["group_distance"] into 
distance_unit = self.generator.converter.group_unit_dict["group_distance"] |


And:

|eqdistance = eq_distance_round % eqdistance_bearing[0] into eqdistance 
= locale.format("%g", float(eq_distance_round % eqdistance_bearing[0]) ) |


And:

|eqmag = eqdata["features"][0]["properties"]["mag"] into eqmag = 
locale.format("%g", float(eqdata["features"][0]["properties"]["mag"]) ) |


And:

|eqmag = round(eqdata["features"][0]["properties"]["magnitude"],1) into 
eqmag = locale.format("%g", 
float(round(eqdata["features"][0]["properties"]["magnitude"],1)) ) |


After applying these changes:]

but I have some errors in logs:

Jan 16 16:55:21 raspberrypi weewx[17349] ERROR weewx.reportengine: 
Unable to instantiate generator 'user.belchert own.HighchartsJsonGenerator'
Jan 16 16:55:21 raspberrypi weewx[17349] ERROR 
weewx.reportengine:   invalid syntax 
(belchertown.py,    line 1136)
Jan 16 16:55:21 raspberrypi weewx[17349] ERROR 
weewx.reportengine:   Traceback (most recent call 
last   ):
Jan 16 16:55:21 raspberrypi weewx[17349] ERROR 
weewx.reportengine:     File "/usr/share/weewx/weewx/r 
eportengine.py", line 179, in run
Jan 16 16:55:21 raspberrypi weewx[17349] ERROR 
weewx.reportengine:   obj = weeutil.weeutil.get_ob 
ject(generator)(
Jan 16 16:55:21 raspberrypi weewx[17349] ERROR 
weewx.reportengine:     File "/usr/share/weewx/weeutil 
/weeutil.py", line 1093, in get_object
Jan 16 16:55:21 raspberrypi weewx[17349] ERROR 
weewx.reportengine:   mod = __import__(module)
Jan 16 16:55:21 raspberrypi weewx[17349] ERROR 
weewx.reportengine:     File "/usr/share/weewx/user/be 
lchertown.py", line 1136
Jan 16 16:55:21 raspberrypi weewx[17349] ERROR 
weewx.reportengine:   elif self.generator.skin_dic 
t['Extras']['earthquake_server'] == "GeoNet":
Jan 16 16:55:21 raspberrypi weewx[17349] ERROR 
weewx.reportengine:  ^
Jan 16 16:55:21 raspberrypi weewx[17349] ERROR 
weewx.reportengine:   SyntaxError: invalid syntax
Jan 16 16:55:21 raspberrypi weewx[17349] ERROR 
weewx.reportengine:   Generator ignored


Patrick

Le 16/01/2021 à 15:48, Arend a écrit :

Hi Patrick,

Can you upload the belchertown.py file you are currently using?

Regards, Arend

Op zaterdag 16 januari 2021 om 12:15:34 UTC+1 schreef sali...@gmail.com:

hello

I done that but it is always the same thing !!!

I don't understand before it was good

Patrick

Le 11/01/2021 à 04:00, Greg from Oz a écrit :

You just need to delete the earthquake.json file and it recreates
next cycle.

On Monday, 11 January 2021 at 13:55:46 UTC+11 pedal...@gmail.com
wrote:

Yeah, apparently I needed to wait for the next refresh. It is
functioning properly now.

Thanks for checking though.

On Sun, Jan 10, 2021, 1:56 PM Colin Larsen
 wrote:



I just looked at your site and the distance is in miles
as I would expect for the US. What part do you think is
buggy?

Colin

On Mon, 11 Jan 2021 at 03:48, John Mora
 wrote:

I am following these threads with interest as my
Belchertown "Earthquake" is working but not as I
desire it to work. The skin installed without a hitch
and is running but the Eathquake  distance is in km
instead of miles and I also tried to change the
earthquake_maxradiuskm setting from 1000 to 2000 and
the changes aren't being reflected in the output.

I've tried making changes to belchertown.py
(https://github.com/poblabs/weewx-belchertown/issues/422
)
and changing the skin.conf by setting the
belchertown_locale from auto to en_US.UTF-8 and doing
the locale-gen command to no avail.

I will continue to follow this thread hoping that
there is some final solution as to why the Earthquake
is "buggy". Thanks to all who post, you have been a
great help in trying to figure this anomaly out.

my site: http://weather.codetales.com





On Saturday, January 9, 2021 at 7:34:41 PM UTC-5 Greg
from Oz wrote:

Yes I did that to but it made no difference.

You can change the locale = (in the belchertown
skin.conf) to 

Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-16 Thread Arend
Hi Patrick,

Can you upload the belchertown.py file you are currently using?

Regards, Arend

Op zaterdag 16 januari 2021 om 12:15:34 UTC+1 schreef sali...@gmail.com:

> hello
>
> I done that but it is always the same thing !!!
>
> I don't understand before it was good
>
> Patrick
> Le 11/01/2021 à 04:00, Greg from Oz a écrit :
>
> You just need to delete the earthquake.json file and it recreates next 
> cycle.
>
> On Monday, 11 January 2021 at 13:55:46 UTC+11 pedal...@gmail.com wrote:
>
>> Yeah, apparently I needed to wait for the next refresh. It is functioning 
>> properly now. 
>>
>> Thanks for checking though. 
>>
>> On Sun, Jan 10, 2021, 1:56 PM Colin Larsen  wrote:
>>
>>>
>>>
>>> I just looked at your site and the distance is in miles as I would 
>>> expect for the US. What part do you think is buggy?
>>>
>>> Colin
>>>
>>> On Mon, 11 Jan 2021 at 03:48, John Mora  wrote:
>>>
 I am following these threads with interest as my Belchertown 
 "Earthquake" is working but not as I desire it to work. The skin installed 
 without a hitch and is running but the Eathquake  distance is in km 
 instead 
 of miles and I also tried to change the earthquake_maxradiuskm setting 
 from 
 1000 to 2000 and the changes aren't being reflected in the output.

 I've tried making changes to belchertown.py (
 https://github.com/poblabs/weewx-belchertown/issues/422) and changing 
 the skin.conf by setting the belchertown_locale from auto to en_US.UTF-8 
 and doing the locale-gen command to no avail.

 I will continue to follow this thread hoping that there is some final 
 solution as to why the Earthquake is "buggy". Thanks to all who post, you 
 have been a great help in trying to figure this anomaly out.

 my site: http://weather.codetales.com




 On Saturday, January 9, 2021 at 7:34:41 PM UTC-5 Greg from Oz wrote:

> Yes I did that to but it made no difference. 
>
> You can change the locale = (in the belchertown skin.conf) to 
> "*en_AU.UTF-8" 
> *and that works  but if you leave it as auto and do the regen then it 
> works as expected.
>
>
> On Sunday, 10 January 2021 at 10:12:38 UTC+11 colin@gmail.com 
> wrote:
>
>> My simple fix for this was to make sure that in weewx.conf (or 
>> skin.conf if you prefer) you have under the stanza
>>
>> [[belchertown]]
>> [[[units]]]
>> groups
>>
>> An entry that says 
>>
>> group_distance = km
>>
>>
>>
>> On Sun, 10 Jan 2021 at 11:12, Greg from Oz  wrote:
>>
>>> Run the command: locale 
>>>
>>> See if *LC_MEASUREMENT *is in your units
>>>
>>> If it is like this: *LC_MEASUREMENT="en_US.UTF-8" *the the 
>>> measurement units will be in US (miles)
>>>
>>> To regenerate all your locale settings run: *locale-gen*
>>>
>>> There is a lot of discussion here: 
>>> https://groups.google.com/g/weewx-user/c/BckKUHu2_DQ/m/30YJPrKkBwAJ
>>>
>>>
>>> On Sunday, 10 January 2021 at 06:48:26 UTC+11 sali...@gmail.com 
>>> wrote:
>>>
 hello,
 in which file, can I modify miles in kilometers.

 inside joint file

 thanks

 Patrick

 -- 
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/06af1676-3a27-4989-945d-af379f5b1647n%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+...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/544e2f70-aecc-4199-87bd-f8cd0940d371n%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+...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/CACjxfUt9vbjdz4AYF-hNQ2BSHGGcK22BfrGX0uTLuHxkZ43Q8A%40mail.gmail.com
>>>  
>>> 

Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-16 Thread salinois

hello

I done that but it is always the same thing !!!

I don't understand before it was good

Patrick

Le 11/01/2021 à 04:00, Greg from Oz a écrit :
You just need to delete the earthquake.json file and it recreates next 
cycle.


On Monday, 11 January 2021 at 13:55:46 UTC+11 pedal...@gmail.com wrote:

Yeah, apparently I needed to wait for the next refresh. It is
functioning properly now.

Thanks for checking though.

On Sun, Jan 10, 2021, 1:56 PM Colin Larsen 
wrote:



I just looked at your site and the distance is in miles as I
would expect for the US. What part do you think is buggy?

Colin

On Mon, 11 Jan 2021 at 03:48, John Mora 
wrote:

I am following these threads with interest as my
Belchertown "Earthquake" is working but not as I desire it
to work. The skin installed without a hitch and is running
but the Eathquake  distance is in km instead of miles and
I also tried to change the earthquake_maxradiuskm setting
from 1000 to 2000 and the changes aren't being reflected
in the output.

I've tried making changes to belchertown.py
(https://github.com/poblabs/weewx-belchertown/issues/422
)
and changing the skin.conf by setting the
belchertown_locale from auto to en_US.UTF-8 and doing the
locale-gen command to no avail.

I will continue to follow this thread hoping that there is
some final solution as to why the Earthquake is "buggy".
Thanks to all who post, you have been a great help in
trying to figure this anomaly out.

my site: http://weather.codetales.com





On Saturday, January 9, 2021 at 7:34:41 PM UTC-5 Greg from
Oz wrote:

Yes I did that to but it made no difference.

You can change the locale = (in the belchertown
skin.conf) to "*en_AU.UTF-8" *and that works  but if
you leave it as auto and do the regen then it works as
expected.


On Sunday, 10 January 2021 at 10:12:38 UTC+11
colin@gmail.com wrote:

My simple fix for this was to make sure that in
weewx.conf (or skin.conf if you prefer) you have
under the stanza

[[belchertown]]
[[[units]]]
groups

An entry that says

group_distance = km




On Sun, 10 Jan 2021 at 11:12, Greg from Oz
 wrote:

Run the command: locale

See if *LC_MEASUREMENT *is in your units

If it is like this:
*LC_MEASUREMENT="en_US.UTF-8" *the the
measurement units will be in US (miles)

To regenerate all your locale settings run:
*locale-gen*
*
*
There is a lot of discussion here:

https://groups.google.com/g/weewx-user/c/BckKUHu2_DQ/m/30YJPrKkBwAJ




On Sunday, 10 January 2021 at 06:48:26 UTC+11
sali...@gmail.com wrote:

hello,
in which file, can I modify miles in
kilometers.

inside joint file

thanks

Patrick

-- 
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+...@googlegroups.com.
To view this discussion on the web visit

https://groups.google.com/d/msgid/weewx-user/06af1676-3a27-4989-945d-af379f5b1647n%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+...@googlegroups.com.
To view this discussion on the web visit


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-10 Thread Greg from Oz
You just need to delete the earthquake.json file and it recreates next 
cycle.

On Monday, 11 January 2021 at 13:55:46 UTC+11 pedal...@gmail.com wrote:

> Yeah, apparently I needed to wait for the next refresh. It is functioning 
> properly now.
>
> Thanks for checking though. 
>
> On Sun, Jan 10, 2021, 1:56 PM Colin Larsen  wrote:
>
>>
>>
>> I just looked at your site and the distance is in miles as I would expect 
>> for the US. What part do you think is buggy?
>>
>> Colin
>>
>> On Mon, 11 Jan 2021 at 03:48, John Mora  wrote:
>>
>>> I am following these threads with interest as my Belchertown 
>>> "Earthquake" is working but not as I desire it to work. The skin installed 
>>> without a hitch and is running but the Eathquake  distance is in km instead 
>>> of miles and I also tried to change the earthquake_maxradiuskm setting from 
>>> 1000 to 2000 and the changes aren't being reflected in the output.
>>>
>>> I've tried making changes to belchertown.py (
>>> https://github.com/poblabs/weewx-belchertown/issues/422) and changing 
>>> the skin.conf by setting the belchertown_locale from auto to en_US.UTF-8 
>>> and doing the locale-gen command to no avail.
>>>
>>> I will continue to follow this thread hoping that there is some final 
>>> solution as to why the Earthquake is "buggy". Thanks to all who post, you 
>>> have been a great help in trying to figure this anomaly out.
>>>
>>> my site: http://weather.codetales.com
>>>
>>>
>>>
>>>
>>> On Saturday, January 9, 2021 at 7:34:41 PM UTC-5 Greg from Oz wrote:
>>>
 Yes I did that to but it made no difference.

 You can change the locale = (in the belchertown skin.conf) to 
 "*en_AU.UTF-8" 
 *and that works  but if you leave it as auto and do the regen then it 
 works as expected.


 On Sunday, 10 January 2021 at 10:12:38 UTC+11 colin@gmail.com 
 wrote:

> My simple fix for this was to make sure that in weewx.conf (or 
> skin.conf if you prefer) you have under the stanza
>
> [[belchertown]]
> [[[units]]]
> groups
>
> An entry that says 
>
> group_distance = km
>
>
>
> On Sun, 10 Jan 2021 at 11:12, Greg from Oz  wrote:
>
>> Run the command: locale
>>
>> See if *LC_MEASUREMENT *is in your units
>>
>> If it is like this: *LC_MEASUREMENT="en_US.UTF-8" *the the 
>> measurement units will be in US (miles)
>>
>> To regenerate all your locale settings run: *locale-gen*
>>
>> There is a lot of discussion here: 
>> https://groups.google.com/g/weewx-user/c/BckKUHu2_DQ/m/30YJPrKkBwAJ
>>
>>
>> On Sunday, 10 January 2021 at 06:48:26 UTC+11 sali...@gmail.com 
>> wrote:
>>
>>> hello,
>>> in which file, can I modify miles in kilometers.
>>>
>>> inside joint file
>>>
>>> thanks
>>>
>>> Patrick
>>>
>>> -- 
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/06af1676-3a27-4989-945d-af379f5b1647n%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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/544e2f70-aecc-4199-87bd-f8cd0940d371n%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+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/CACjxfUt9vbjdz4AYF-hNQ2BSHGGcK22BfrGX0uTLuHxkZ43Q8A%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/93a8daac-4b27-4105-a4f4-57e078313b2fn%40googlegroups.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-10 Thread Quad
Yeah, apparently I needed to wait for the next refresh. It is functioning
properly now.

Thanks for checking though.

On Sun, Jan 10, 2021, 1:56 PM Colin Larsen  wrote:

>
>
> I just looked at your site and the distance is in miles as I would expect
> for the US. What part do you think is buggy?
>
> Colin
>
> On Mon, 11 Jan 2021 at 03:48, John Mora  wrote:
>
>> I am following these threads with interest as my Belchertown "Earthquake"
>> is working but not as I desire it to work. The skin installed without a
>> hitch and is running but the Eathquake  distance is in km instead of miles
>> and I also tried to change the earthquake_maxradiuskm setting from 1000 to
>> 2000 and the changes aren't being reflected in the output.
>>
>> I've tried making changes to belchertown.py (
>> https://github.com/poblabs/weewx-belchertown/issues/422) and changing
>> the skin.conf by setting the belchertown_locale from auto to en_US.UTF-8
>> and doing the locale-gen command to no avail.
>>
>> I will continue to follow this thread hoping that there is some final
>> solution as to why the Earthquake is "buggy". Thanks to all who post, you
>> have been a great help in trying to figure this anomaly out.
>>
>> my site: http://weather.codetales.com
>>
>>
>>
>>
>> On Saturday, January 9, 2021 at 7:34:41 PM UTC-5 Greg from Oz wrote:
>>
>>> Yes I did that to but it made no difference.
>>>
>>> You can change the locale = (in the belchertown skin.conf) to "*en_AU.UTF-8"
>>> *and that works  but if you leave it as auto and do the regen then it
>>> works as expected.
>>>
>>>
>>> On Sunday, 10 January 2021 at 10:12:38 UTC+11 colin@gmail.com wrote:
>>>
 My simple fix for this was to make sure that in weewx.conf (or
 skin.conf if you prefer) you have under the stanza

 [[belchertown]]
 [[[units]]]
 groups

 An entry that says

 group_distance = km



 On Sun, 10 Jan 2021 at 11:12, Greg from Oz  wrote:

> Run the command: locale
>
> See if *LC_MEASUREMENT *is in your units
>
> If it is like this: *LC_MEASUREMENT="en_US.UTF-8" *the the
> measurement units will be in US (miles)
>
> To regenerate all your locale settings run: *locale-gen*
>
> There is a lot of discussion here:
> https://groups.google.com/g/weewx-user/c/BckKUHu2_DQ/m/30YJPrKkBwAJ
>
>
> On Sunday, 10 January 2021 at 06:48:26 UTC+11 sali...@gmail.com wrote:
>
>> hello,
>> in which file, can I modify miles in kilometers.
>>
>> inside joint file
>>
>> thanks
>>
>> Patrick
>>
>> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/06af1676-3a27-4989-945d-af379f5b1647n%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/544e2f70-aecc-4199-87bd-f8cd0940d371n%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/CACjxfUt9vbjdz4AYF-hNQ2BSHGGcK22BfrGX0uTLuHxkZ43Q8A%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/CAFwm8YBUy1gWZ1uGFUYzzG%2BOUnPdSsEa9ENT9wSp04cwegSHCw%40mail.gmail.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-10 Thread Greg from Oz
My site is here: https://weather.ubeaut.work/belchertown/
It shows km and km in the earthquake section.

On Monday, 11 January 2021 at 07:30:10 UTC+11 Greg from Oz wrote:

> Try deleting the earthquake.json file as the earthequake stuff gets 
> regenerated every 3 hours by default. So you might have to wait 3 hours 
> before noticing any changes.
>
> The json file will be recreated the next reporting run.
>
> The file is here: 
> /var/www/html//belchertown/json/earthquake.json
>
>
>
> On Monday, 11 January 2021 at 07:04:21 UTC+11 sali...@gmail.com wrote:
>
>> hello,
>>
>> I done your suggestion but it is always the samethings , earthquake in 
>> Miles.
>>
>> in my fil weewx.conf:
>>
>> [[[Extras]]]
>>
>> # General Site Defaults
>> belchertown_root_url = 
>> http://jurassikpat.ddns.net/weewx/belchertown
>> belchertown_locale = "auto"
>>
>>  Groups
>>
>> group_altitude = meter# Options are 'foot' or 'meter'
>> group_degree_day = degree_C_day# Options are 
>> 'degree_F_day'$
>> group_distance = km# Options are 'mile' or 'km'
>>
>> pi@raspberrypi:~ $ locale
>> LANG=fr_FR.UTF-8
>> LANGUAGE=fr_FR.UTF-8
>> LC_CTYPE="fr_FR.UTF-8"
>> LC_NUMERIC="fr_FR.UTF-8"
>> LC_TIME="fr_FR.UTF-8"
>> LC_COLLATE="fr_FR.UTF-8"
>> LC_MONETARY="fr_FR.UTF-8"
>> LC_MESSAGES="fr_FR.UTF-8"
>> LC_PAPER="fr_FR.UTF-8"
>> LC_NAME="fr_FR.UTF-8"
>> LC_ADDRESS="fr_FR.UTF-8"
>> LC_TELEPHONE="fr_FR.UTF-8"
>> LC_MEASUREMENT="fr_FR.UTF-8"
>> LC_IDENTIFICATION="fr_FR.UTF-8"
>> LC_ALL=fr_FR.UTF-8
>>
>> I don't understand
>>
>> patrick
>>
>>
>> Le 10/01/2021 à 01:34, Greg from Oz a écrit :
>>
>> Yes I did that to but it made no difference. 
>>
>> You can change the locale = (in the belchertown skin.conf) to "*en_AU.UTF-8" 
>> *and that works  but if you leave it as auto and do the regen then it 
>> works as expected.
>>
>>
>> On Sunday, 10 January 2021 at 10:12:38 UTC+11 colin@gmail.com wrote:
>>
>>> My simple fix for this was to make sure that in weewx.conf (or skin.conf 
>>> if you prefer) you have under the stanza
>>>
>>> [[belchertown]]
>>> [[[units]]]
>>> groups
>>>
>>> An entry that says 
>>>
>>> group_distance = km
>>>
>>>
>>>
>>> On Sun, 10 Jan 2021 at 11:12, Greg from Oz  wrote:
>>>
 Run the command: locale 

 See if *LC_MEASUREMENT *is in your units

 If it is like this: *LC_MEASUREMENT="en_US.UTF-8" *the the measurement 
 units will be in US (miles)

 To regenerate all your locale settings run: *locale-gen*

 There is a lot of discussion here: 
 https://groups.google.com/g/weewx-user/c/BckKUHu2_DQ/m/30YJPrKkBwAJ


 On Sunday, 10 January 2021 at 06:48:26 UTC+11 sali...@gmail.com wrote:

> hello,
> in which file, can I modify miles in kilometers.
>
> inside joint file
>
> thanks
>
> Patrick
>
> -- 
 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+...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/06af1676-3a27-4989-945d-af379f5b1647n%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+...@googlegroups.com.
>>
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/c6dcdfc7-8a99-423e-bc06-8a5fbde0df1fn%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/a8826cec-1bb6-4882-8b9a-62adcade879an%40googlegroups.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-10 Thread Greg from Oz
Try deleting the earthquake.json file as the earthequake stuff gets 
regenerated every 3 hours by default. So you might have to wait 3 hours 
before noticing any changes.

The json file will be recreated the next reporting run.

The file is here: 
/var/www/html//belchertown/json/earthquake.json



On Monday, 11 January 2021 at 07:04:21 UTC+11 sali...@gmail.com wrote:

> hello,
>
> I done your suggestion but it is always the samethings , earthquake in 
> Miles.
>
> in my fil weewx.conf:
>
> [[[Extras]]]
>
> # General Site Defaults
> belchertown_root_url = 
> http://jurassikpat.ddns.net/weewx/belchertown
> belchertown_locale = "auto"
>
>  Groups
>
> group_altitude = meter# Options are 'foot' or 'meter'
> group_degree_day = degree_C_day# Options are 
> 'degree_F_day'$
> group_distance = km# Options are 'mile' or 'km'
>
> pi@raspberrypi:~ $ locale
> LANG=fr_FR.UTF-8
> LANGUAGE=fr_FR.UTF-8
> LC_CTYPE="fr_FR.UTF-8"
> LC_NUMERIC="fr_FR.UTF-8"
> LC_TIME="fr_FR.UTF-8"
> LC_COLLATE="fr_FR.UTF-8"
> LC_MONETARY="fr_FR.UTF-8"
> LC_MESSAGES="fr_FR.UTF-8"
> LC_PAPER="fr_FR.UTF-8"
> LC_NAME="fr_FR.UTF-8"
> LC_ADDRESS="fr_FR.UTF-8"
> LC_TELEPHONE="fr_FR.UTF-8"
> LC_MEASUREMENT="fr_FR.UTF-8"
> LC_IDENTIFICATION="fr_FR.UTF-8"
> LC_ALL=fr_FR.UTF-8
>
> I don't understand
>
> patrick
>
>
> Le 10/01/2021 à 01:34, Greg from Oz a écrit :
>
> Yes I did that to but it made no difference. 
>
> You can change the locale = (in the belchertown skin.conf) to "*en_AU.UTF-8" 
> *and that works  but if you leave it as auto and do the regen then it 
> works as expected.
>
>
> On Sunday, 10 January 2021 at 10:12:38 UTC+11 colin@gmail.com wrote:
>
>> My simple fix for this was to make sure that in weewx.conf (or skin.conf 
>> if you prefer) you have under the stanza
>>
>> [[belchertown]]
>> [[[units]]]
>> groups
>>
>> An entry that says 
>>
>> group_distance = km
>>
>>
>>
>> On Sun, 10 Jan 2021 at 11:12, Greg from Oz  wrote:
>>
>>> Run the command: locale 
>>>
>>> See if *LC_MEASUREMENT *is in your units
>>>
>>> If it is like this: *LC_MEASUREMENT="en_US.UTF-8" *the the measurement 
>>> units will be in US (miles)
>>>
>>> To regenerate all your locale settings run: *locale-gen*
>>>
>>> There is a lot of discussion here: 
>>> https://groups.google.com/g/weewx-user/c/BckKUHu2_DQ/m/30YJPrKkBwAJ
>>>
>>>
>>> On Sunday, 10 January 2021 at 06:48:26 UTC+11 sali...@gmail.com wrote:
>>>
 hello,
 in which file, can I modify miles in kilometers.

 inside joint file

 thanks

 Patrick

 -- 
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/06af1676-3a27-4989-945d-af379f5b1647n%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+...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/c6dcdfc7-8a99-423e-bc06-8a5fbde0df1fn%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/e978f5c5-ee76-4cac-aba4-bc5c141d1ff3n%40googlegroups.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-10 Thread salinois

hello,

I done your suggestion but it is always the samethings , earthquake in 
Miles.


in my fil weewx.conf:

[[[Extras]]]

    # General Site Defaults
    belchertown_root_url = 
http://jurassikpat.ddns.net/weewx/belchertown

    belchertown_locale = "auto"

 Groups

    group_altitude = meter    # Options are 'foot' or 'meter'
    group_degree_day = degree_C_day    # Options are 
'degree_F_day'$

    group_distance = km    # Options are 'mile' or 'km'

pi@raspberrypi:~ $ locale
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=fr_FR.UTF-8

I don't understand

patrick


Le 10/01/2021 à 01:34, Greg from Oz a écrit :

Yes I did that to but it made no difference.

You can change the locale = (in the belchertown skin.conf) to 
"*en_AU.UTF-8" *and that works  but if you leave it as auto and do the 
regen then it works as expected.



On Sunday, 10 January 2021 at 10:12:38 UTC+11 colin@gmail.com wrote:

My simple fix for this was to make sure that in weewx.conf (or
skin.conf if you prefer) you have under the stanza

[[belchertown]]
[[[units]]]
groups

An entry that says

group_distance = km




On Sun, 10 Jan 2021 at 11:12, Greg from Oz  wrote:

Run the command: locale

See if *LC_MEASUREMENT *is in your units

If it is like this: *LC_MEASUREMENT="en_US.UTF-8" *the the
measurement units will be in US (miles)

To regenerate all your locale settings run: *locale-gen*
*
*
There is a lot of discussion here:
https://groups.google.com/g/weewx-user/c/BckKUHu2_DQ/m/30YJPrKkBwAJ



On Sunday, 10 January 2021 at 06:48:26 UTC+11
sali...@gmail.com wrote:

hello,
in which file, can I modify miles in kilometers.

inside joint file

thanks

Patrick

-- 
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+...@googlegroups.com.
To view this discussion on the web visit

https://groups.google.com/d/msgid/weewx-user/06af1676-3a27-4989-945d-af379f5b1647n%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/c6dcdfc7-8a99-423e-bc06-8a5fbde0df1fn%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/0ed4bd34-5b66-22d7-fc54-06a3e4b4810d%40gmail.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-10 Thread Colin Larsen
I just looked at your site and the distance is in miles as I would expect
for the US. What part do you think is buggy?

Colin

On Mon, 11 Jan 2021 at 03:48, John Mora  wrote:

> I am following these threads with interest as my Belchertown "Earthquake"
> is working but not as I desire it to work. The skin installed without a
> hitch and is running but the Eathquake  distance is in km instead of miles
> and I also tried to change the earthquake_maxradiuskm setting from 1000 to
> 2000 and the changes aren't being reflected in the output.
>
> I've tried making changes to belchertown.py (
> https://github.com/poblabs/weewx-belchertown/issues/422) and changing the
> skin.conf by setting the belchertown_locale from auto to en_US.UTF-8 and
> doing the locale-gen command to no avail.
>
> I will continue to follow this thread hoping that there is some final
> solution as to why the Earthquake is "buggy". Thanks to all who post, you
> have been a great help in trying to figure this anomaly out.
>
> my site: http://weather.codetales.com
>
>
>
>
> On Saturday, January 9, 2021 at 7:34:41 PM UTC-5 Greg from Oz wrote:
>
>> Yes I did that to but it made no difference.
>>
>> You can change the locale = (in the belchertown skin.conf) to "*en_AU.UTF-8"
>> *and that works  but if you leave it as auto and do the regen then it
>> works as expected.
>>
>>
>> On Sunday, 10 January 2021 at 10:12:38 UTC+11 colin@gmail.com wrote:
>>
>>> My simple fix for this was to make sure that in weewx.conf (or skin.conf
>>> if you prefer) you have under the stanza
>>>
>>> [[belchertown]]
>>> [[[units]]]
>>> groups
>>>
>>> An entry that says
>>>
>>> group_distance = km
>>>
>>>
>>>
>>> On Sun, 10 Jan 2021 at 11:12, Greg from Oz  wrote:
>>>
 Run the command: locale

 See if *LC_MEASUREMENT *is in your units

 If it is like this: *LC_MEASUREMENT="en_US.UTF-8" *the the measurement
 units will be in US (miles)

 To regenerate all your locale settings run: *locale-gen*

 There is a lot of discussion here:
 https://groups.google.com/g/weewx-user/c/BckKUHu2_DQ/m/30YJPrKkBwAJ


 On Sunday, 10 January 2021 at 06:48:26 UTC+11 sali...@gmail.com wrote:

> hello,
> in which file, can I modify miles in kilometers.
>
> inside joint file
>
> thanks
>
> Patrick
>
> --
 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+...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/weewx-user/06af1676-3a27-4989-945d-af379f5b1647n%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/544e2f70-aecc-4199-87bd-f8cd0940d371n%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/CACjxfUt9vbjdz4AYF-hNQ2BSHGGcK22BfrGX0uTLuHxkZ43Q8A%40mail.gmail.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-10 Thread John Mora
I am following these threads with interest as my Belchertown "Earthquake" 
is working but not as I desire it to work. The skin installed without a 
hitch and is running but the Eathquake  distance is in km instead of miles 
and I also tried to change the earthquake_maxradiuskm setting from 1000 to 
2000 and the changes aren't being reflected in the output.

I've tried making changes to belchertown.py 
(https://github.com/poblabs/weewx-belchertown/issues/422) and changing the 
skin.conf by setting the belchertown_locale from auto to en_US.UTF-8 and 
doing the locale-gen command to no avail.

I will continue to follow this thread hoping that there is some final 
solution as to why the Earthquake is "buggy". Thanks to all who post, you 
have been a great help in trying to figure this anomaly out.

my site: http://weather.codetales.com




On Saturday, January 9, 2021 at 7:34:41 PM UTC-5 Greg from Oz wrote:

> Yes I did that to but it made no difference.
>
> You can change the locale = (in the belchertown skin.conf) to "*en_AU.UTF-8" 
> *and that works  but if you leave it as auto and do the regen then it 
> works as expected.
>
>
> On Sunday, 10 January 2021 at 10:12:38 UTC+11 colin@gmail.com wrote:
>
>> My simple fix for this was to make sure that in weewx.conf (or skin.conf 
>> if you prefer) you have under the stanza
>>
>> [[belchertown]]
>> [[[units]]]
>> groups
>>
>> An entry that says 
>>
>> group_distance = km
>>
>>
>>
>> On Sun, 10 Jan 2021 at 11:12, Greg from Oz  wrote:
>>
>>> Run the command: locale
>>>
>>> See if *LC_MEASUREMENT *is in your units
>>>
>>> If it is like this: *LC_MEASUREMENT="en_US.UTF-8" *the the measurement 
>>> units will be in US (miles)
>>>
>>> To regenerate all your locale settings run: *locale-gen*
>>>
>>> There is a lot of discussion here: 
>>> https://groups.google.com/g/weewx-user/c/BckKUHu2_DQ/m/30YJPrKkBwAJ
>>>
>>>
>>> On Sunday, 10 January 2021 at 06:48:26 UTC+11 sali...@gmail.com wrote:
>>>
 hello,
 in which file, can I modify miles in kilometers.

 inside joint file

 thanks

 Patrick

 -- 
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/06af1676-3a27-4989-945d-af379f5b1647n%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/544e2f70-aecc-4199-87bd-f8cd0940d371n%40googlegroups.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-09 Thread Greg from Oz
Yes I did that to but it made no difference.

You can change the locale = (in the belchertown skin.conf) to "*en_AU.UTF-8" 
*and that works  but if you leave it as auto and do the regen then it works 
as expected.


On Sunday, 10 January 2021 at 10:12:38 UTC+11 colin@gmail.com wrote:

> My simple fix for this was to make sure that in weewx.conf (or skin.conf 
> if you prefer) you have under the stanza
>
> [[belchertown]]
> [[[units]]]
> groups
>
> An entry that says 
>
> group_distance = km
>
>
>
> On Sun, 10 Jan 2021 at 11:12, Greg from Oz  wrote:
>
>> Run the command: locale
>>
>> See if *LC_MEASUREMENT *is in your units
>>
>> If it is like this: *LC_MEASUREMENT="en_US.UTF-8" *the the measurement 
>> units will be in US (miles)
>>
>> To regenerate all your locale settings run: *locale-gen*
>>
>> There is a lot of discussion here: 
>> https://groups.google.com/g/weewx-user/c/BckKUHu2_DQ/m/30YJPrKkBwAJ
>>
>>
>> On Sunday, 10 January 2021 at 06:48:26 UTC+11 sali...@gmail.com wrote:
>>
>>> hello,
>>> in which file, can I modify miles in kilometers.
>>>
>>> inside joint file
>>>
>>> thanks
>>>
>>> Patrick
>>>
>>> -- 
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/06af1676-3a27-4989-945d-af379f5b1647n%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/c6dcdfc7-8a99-423e-bc06-8a5fbde0df1fn%40googlegroups.com.


Re: [weewx-user] Re: skin Belchertown " earth Quake"

2021-01-09 Thread Colin Larsen
My simple fix for this was to make sure that in weewx.conf (or skin.conf if
you prefer) you have under the stanza

[[belchertown]]
[[[units]]]
groups

An entry that says

group_distance = km



On Sun, 10 Jan 2021 at 11:12, Greg from Oz  wrote:

> Run the command: locale
>
> See if *LC_MEASUREMENT *is in your units
>
> If it is like this: *LC_MEASUREMENT="en_US.UTF-8" *the the measurement
> units will be in US (miles)
>
> To regenerate all your locale settings run: *locale-gen*
>
> There is a lot of discussion here:
> https://groups.google.com/g/weewx-user/c/BckKUHu2_DQ/m/30YJPrKkBwAJ
>
>
> On Sunday, 10 January 2021 at 06:48:26 UTC+11 sali...@gmail.com wrote:
>
>> hello,
>> in which file, can I modify miles in kilometers.
>>
>> inside joint file
>>
>> thanks
>>
>> Patrick
>>
>> --
> 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/06af1676-3a27-4989-945d-af379f5b1647n%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/CACjxfUvTFGcrSPDcw8-WLjdVH7qox%3D7ibaO_zvjVHM_-WmbKww%40mail.gmail.com.


[weewx-user] Re: skin Belchertown " earth Quake"

2021-01-09 Thread Greg from Oz
Run the command: locale

See if *LC_MEASUREMENT *is in your units

If it is like this: *LC_MEASUREMENT="en_US.UTF-8" *the the measurement 
units will be in US (miles)

To regenerate all your locale settings run: *locale-gen*

There is a lot of discussion 
here: https://groups.google.com/g/weewx-user/c/BckKUHu2_DQ/m/30YJPrKkBwAJ


On Sunday, 10 January 2021 at 06:48:26 UTC+11 sali...@gmail.com wrote:

> hello,
> in which file, can I modify miles in kilometers.
>
> inside joint file
>
> thanks
>
> Patrick
>
>

-- 
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/06af1676-3a27-4989-945d-af379f5b1647n%40googlegroups.com.