Belchertown skin 0.9 now available

750 views
Skip to first unread message

Pat

unread,
Feb 28, 2019, 7:50:34 PM2/28/19
to weewx-user
I've just released Belchertown skin 0.9. You can read the updates and download it here: https://github.com/poblabs/weewx-belchertown/releases

A lot of work went into this release. I've learned a lot through feedback on the skin. 

This release fixes a major bug with the rain charts which were taking a very long time to generate. This release also brings a lot of updates to locale formats. 

There's 1 breaking change if you are upgrading. Please take special note to a few MQTT variable names which have changed to mqtt_websockets_. This is to reduce confusion and offer clarity on new user installations. 

Please let me know if you've upgraded and share your site. I'd love to see it out there!

Colin Larsen

unread,
Feb 28, 2019, 8:17:05 PM2/28/19
to weewx-user
Thanks Pat appreciate all the hard work you do. I'll upgrade either tonight or first thing tomorrow.

Cheers
Colin

--
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.
For more options, visit https://groups.google.com/d/optout.

rich T

unread,
Feb 28, 2019, 10:15:31 PM2/28/19
to weewx-user
Pat

Installed without any issues.

Rich

rich T

unread,
Feb 28, 2019, 10:49:26 PM2/28/19
to weewx-user
But I get an "TypeError: format() got an unexpected keyword argument 'None_string''  error.
log

Pat

unread,
Mar 1, 2019, 8:22:57 AM3/1/19
to weewx-user
I see the error and I think it's because you're not on weewx 3.9.1. I thought I backed that change out but I guess I didn't. 

Do you have plans to update to weewx 3.9.1? 

rich T

unread,
Mar 1, 2019, 8:33:13 AM3/1/19
to weewx-user
Yes planning to upgrade at later date.

Pat

unread,
Mar 1, 2019, 8:59:32 AM3/1/19
to weewx-user
Ok I'll work on putting together 0.9.1 for release. 

HoracioDos

unread,
Mar 1, 2019, 9:01:07 AM3/1/19
to weewx-user
Hello:
I've installed the version. Everything seems to be ok, but when I run "sudo wee_reports" I get the following and it used to work fine before.

Using configuration file /etc/weewx/weewx.conf
Generating for all time
/usr/lib/python2.7/dist-packages/Cheetah/Compiler.py:1559: UserWarning: You supplied an empty string for the source!
  warnings.warn("You supplied an empty string for the source!", )

I can't find any errors in weewx log.
Thanks in advance!

Pat

unread,
Mar 1, 2019, 9:21:51 AM3/1/19
to weewx-user
I've never seen this before. Can you paste a full debug and your config? 

Pat

unread,
Mar 1, 2019, 9:24:31 AM3/1/19
to weewx-user
Rich, try this update to see if it works for you? It does for me on weewx 3.8.2, but I'd rather someone else test it before pushing a release. 



Restart weewx and see how it goes. 


On Friday, March 1, 2019 at 8:33:13 AM UTC-5, rich T wrote:

rich T

unread,
Mar 1, 2019, 10:01:07 AM3/1/19
to weewx-user
Pat

This update works, I do not get any errors. Only item missing is the skin version number in the footer, which could be a configuration error on my side. 

How would you reload a webcam snapshot image, without reloading the whole page?

Thanks
Rich

Johannes Ebner

unread,
Mar 1, 2019, 10:21:20 AM3/1/19
to weewx-user
Hi,

I have updated my installation also just 5 minutes ago and all localization issues are gone. Looks very good!

Many thanks and Br,
Johannes

Johannes Ebner

unread,
Mar 1, 2019, 10:35:50 AM3/1/19
to weewx-user
Hi Pat,

I think I was to fast. 

I have the latest GA Version of weewx installed. I updated your skin and then I changed the "mqtt_...." to "mqtt_websockets_...".

I am getting now this error:

Mar  1 16:31:14 weewx weewx[3801]: Belchertown Extension: version 0.9
Mar  1 16:31:43 weewx weewx[3801]: cheetahgenerator: Generate failed with exception '<type 'exceptions.ValueError'>'
Mar  1 16:31:43 weewx weewx[3801]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Belchertown/index.html.tmpl
Mar  1 16:31:43 weewx weewx[3801]: cheetahgenerator: **** Reason: invalid literal for float(): 2,8
Mar  1 16:31:43 weewx weewx[3801]: ****  Traceback (most recent call last):
Mar  1 16:31:43 weewx weewx[3801]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
Mar  1 16:31:43 weewx weewx[3801]: ****      fd.write(str(compiled_template))
Mar  1 16:31:43 weewx weewx[3801]: ****    File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Mar  1 16:31:43 weewx weewx[3801]: ****      rc = getattr(self, mainMethName)()
Mar  1 16:31:43 weewx weewx[3801]: ****    File "_etc_weewx_skins_Belchertown_index_html_tmpl.py", line 1548, in respond
Mar  1 16:31:43 weewx weewx[3801]: ****  ValueError: invalid literal for float(): 2,8
Mar  1 16:31:48 weewx weewx[3801]: cheetahgenerator: Generate failed with exception '<type 'exceptions.ValueError'>'
Mar  1 16:31:48 weewx weewx[3801]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Belchertown/pi/index.html.tmpl
Mar  1 16:31:48 weewx weewx[3801]: cheetahgenerator: **** Reason: invalid literal for float(): 2,8
Mar  1 16:31:48 weewx weewx[3801]: ****  Traceback (most recent call last):
Mar  1 16:31:48 weewx weewx[3801]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
Mar  1 16:31:48 weewx weewx[3801]: ****      fd.write(str(compiled_template))
Mar  1 16:31:48 weewx weewx[3801]: ****    File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Mar  1 16:31:48 weewx weewx[3801]: ****      rc = getattr(self, mainMethName)()
Mar  1 16:31:48 weewx weewx[3801]: ****    File "_etc_weewx_skins_Belchertown_pi_index_html_tmpl.py", line 1199, in respond
Mar  1 16:31:48 weewx weewx[3801]: ****  ValueError: invalid literal for float(): 2,8
Mar  1 16:31:54 weewx weewx[3801]: cheetahgenerator: Generated 12 files for report StandardReport in 39.68 seconds





