Belchertown Skin 0.8.2 Released

504 views
Skip to first unread message

Pat

unread,
Jan 1, 2019, 7:50:49 AM1/1/19
to weewx-user
I've just released version 0.8.2 of the Belchertown skin which fixes the New Year bug some of you are seeing. It also adds some other features. 


Download and install instructions here: https://github.com/poblabs/weewx-belchertown/releases


* Fixed an error where the skin would fail when the date rolls to the New Year due to no data being in certain tables in the database yet. 
* Added the ability to show any weather alerts provided by the DarkSky API. Weather alerts are off by default, use forecast_alert_enabled in weewx.conf skin options to enable it.
* New option to show cloudbase. You must have your database schema extended for the cloudbase observation to be calculated by weewx. Check the Belchertown skin wiki for details.
* Fixes an issue where the MQTT updates showed altimeter instead of barometer.
* Updated Google Analytics page to be in header based on Google recommendations. 
* Updated Google Analytics to a more recent script block. 
* Added a Google Analytics page view per MQTT update as per Google Recommendations on background updates. 

Juan Antonio Mosquera

unread,
Jan 1, 2019, 8:16:01 AM1/1/19
to weewx-user
Updated to 0.8.2 and works fine.

WILWetter25

unread,
Jan 1, 2019, 1:00:23 PM1/1/19
to weewx-user
Thank you for your great work :)

WILWetter25

unread,
Jan 2, 2019, 9:55:22 AM1/2/19
to weewx-user
Ive got some questions: I read about MQTT in your readme. The weatherstation I use, is a Ambient Weather WS 2902. I am using the Interceptor Driver that sniffs the data, when the weatherstation sends data to Wundergound. The skin will be uploaded via FTP to my Website.

My questions: Which Soft- and Hardware do I need to create a MQTT-Live-Website?

Is it possible for me?

kutz...@gmail.com

unread,
Jan 2, 2019, 11:49:49 AM1/2/19
to weewx-user
Check out Pat's tutorial on doing this on his website (https://obrienlabs.net/how-to-setup-your-own-mqtt-broker/). That's what I used to set up MQTT for my website.
phil

kutz...@gmail.com

unread,
Jan 2, 2019, 12:05:48 PM1/2/19
to weewx-user
Two things I might add to Pat's great tutorial:

  1. Mosquitto not only hates extra spaces at the end of lines in config files, it also hates not having a newline at the end of each config file. Also, if Mosquitto exits due to a config file format issue, it doesn’t respond to a systemctl start command properly. I think that when it tries to restart, it sees that there is a PID file in existence and just exits. Even restarting the server (ugh) didn’t help me. What I found to get by that is to issue a systemctl stop command first. I think that clears the PID file. Then I issue the systemctl start command.
  2. I set up an Nginx webserver on my external website (which is running Ubuntu) to serve the pages. I used Let’s Encrypt to set up my certs (used for both Mosquitto and Nginx web pages). Rather than use the certbot certonly command as suggested by Pat, I used the Nginx plug-in for Ubuntu:

     sudo apt-get update

        sudo apt-get install software-properties-common

        sudo add-apt-repository ppa:certbot/certbot

        sudo apt-get update

        sudo apt-get install python-certbot-nginx

                      sudo certbot --nginx
            This really automates the cert installs. It edits the Nginx config files, sets up the cron job for renewing the certs and even automates redirecting http://URL’s to https:// ones if you want it to. Very cool.

phil
Message has been deleted

Adnan Mumtaz

unread,
Jan 28, 2019, 3:35:53 AM1/28/19
to weewx-user
Hi my cloud base shows in meters as  I have group_altitude = meter , but when I change it to foot the skin calculates fine but when MQTT updates the data it changes to meter readings, MQTT setting is also set as METRIC. I see yours in feet too.

Pat

unread,
Jan 28, 2019, 8:22:19 AM1/28/19
to weewx-user
To be clear, there's 2 things that are going on and I want to try to make sure we're on the same page. 

When the page initially loads, that's from weewx's core. So the metric settings come from the skin settings. 

