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
<colin....@gmail.com> 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
<pedal...@gmail.com> 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
<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
<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
<ubea...@gmail.com> 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
<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
<https://groups.google.com/d/msgid/weewx-user/06af1676-3a27-4989-945d-af379f5b1647n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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
<https://groups.google.com/d/msgid/weewx-user/544e2f70-aecc-4199-87bd-f8cd0940d371n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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
<https://groups.google.com/d/msgid/weewx-user/CACjxfUt9vbjdz4AYF-hNQ2BSHGGcK22BfrGX0uTLuHxkZ43Q8A%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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/93a8daac-4b27-4105-a4f4-57e078313b2fn%40googlegroups.com
<https://groups.google.com/d/msgid/weewx-user/93a8daac-4b27-4105-a4f4-57e078313b2fn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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/AWaR71Y3EDQ/unsubscribe
<https://groups.google.com/d/topic/weewx-user/AWaR71Y3EDQ/unsubscribe>.
To unsubscribe from this group and all its topics, send an email to
weewx-user+unsubscr...@googlegroups.com
<mailto:weewx-user+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/44709e60-29e1-4a60-adcf-21fdeeefebcan%40googlegroups.com
<https://groups.google.com/d/msgid/weewx-user/44709e60-29e1-4a60-adcf-21fdeeefebcan%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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/e250f38b-0064-8c8c-2e52-63cea74d1c09%40gmail.com.