Am Freitag, 1. März 2019 01:50:34 UTC+1 schrieb Pat:

HoracioDos

unread,
Mar 1, 2019, 10:35:51 AM3/1/19
to weewx-user
Hello!
I've restarted weewx and I ran wee_reports

sudo systemctl restart weewx
sudo wee_reports

Using configuration file /etc/weewx/weewx.conf
Generating for all time
/usr/lib/python2.7/dist-packages/Cheetah/Compiler.py:1559: UserWarning: You supplied an empty string for the source!
  warnings.warn("You supplied an empty string for the source!", )

sudo journalctl -u weewx --since "5 minutes ago" > weewx_last5.log

Thanks!
skin.conf
weewx.conf
weewx_last5.log

HoracioDos

unread,
Mar 1, 2019, 10:40:39 AM3/1/19
to weewx-user
One more log..
weewx_cheetahgenerator.log

kutz...@gmail.com

unread,
Mar 1, 2019, 11:08:48 AM3/1/19
to weewx-user
The skin version is not in the footer. You should see the skin version by right clicking on any Belchertown page and selecting "View Page Source" (or equivalent for your browser). Then scroll to the bottom.

Phil

rich T

unread,
Mar 1, 2019, 11:58:35 AM3/1/19
to weewx-user
Thanks...jogged my memory...I added to the template. Now it displays.

HoracioDos

unread,
Mar 1, 2019, 1:51:40 PM3/1/19
to weewx-user
Hello!
I've made a rollback to version 8.2 and the message after running wee reports does not appear. Then I updated again to V9 and message is showed again. Now I'm sure I didn't make any mistake.
Thanks!

Colin Larsen

unread,
Mar 1, 2019, 3:31:03 PM3/1/19
to weewx-user
I may hold off updating just for a little bit :)

Scott Grayban

unread,
Mar 1, 2019, 4:25:30 PM3/1/19
to weewx-user
Ditto... I never upgrade until I see any bugs resolved first.

Pat

unread,
Mar 1, 2019, 5:03:38 PM3/1/19
to weewx-user
Colin I think you're running a beta already. So you're mostly there anyways :)

I've tested this skin on 3 locales and 3 timezones in languages I don't speak.

The cheetah generator error I'm clueless on.

The other ones help if people can send me their database file so I can try to replicate. Just send me a private message so we can coordinate

Colin Larsen

unread,
Mar 1, 2019, 5:10:52 PM3/1/19
to weewx-user
Actually you're quite right Pat, I was thinking the same thing after I sent the email. I'll bite the bullet and do the upgrade :)

I'll go back and read that MQTT bit though, I think that may be my only big change. Oh and I noticed something about the forecast. Does the way I comment that out still apply (as I use a local one instead, but still used the current conditions icon from it)?

Colin Larsen

unread,
Mar 1, 2019, 5:11:36 PM3/1/19
to weewx-user
Oh and I'm still on Weewx 3.8.2 so I might also need 0.9.1?

Pat

unread,
Mar 1, 2019, 5:24:58 PM3/1/19
to weewx-user
Yeah you'll need to do the forecast change.

Since you're on a 0.9 beta you don't need to upgrade. I think you have already the majority of the fixes.

Let me see if I can nail down these 2 or 3 issues and then think about upgrading.

HoracioDos

unread,
Mar 1, 2019, 6:22:12 PM3/1/19
to weewx-user
Hello Pat.
I fixed it automagically. I deleted weewx database just to try something and It worked.
Thanks!

Pat

unread,
Mar 1, 2019, 6:26:29 PM3/1/19
to weewx-user
That's good news. I wonder why it happened though to begin with.

kutz...@gmail.com

unread,
Mar 1, 2019, 7:11:16 PM3/1/19
to weewx-user
For what it is worth. I am running WeeWX 3.9.1 on my "production" instance (https://wx.kutzenco.com) and also on a separate lab instance. I upgraded both to the Belchertown 0.9 skin yesterday (2/28) using sudo wee_extension --install weewx-belchertown-0.9.tar.gz  after downloading the tarball. I had been running the beta of Belchertown previously.

I haven't had any issues so far (I am using MQTT and made the changes to the variable names in weewx.conf previously for the beta).

Phil

Colin Larsen

unread,
Mar 1, 2019, 9:32:18 PM3/1/19
to weewx-user
I'm guessing this is because I'm on Weewx 3.8.1 still?

Mar  2 15:30:40 raspberrypi weewx[11033]: ****  Traceback (most recent call last):

Mar  2 15:30:40 raspberrypi weewx[11033]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate

Mar  2 15:30:40 raspberrypi weewx[11033]: ****      print >> _file, compiled_template

Mar  2 15:30:40 raspberrypi weewx[11033]: ****    File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__

Mar  2 15:30:40 raspberrypi weewx[11033]: ****      rc = getattr(self, mainMethName)()

Mar  2 15:30:40 raspberrypi weewx[11033]: ****    File "_etc_weewx_skins_Belchertown_index_html_tmpl.py", line 1531, in respond

Mar  2 15:30:40 raspberrypi weewx[11033]: ****    File "_etc_weewx_skins_Belchertown_index_html_tmpl.py", line 287, in __errorCatcher32

Mar  2 15:30:40 raspberrypi weewx[11033]: ****    File "<string>", line 1, in <module>

Mar  2 15:30:40 raspberrypi weewx[11033]: ****  TypeError: format() got an unexpected keyword argument 'None_string'

Mar  2 15:30:41 raspberrypi weewx[11033]: cheetahgenerator: Generate failed with exception '<type 'exceptions.TypeError'>'

Mar  2 15:30:41 raspberrypi weewx[11033]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Belchertown/pi/index.html.tmpl

Mar  2 15:30:41 raspberrypi weewx[11033]: cheetahgenerator: **** Reason: format() got an unexpected keyword argument 'None_string'

Mar  2 15:30:41 raspberrypi weewx[11033]: ****  Traceback (most recent call last):

Mar  2 15:30:41 raspberrypi weewx[11033]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate

Mar  2 15:30:41 raspberrypi weewx[11033]: ****      print >> _file, compiled_template

Mar  2 15:30:41 raspberrypi weewx[11033]: ****    File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__

Mar  2 15:30:41 raspberrypi weewx[11033]: ****      rc = getattr(self, mainMethName)()

Mar  2 15:30:41 raspberrypi weewx[11033]: ****    File "_etc_weewx_skins_Belchertown_pi_index_html_tmpl.py", line 1191, in respond

Mar  2 15:30:41 raspberrypi weewx[11033]: ****    File "_etc_weewx_skins_Belchertown_pi_index_html_tmpl.py", line 266, in __errorCatcher29

Mar  2 15:30:41 raspberrypi weewx[11033]: ****    File "<string>", line 1, in <module>

Mar  2 15:30:41 raspberrypi weewx[11033]: ****  TypeError: format() got an unexpected keyword argument 'None_string'


--

Pat

unread,
Mar 1, 2019, 9:33:47 PM3/1/19
to weewx-user
Colin, Yes. Scroll back a bit in this thread there's 2 links I sent Rich to update to. Try that.

Johannes, I'm working on a fix for your report too

Colin Larsen

unread,
Mar 1, 2019, 9:36:28 PM3/1/19
to weewx-user
Done, will let you know in under 5 minutes :)

On Sat, Mar 2, 2019 at 3:33 PM Pat <p...@obrienphoto.net> wrote:
Colin, Yes. Scroll back a bit in this thread there's 2 links I sent Rich to update to. Try that.

Johannes, I'm working on a fix for your report too

Colin Larsen

unread,
Mar 1, 2019, 9:44:29 PM3/1/19
to weewx-user
Yep, all good as far as I can tell, no errors. I see that the Darksky date format is correct for me now too, not sure when you sorted that but thanks! I may use that for a while again.

Gavin Anderson

unread,
Mar 2, 2019, 6:33:17 AM3/2/19
to weewx...@googlegroups.com
Hi Pat

I'm new to Weewx, having just got a Netatmo weather station.

I started with the Neowx skin here - www.wiggytoo.com

I've added your skin here - www.wiggytoo.co.uk, all looks good and the setup and instructions are very easy to follow.

The data is coming from the same place with 2 FTP reports one to each site for now, while I am experimenting.

I don't need all the graphs yet so have commented them out, is there a way of doing this that avoids white space at the bottom, at the moment I have this in Extras

highcharts_graph_1 = "temperatureplot"
highcharts_graph_2 = "barometerplot"
highcharts_graph_3 = "humidityplot"
highcharts_graph_4 = "rainplot"
highcharts_graph_5 = ""
highcharts_graph_6 = ""
highcharts_graph_7 = ""

I'm about to look at MQTT - but there may be little point as the Netatmo only uploads data to the web every 5 minutes anyway and the data from the sensors is not available locally only via the web api (thanks to Matthew Wall for his work on that [https://github.com/matthewwall/weewx-netatmo].

Many thanks again for the hard work, and making it available to the community.

Gav


On Fri, Mar 1, 2019 at 12:50 AM Pat <p...@obrienphoto.net> wrote:
I've just released Belchertown skin 0.9. You can read the updates and download it here: https://github.com/poblabs/weewx-belchertown/releases

A lot of work went into this release. I've learned a lot through feedback on the skin. 

This release fixes a major bug with the rain charts which were taking a very long time to generate. This release also brings a lot of updates to locale formats. 

There's 1 breaking change if you are upgrading. Please take special note to a few MQTT variable names which have changed to mqtt_websockets_. This is to reduce confusion and offer clarity on new user installations. 

Please let me know if you've upgraded and share your site. I'd love to see it out there!

stelli...@gmail.com

unread,
Mar 2, 2019, 12:52:57 PM3/2/19
to weewx-user

I just upgraded to weewx 3.9.1 and to Belchertown 0.9.
All units to my metric defaults are set correctly and I double and triple checked. And restarted weewx acouple of times as well as my Pi.
Unfortunately, my websits is only showing Fahrenheit, Inches...


Any idea?

Pat

unread,
Mar 2, 2019, 12:57:21 PM3/2/19
to weewx-user
In weewx.conf, are your metric settings set under Belchertown [[[Extras]]] or under [StdReport] [[Defaults]]?

Pat

unread,
Mar 2, 2019, 12:58:20 PM3/2/19
to weewx-user
Gav, 

> I don't need all the graphs yet so have commented them out, is there a way of doing this that avoids white space at the bottom, at the moment I have this in Extras

I didn't catch this before. Let me do some tests. I'm working on a 0.9.1 now so I'll try to sneak this in there. 

stelli...@gmail.com

unread,
Mar 2, 2019, 1:21:05 PM3/2/19
to weewx-user
That was a fast reply! ;-)

I left the weewx.conf untouched during the update process and had a look again. Under [StdReport] [[Defaults]] no metric units were set and also not under Belchertown.
The only file that had those information was the skin.conf file. I have now set it under [StdReport] [[Defaults]] and everything's fine again...

Thanks! 

Pat

unread,
Mar 2, 2019, 1:42:52 PM3/2/19
to weewx-user
Thanks for the update. I'll update the README on the GitHub site too for those using 3.9.1.

Pat

unread,
Mar 2, 2019, 1:44:30 PM3/2/19
to weewx-user
Johannes, I've pushed a change that should fix this error. It'll be in the 0.9.1 release but if you want to install it now download these files and place them in these locations. Then restart weewx. 

Pat

unread,
Mar 2, 2019, 2:23:34 PM3/2/19
to weewx-user
Gav, I just pushed a change which I think will fix this. It will be in the 0.9.1 release (probably a couple more days), but if you want to install it now to take advantage of it, here's how. 

Restart weewx when completed. 

Let me know how it goes


On Saturday, March 2, 2019 at 6:33:17 AM UTC-5, Wiggytoo wrote:

Pat

unread,
Mar 2, 2019, 5:49:37 PM3/2/19
to weewx-user
I think I've addressed all the bugs in this thread. If all is quiet on the bugs for another day or so, I'll release 0.9.1.

Johannes Ebner

unread,
Mar 3, 2019, 2:44:53 AM3/3/19
to weewx-user
Hi,

Could you doublecheck? I have downloaded the latest release from github, but now I hade to change from "mqtt_websockets_" back to "mqtt_".

Br,
Johannes

Johannes Ebner

unread,
Mar 3, 2019, 3:14:01 AM3/3/19
to weewx-user
Ok, please ignore, I think there was a caching issue.

Br,
Johannes

Gavin Anderson

unread,
Mar 3, 2019, 7:29:19 AM3/3/19
to weewx...@googlegroups.com
Thanks Pat,

That does it - see results here www.wiggytoo.co.uk, I guess you need to make the same sort of change in graphs\index.html.tmpl

Gav


Pat

unread,
Mar 3, 2019, 7:30:29 AM3/3/19
to weewx-user
I made those changes to the graphs page too. Available on GitHub if you want to download it.

Gavin Anderson

unread,
Mar 3, 2019, 7:48:14 AM3/3/19
to weewx...@googlegroups.com
Perfect - thanks, works as expected.

Gav

On Sun, Mar 3, 2019 at 12:30 PM Pat <p...@obrienphoto.net> wrote:
I made those changes to the graphs page too. Available on GitHub if you want to download it.

Paul Lacatus (Gmail)

unread,
Mar 3, 2019, 11:48:32 AM3/3/19
to weewx...@googlegroups.com
Hi, Pat

Very nice job with the Belchertown skin. It is possible to add in the
next versions   a refresh clause in the header.html.tmpl ? I am using a
android tablet as a meteo panel using chrome and to have always updated
info i am adding after each update this line in the header.html.tmpl:

<meta http-equiv="refresh" content="300">

I think it can be useful for other users of your skin too


thanks for your good work

Paul

Pat

unread,
Mar 3, 2019, 12:20:53 PM3/3/19
to weewx-user
Paul, are you using MQTT for live updates? 

If so, set the disconnect_live_website_visitor option to something very long like 99999999999999999 or try the Pi page and see if it looks OK on your template. I should probably make the option of disconnect_live_website_visitor = -1 to disable it. Maybe I'll give that a try for 0.9.1. 

Paul Lacatus

unread,
Mar 3, 2019, 12:27:39 PM3/3/19
to weewx...@googlegroups.com
Pat, I am using MQTT to sent data from the WMR300 weather station to other applications, mainly running NodeRed. 

Sent from my iPad
--

Pat

unread,
Mar 3, 2019, 12:29:32 PM3/3/19
to weewx-user
If you have websockets enabled, you can point your website to your mqtt websockets server and get live updates on everything on the front page. No need to reload. Just set the timeout parameter as mentioned above so it doesn't stop updating the page. 

Paul Lacatus

unread,
Mar 3, 2019, 12:43:33 PM3/3/19
to weewx...@googlegroups.com
Right now I am not using MQTT websockets. Maybe in the future. Right now I am only reading the web page from my meteopi server. 

Sent from my iPad

kutz...@gmail.com

unread,
Mar 3, 2019, 2:13:43 PM3/3/19
to weewx-user
I have disconnect_live_website_visitor = 0 set in weewx.conf. That prevents timing out live updates with MQTT per your README.

The number of seconds after a visitor has loaded your page that we disconnect them from the live streaming updates. The idea here is to save your broker from a streaming connection that never ends. Time is in milliseconds. 0 = disabled. 300000 = 5 minutes. 1800000 = 30 minutes

Pat

unread,
Mar 3, 2019, 2:17:28 PM3/3/19
to weewx-user
Ah, perfect. My brain has gone a little fried with all the changes lately. Thanks for the reminder! Good thing I have it documented.

Juan Antonio Mosquera

unread,
Mar 3, 2019, 2:27:41 PM3/3/19
to weewx-user
Hi,

I updated to 0.9 version and.. not work highcharts graphs (today). week works fine.

conf problem?

Thanks

Juan Antonio Mosquera

unread,
Mar 3, 2019, 2:39:13 PM3/3/19
to weewx-user
Not... graphs not work... no errors in console... 

Pat

unread,
Mar 3, 2019, 2:46:50 PM3/3/19
to weewx-user
I need more information than that. A website? A post of your config files?
Message has been deleted

Juan Antonio Mosquera

unread,
Mar 3, 2019, 3:12:32 PM3/3/19
to weewx-user
sorry...



part of weewx.conf

    [[Highcharts_Belchertown]]
        HTML_ROOT = /var/www/html/weewx/belchertown
        skin = Highcharts_Belchertown
        [[[Units]]]
            [[[[Groups]]]]
                group_altitude = meter
                group_degree_day = degree_C_day
                group_pressure = mbar
                group_rain = mm
                group_rainrate = mm_per_hour
                group_speed = km_per_hour
                group_speed2 = km_per_hour2
                group_temperature = degree_C
    
    [[Belchertown]]
        HTML_ROOT = /var/www/html/weewx/belchertown
        skin = Belchertown
        [[[Units]]]
            [[[[Groups]]]]
                group_altitude = meter
                group_degree_day = degree_C_day
                group_pressure = mbar
                group_rain = mm
                group_rainrate = mm_per_hour
                group_speed = km_per_hour
                group_speed2 = km_per_hour2
                group_temperature = degree_C
        [[[Extras]]]
            footer_copyright_text = meteomontaos.es
            forecast_enabled = 1
            forecast_alert_enabled = 1
            darksky_secret_key = XCXXXCC
            earthquake_enabled = 1
            twitter_enabled = 1
            twitter_owner = mosqueracasais
            highcharts_enabled = 1
            highcharts_graph_1 = temperatureplot
            highcharts_graph_2 = rainplot
            highcharts_graph_3 = windplot
            highcharts_graph_4 = winddirplot
            highcharts_graph_5 = barometerplot
            highcharts_graph_6 = humidityplot

Juan Antonio Mosquera

unread,
Mar 3, 2019, 3:12:57 PM3/3/19
to weewx-user
Only work windDirection chart.


El domingo, 3 de marzo de 2019, 20:46:50 (UTC+1), Pat escribió:

Pat

unread,
Mar 3, 2019, 3:16:19 PM3/3/19
to weewx-user
I see now. What is your archive interval from weewx.conf? Looks like the new gapSize option isn't working well for you. 

Pat

unread,
Mar 3, 2019, 3:34:04 PM3/3/19
to weewx-user
Juan, I made some changes. Can you try this and see if it helps?

Copy these files and place them in these folders:


skins/Belchertown/js/highcharts-dayplots.js.tmpl ---> https://raw.githubusercontent.com/poblabs/weewx-belchertown/32b30e6825ede95647f75488b400855a6d2b4a9e/skins/Belchertown/js/highcharts-dayplots.js.tmpl

Restart weewx and see if the next archive interval shows your graphs?

Juan Antonio Mosquera

unread,
Mar 3, 2019, 4:35:49 PM3/3/19
to weewx-user
ok,

Now works again... with these changes...

thanks.

Pat

unread,
Mar 3, 2019, 4:50:47 PM3/3/19
to weewx-user
Good news thank you

Juan Antonio Mosquera

unread,
Mar 4, 2019, 1:40:54 PM3/4/19
to weewx-user
Hi...
problem wit units.... 

commas and dots...

How do I unify the decimal separation?

Captura de pantalla de 2019-03-04 19-39-07.png

Pat

unread,
Mar 4, 2019, 1:46:12 PM3/4/19
to weewx-user
Juan, interesting. With Visibility make sure you set darksky_lang which should match the comma for your language. 

The Wind Gust should be matching Wind Speed though. I am not sure why it is not. 

On your weewx server, can you type locale at command line and paste the output?

Juan Antonio Mosquera

unread,
Mar 4, 2019, 1:51:43 PM3/4/19
to weewx-user
hi,

locale:

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


And... my darksky_lang is "es"

Pat

unread,
Mar 4, 2019, 1:52:37 PM3/4/19
to weewx-user
I will try some testing in a couple of hours to see if I can figure it out

Juan Antonio Mosquera

unread,
Mar 4, 2019, 1:54:26 PM3/4/19
to weewx...@googlegroups.com
Thanks!

--
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/yOHpHCu0jAA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Pat

unread,
Mar 4, 2019, 3:09:57 PM3/4/19
to weewx-user
Juan, I think I have this fixed. You can download the file below. I think this has opened up a couple more issues with locale that I'm looking into now, but for your issue it seems this will do it. 


Wait for an archive interval and see if it's updated

Juan Antonio Mosquera

unread,
Mar 4, 2019, 3:22:09 PM3/4/19
to weewx-user
Half-solved problem. Now show comma separators. ES locale is dot separation.

thank you.

Pat

unread,
Mar 4, 2019, 3:32:10 PM3/4/19
to weewx-user
I am seeing the same thing with DarkSky. You may have to reach out to DarkSky through your darksky.net portal and ask them how come it's not a comma. They are controlling the data when it's downloaded. 

I would ask them that you specify "lang=es" but the locale of the units is not using commas. 

Juan Antonio Mosquera

unread,
Mar 4, 2019, 3:35:28 PM3/4/19
to weewx...@googlegroups.com
but wind too... 

attach image
Screenshot_2019-03-04-21-34-21-327_com.android.chrome.png

Pat

unread,
Mar 4, 2019, 3:37:32 PM3/4/19
to weewx-user
My mistake. I thought you wanted comma because when I set my server to es_ES.UTF-8 like yours, I get commas, too. 
es.jpg

Juan Antonio Mosquera

unread,
Mar 4, 2019, 4:42:25 PM3/4/19
to weewx-user
Sorry... 

ES = comma!...

I was thinking of separators of thousands!!. my fault.

Pat

unread,
Mar 9, 2019, 12:51:16 PM3/9/19
to weewx-user
Belchertown skin 0.9.1 now released which should fix most of the issues that have been brought to me since 0.9. 

You can download here: https://github.com/poblabs/weewx-belchertown/releases

Next stop: 1.0 which already has major progress with interactive chart customization. It's being fully re-written, so it's taking some time to get through it. I will need testers when I have a beta ready! I'll put a post out in the next few weeks when I am ready for some tests. 

HoracioDos

unread,
Mar 9, 2019, 1:10:39 PM3/9/19
to weewx-user
Hi.
I've installed V0.9.1 without problems but this error is still present. There is no problem If weewx database is deleted and wee reports is run within a few hours. Error appears later on.
sudo wee_reports
Using configuration file /etc/weewx/weewx.conf
Generating for all time
/usr/lib/python2.7/dist-packages/Cheetah/Compiler.py:1559: UserWarning: You supplied an empty string for the source!
  warnings.warn("You supplied an empty string for the source!", )

Pat

unread,
Mar 9, 2019, 1:29:14 PM3/9/19
to weewx-user
I still haven't been able to replicate this. I'm not sure if anyone else has any idea!

There's nothing else in the error?

Pat

unread,
Mar 9, 2019, 1:50:10 PM3/9/19
to weewx-user
Check to make sure your config files don't have any empty values?

Patrick Tranchant

unread,
Mar 9, 2019, 2:45:56 PM3/9/19
to weewx-user
hello PAT
in which file , I put that "Make sure you place the "Powered by DarkSky" somewhere on your website. Like the About page (see below after install for customizing the About page)."

skin.conf or an other ?
thanks

Patrick

kutz...@gmail.com

unread,
Mar 9, 2019, 2:51:43 PM3/9/19
to weewx-user
Patrick, a good place to put it is in your about.inc file. It should be in /home/weewx/skins/Belchertown (at least if you used setup..py) That's the page that you see when you click the About menu. See mine: https://wx.kutzenco.com/about/.

Phil

HoracioDos

unread,
Mar 9, 2019, 3:40:54 PM3/9/19
to weewx-user
I can't find any empty value. While I'm adding some new sensors to my ADS-WS1 I'm using the simulator driver to make adjustments to templates and skins.

Pat

unread,
Mar 9, 2019, 3:46:58 PM3/9/19
to weewx-user
What other customizations have you made? Does this problem exist on a fresh weewx install?

Like I said, haven't been able to reproduce it so I don't know what's causing it...

Patrick Tranchant

unread,
Mar 10, 2019, 3:43:57 PM3/10/19
to weewx-user
 hello PAT

I have just upgraded with version 0.9.1; all is Good, I have just modified the files to translate in french.
I wait for the new version to add my graphs (pressure and SoilTemp1 ).
good Job

Patrick

rich T

unread,
Mar 10, 2019, 11:49:17 PM3/10/19
to weewx-user
Patrick

What type of sensor are you using for soilTemp1?

Rich

Patrick Tranchant

unread,
Mar 11, 2019, 3:24:03 AM3/11/19
to weewx-user
hello Rich

I have a DS18B20 sensor, but it works well in weewx with skin "Belchertown", it is just a problem to display the graph, and PAT said me ; I must to wait the new version to customize to add new graph.

Patrick

Andy Hudson-Smith

unread,
Mar 11, 2019, 5:04:00 AM3/11/19
to weewx-user
Morning - Great Skin as ever and just updated - a quick question if thats ok - i cant seem to get my solar radiation graph to populate. All the others work fine and its in my sensor map (below) - any help would be great if possible...

Andy

[[sensor_map]]
outTemp = air_temperature.AR-00003549.obs_air
outHumidity = relative_humidity.AR-00003549.obs_air
pressure = station_pressure.AR-00003549.obs_air
lightning_strikes = lightning_strike_count.AR-00003549.obs_air
avg_distance = lightning_strike_avg_distance.AR-00003549.obs_air
outTempBatteryStatus = battery.AR-00003549.obs_air
windSpeed = wind_speed.SK-00000412.rapid_wind
windDir = wind_direction.SK-00000412.rapid_wind
lux = illuminance.SK-00000412.obs_sky
UV = uv.SK-00000412.obs_sky
rain = rain_accumulated.SK-00000412.obs_sky
windBatteryStatus = battery.SK-00001234.obs_sky
radiation = solar_radiation.SK-00001234.obs_sky
lightningYYY = distance.AR-00004444.evt_strike
lightningZZZ = energy.AR-00004444.evt_strike

Andy Hudson-Smith

unread,
Mar 11, 2019, 5:14:37 AM3/11/19
to weewx-user
My URL might have been helpful (as it shows the graph, just not populating the data)


Andy

vince

unread,
Mar 11, 2019, 10:24:57 AM3/11/19
to weewx-user
On Monday, March 11, 2019 at 2:04:00 AM UTC-7, Andy Hudson-Smith wrote:
Morning - Great Skin as ever and just updated - a quick question if thats ok - i cant seem to get my solar radiation graph to populate. All the others work fine and its in my sensor map (below) - any help would be great if possible...

        windSpeed = wind_speed.SK-00000412.rapid_wind


        windDir = wind_direction.SK-00000412.rapid_wind
        lux = illuminance.SK-00000412.obs_sky
        UV = uv.SK-00000412.obs_sky
        rain = rain_accumulated.SK-00000412.obs_sky
        windBatteryStatus = battery.SK-00001234.obs_sky
        radiation = solar_radiation.SK-00001234.obs_sky


Unless you have two Sky sensors, you forgot to edit in your correct id on those lines.  I'm guessing it's not 1234.

Andy Hudson-Smith

unread,
Mar 11, 2019, 11:20:22 AM3/11/19
to weewx-user
Cant believe i missed that! Sorry and thanks for pointing it out!

Andy

Patrick Tranchant

unread,
Mar 11, 2019, 3:07:05 PM3/11/19
to weewx-user
hello PAT,

I have a problem with date time in Records, they are not more here. see copy screen; I saw that you change the datetime system,
is it related? I have it in version 0.9



Patrick


Pat

unread,
Mar 11, 2019, 3:09:16 PM3/11/19
to weewx-user
Any errors in your syslog? 

Patrick Tranchant

unread,
Mar 11, 2019, 3:34:18 PM3/11/19
to weewx-user
 no, nothings for me

Mar 11 20:31:18 raspberrypi weewx[27077]: Belchertown Extension: version 0.9.1
Mar 11 20:31:20 raspberrypi weewx[27077]: manager: Added record 2019-03-11 20:31:00 CET (1552332660) to database 'weewx.sdb'
Mar 11 20:31:20 raspberrypi weewx[27077]: manager: Added record 2019-03-11 20:31:00 CET (1552332660) to daily summary in 'weewx.sdb'
Mar 11 20:31:20 raspberrypi weewx[27077]: engine: Launch of report thread aborted: existing report thread still running
Mar 11 20:31:38 raspberrypi weewx[27077]: cheetahgenerator: Generated 14 files for report Belchertown in 20.23 seconds
Mar 11 20:31:38 raspberrypi weewx[27077]: copygenerator: copied 31 files to /var/www/html/weewx/belchertown
Mar 11 20:32:18 raspberrypi weewx[27077]: manager: Added record 2019-03-11 20:32:00 CET (1552332720) to database 'weewx.sdb'
Mar 11 20:32:18 raspberrypi weewx[27077]: manager: Added record 2019-03-11 20:32:00 CET (1552332720) to daily summary in 'weewx.sdb'
Mar 11 20:32:23 raspberrypi weewx[27077]: cheetahgenerator: Generated 8 files for report SeasonsReport in 4.31 seconds
Mar 11 20:32:26 raspberrypi weewx[27077]: imagegenerator: Generated 14 images for SeasonsReport in 2.51 seconds
Mar 11 20:32:26 raspberrypi weewx[27077]: copygenerator: copied 0 files to /var/www/html/weewx
Mar 11 20:32:26 raspberrypi weewx[27077]: cheetahgenerator: Generated 7 files for report SmartphoneReport in 0.33 seconds
Mar 11 20:32:27 raspberrypi weewx[27077]: imagegenerator: Generated 7 images for SmartphoneReport in 1.08 seconds
Mar 11 20:32:27 raspberrypi weewx[27077]: copygenerator: copied 0 files to /var/www/html/weewx/smartphone
Mar 11 20:32:27 raspberrypi weewx[27077]: cheetahgenerator: Generated 1 files for report MobileReport in 0.11 seconds
Mar 11 20:32:28 raspberrypi weewx[27077]: imagegenerator: Generated 4 images for MobileReport in 0.69 seconds
Mar 11 20:32:28 raspberrypi weewx[27077]: copygenerator: copied 0 files to /var/www/html/weewx/mobile
Mar 11 20:32:52 raspberrypi weewx[27077]: cheetahgenerator: Generated 4 files for report Highcharts_Belchertown in 23.26 seconds
Mar 11 20:32:52 raspberrypi weewx[27077]: copygenerator: copied 0 files to /var/www/html/weewx/belchertown
Mar 11 20:32:56 raspberrypi weewx[27077]: cheetahgenerator: Generated 14 files for report Belchertown in 4.60 seconds
Mar 11 20:32:56 raspberrypi weewx[27077]: copygenerator: copied 1 files to /var/www/html/weewx/belchertown

patrick

Pat

unread,
Mar 11, 2019, 7:22:17 PM3/11/19
to weewx-user
Have you restarted weewx since installing the new skin?

Patrick Tranchant

unread,
Mar 12, 2019, 6:26:40 AM3/12/19
to weewx-user
hi PAT

I modfied the files in /records/index.html.tmpl with old datas of version 0.9.0

 <script type="text/javascript">
        var moment_locale = "fr_FR".replace(/_/g, '-'); // Replace underscore with dash (e.g. "en_US" becomes "en-US") which is a format that moment.js needs for local
        moment.locale(moment_locale);

but it is the same thing, no date time in records. It is not easy that I thought.

Patrick

Pat

unread,
Mar 12, 2019, 6:36:01 AM3/12/19
to weewx-user
What else have you changed? Can you send me a link to your site?

Patrick Tranchant

unread,
Mar 12, 2019, 6:51:54 AM3/12/19
to weewx-user
I send you the file index.html.tmpl of folder Records;
I have a problem to put my website on Internet with skin "Belchertown", but it is OK with skin "Seasons"; I am searching why It doesn't work.

Patrick

http://jurassikpat.ddns.net => skin "Seasons"
index.html.tmpl

Patrick Tranchant

unread,
Mar 12, 2019, 7:03:50 AM3/12/19
to weewx-user
again me,

for my website, in local for me , all is OK

skin Belchertown => http://xxx.xxx.xxx.xxx/weewx/belchertown maybe the problem , my tree is bad

/var/www/html/weewx/belchertown, maybe better as that /var/www/html/belchertown; say me

Patrick

On Tuesday, March 12, 2019 at 11:36:01 AM UTC+1, Pat wrote:

Pat

unread,
Mar 12, 2019, 7:51:34 AM3/12/19
to weewx-user
It is not working for me either. I am not sure what is wrong. I am surprised there are no errors in syslog. Try to uninstall the skin and reinstall the skin?

My hope is something did not get copied correctly?

HoracioDos

unread,
Mar 12, 2019, 8:42:22 AM3/12/19
to weewx-user
Hello Pat
I found the crux of the matter. records.inc file was empty. I deleted this file and problem solved. I learned the hard way, never leave an .inc file empty.
Thanks for your patience.

Pat

unread,
Mar 12, 2019, 8:44:19 AM3/12/19
to weewx-user
Glad you figured it out. I didn't even think about that. I will add that to the readme for future reference. 

Patrick Tranchant

unread,
Mar 12, 2019, 8:51:00 AM3/12/19
to weewx-user
ok, I am going to try it
It is loading more messages.
0 new messages