Once MQTT is connected, then that data comes from the weewx-mqtt extension. This extension has the ability to be calibrated individually for metric/imperial, etc. 

If the issue is when MQTT updates the page, perhaps you need to set the MQTT extension's units to send. 

Take a look at this post. Under MQTT extension's settings, you can define which unit to send for which observation. Again, I did not write the MQTT extension, but this should be able to help you. 

[[MQTT]]
    **snip**
   
[[[inputs]]]
       
[[[[rainRate]]]]
            name
= rainRate_mm_per_hour
            units
= mm_per_hour


Adnan Mumtaz

unread,
Jan 28, 2019, 8:25:33 AM1/28/19
to weewx-user
Thanks a lot Pat i will try it, one more thing we have heavy winds with dust and low visibility but the skin is showing me 9km visibility where as aviation weather shows only 585 meters. I sent it a friend who is a pilot and he pointed out, he is in cockpit right now taxiing and giving me feedbacks :)

Pat

unread,
Jan 28, 2019, 8:27:13 AM1/28/19
to weewx-user
That comes from the DarkSky forecasting (which is updated every forecast_stale interval - about 1 hour). So they may not be as up to date as your pilot friend is :)

Adnan Mumtaz

unread,
Jan 28, 2019, 8:54:28 AM1/28/19
to weewx-user
:) True I sent an email to Dark Sky about the accuracy of their data for my area, where does the cloud base info the skin picks up?

Pat

unread,
Jan 28, 2019, 9:43:58 AM1/28/19
to weewx-user
Cloud base comes from weewx. 

The info on the page before MQTT updates is a tag the skin uses

The info that's updated when MQTT connects is from the weewx-mqtt extension (which uses weewx to calculate). So if non-mqtt is correct, and mqtt is not, you may need to do a cloudbase override in the [[mqtt]] settings. 
Message has been deleted

mercurystorm

unread,
Jan 31, 2019, 3:32:05 PM1/31/19
to weewx-user
I just implemented this skin and its fantastic

I do however seem to be getting to many weather warnings..

Currently showing 4 weather warnings for my area.. but there is currently only one active on darksky


Each time the MET seems to update it.. I get another weather warning on my site.. any ideas?

Pat

unread,
Jan 31, 2019, 5:07:46 PM1/31/19
to weewx-user
The skin is showing the alerts that are downloaded from DarkSky. I have no more developer notes than that. If there's too many alerts, you can reach out to DarkSky themselves to ask about it. 

opc...@gmail.com

unread,
Feb 2, 2019, 7:35:31 AM2/2/19
to weewx-user
Hi Guys!Thank you, Pat, for the great skin! I am about to translate everything into German. I am currently stuck at renaming the graphs. Where do I need to change the titles of the diagrams and also the names of the single lines?

Pat

unread,
Feb 2, 2019, 7:57:13 AM2/2/19
to weewx-user
Thanks. I'm working on skin version 0.9 now which I'm hoping to release soon. Many bug fixes.

To change the chart names, check the files within skins/Highcharts_Belchertown/json

I haven't had a chance to look into internationalization yet. Hopefully soon.

Juan Antonio Mosquera

unread,
Feb 2, 2019, 11:38:03 AM2/2/19
to weewx-user
The internationalization would be very interesting. That way we would not have to change the code with each update. Thank you for your work.

Adnan Mumtaz

unread,
Feb 11, 2019, 1:48:29 AM2/11/19
to weewx-user
Experienced first good rain since I installed the WS, I see the highest rate 1680 mm/hr and total rain rate 3.8 mm which is correct, but i dont know how it calculated 1680 mm/hr, dont know if this is correct. http://www.riyadhweather.com

Deborah Pickett

unread,
Feb 11, 2019, 2:20:06 AM2/11/19
to weewx-user
On Monday, February 11, 2019 at 5:48:29 PM UTC+11, Adnan Mumtaz wrote:
Experienced first good rain since I installed the WS, I see the highest rate 1680 mm/hr and total rain rate 3.8 mm which is correct, but i dont know how it calculated 1680 mm/hr, dont know if this is correct. http://www.riyadhweather.com

Small bug: The rain in the box to the left of the radar image shows 3.8 mm while I load the page, then once it connects to live data, it changes to 0.38 mm.  Perhaps something is incorrectly counting the rainfall as cm.

(Page looks great, by the way.)

Andrew Milner

unread,
Feb 11, 2019, 2:24:07 AM2/11/19
to weewx-user
It is more than likely a result of multiplying a loop value to get an hourly value.  Best 'solution' is to NOT use loop Hi/Lo for daily data by setting weewx.conf accordingly.  An alternative (or as well) is to use software preferred for rain rate and let weewx calculate the rate using its sliding window.

Adnan Mumtaz

unread,
Feb 11, 2019, 2:52:24 AM2/11/19
to weewx-user
Thanks Deborah, You are right I didnt notice that Live Data is calculating in cm, looks like I will need to override the MQTT to calculate in cm, its set as METRIC with no additional parameters

Adnan Mumtaz

unread,
Feb 11, 2019, 2:52:44 AM2/11/19
to weewx-user
Will try software and see how it shows

Adnan Mumtaz

unread,
Feb 11, 2019, 6:00:47 AM2/11/19
to weewx-user
Tried both options by removing Hi/Lo and using sofware as preferred calculation with both the number didnt change.


On Monday, 11 February 2019 10:24:07 UTC+3, Andrew Milner wrote:

Andrew Milner

unread,
Feb 11, 2019, 7:36:13 AM2/11/19
to weewx-user
well it won't change by itself once the data is in the database!!!!

You could run wee_database and drop daily and then rebuild daily - this will rebuild the daily tables (which contain the hi/low data) from the data in the archive table, which would not include any loop hi/low data.  see the utilities manual and take a copy of your database sdb file before manipulating the database - just as a precaution

my earlier changes/suggestions would only affect future rainfall.

Adnan Mumtaz

unread,
Feb 11, 2019, 8:51:17 AM2/11/19
to weewx-user
Thanks for the explanation Andrew.

Scott Grayban

unread,
Feb 12, 2019, 1:45:10 AM2/12/19
to weewx-user
Pat are any of these variables/settings used in your skin ?

interceptor: MainThread: unrecognized parameter hourlyrainin=0.00
interceptor: MainThread: unrecognized parameter eventrainin=0.00
interceptor: MainThread: unrecognized parameter totalrainin=1.88
interceptor: MainThread: unrecognized parameter stationtype=AMBWeatherV4.0.7
interceptor: MainThread: unrecognized parameter maxdailygust=6.9
interceptor: MainThread: unrecognized parameter baromrelin=29.92

Pat

unread,
Feb 12, 2019, 11:23:09 AM2/12/19
to weewx-user
I'm confused by the question. Or the question behind the question. 

The short answer is No. The skin is just a report. It is output only. 

You seem to be posting a driver log. Drivers ingest data, so they are very specific on the schema observations it'll save. 

So I think we are talking about 2 different things if your driver is giving you an error, it's typically not related to anything inside of a skin. 

Scott Grayban

unread,
Feb 12, 2019, 6:43:39 PM2/12/19
to weewx-user
Ok that's what I was wondering.

Joe Spears

unread,
Feb 15, 2019, 5:28:39 PM2/15/19
to weewx-user
I installed the Belchertown skin and I get none of the graphs.  The weather data and report data show just fine.  Looking at my log I see that Highcharts runs but nothing is being copied for every instance of Highcharts.
Any suggestions?

Thanks.

Joe

Feb 15 17:11:05 weewx wee_reports[1236]: cheetahgenerator: Generated 4 files for report Highcharts_Belchertown in 25.87 seconds

Feb 15 17:11:05 weewx wee_reports[1236]: copygenerator: copied 0 files to /var/www/html/weewx/belchertown



Pat O'Brien

unread,
Feb 15, 2019, 5:50:18 PM2/15/19
to weewx...@googlegroups.com
Is the belchertown root URL set?

--
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/6Sa3vfzsH6k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages