Belchertown 1.0.1 question on wind direction in graphs

184 views
Skip to first unread message

Ernest Jillson

unread,
Jul 18, 2020, 11:17:56 AM7/18/20
to weewx...@googlegroups.com
I know I'm not at the latest version of Belchertown. In fact, I'm still using the older version (3.9.2). I've tried copying /etc/weewx/skins/Belchertown/graphs.conf.example to graphs.conf, but I can't find where to change wind direction from ordinal direction to degrees.
 
My wind direction is only plotted to the nearest value of NNE, or NE, or E.  You get the idea. I'd like to have it plot to the whole degree. Any ideas?
 
My site can be seen here: http://greylords.us
 
Thanks in advance.
 
Ernie

Pat

unread,
Jul 20, 2020, 3:15:46 PM7/20/20
to weewx-user
I'm not sure this is a problem with the skin, but rather your station reporting the archive value of the wind direction. As you can see on my site, my wind degrees aren't plotted to the nearest value. (e.g. 368 degrees, 334 degree, etc)

Before we blame the skin, run weewxd and post some loop and rec packets.

Ernest Jillson

unread,
Jul 20, 2020, 7:13:11 PM7/20/20
to weewx...@googlegroups.com
First, let me apologize. I didn't mean to imply that the skin was the issue. Thanks for your suggestion to look at the packets.  So the loop packets have the correct wind direction in them. The rec packets, however, seem to be rounded to the nearest 22.5 degrees.
 
Obviously the Davis VP2 is capable of transmitting wind to the whole degree, but the rec packets are being received as if mapped to 8 compass points. To be honest with you, I have little knowledge of how the drivers in weewx work and  how they receive data from the VP2 console. Does the console send different packets (the loop and the rec) or does software do that magic?
 
In any case, I'd love to find a way to get this working to the whole degree, if possible.
 
Thanks to any that can help,
 
Ernie

--
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/6fac348f-a1cb-4bad-be13-08f03b958304o%40googlegroups.com.

Pat

unread,
Jul 20, 2020, 7:44:26 PM7/20/20
to weewx-user
No worries - I wasn't sure if you thought there was a problem with the skin. So I have the same problem as you, where the Davis console sends loops with the most accurate wind direction, but the archive packets are generalized. I hate it, and (with Tom's help) made this quick extension. 

Basically this extension takes the archive rec packet from the console and drops the windDir from it. This allows weewx to generate the windDir from it's software and put it into this archive rec packet. It takes into account if this is a "first run" of weewx where weewx doesn't have loop data yet, so it grabs the generalized wind direction from the console. Useful for a power outage, archive catchups, etc. 

Standard disclaimer: This is an unreleased extension, use at your own risk, always have backups.

1. Copy the attached file to your bin/user folder
2. At the bottom of weewx.conf, update your data_services to have this:         data_services = user.deleteVantageWindDir.DeleteWindDir,
3. Restart weewx

Good luck!
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
deleteVantageWindDir.py

Ernest Jillson

unread,
Jul 20, 2020, 8:55:30 PM7/20/20
to weewx...@googlegroups.com
You, sir, are a brilliant man!  Worked like a charm on the first try!
 
Now to brave going to weewx 4.newest and latest Belchertown...
 
Problem is, I don't remember how I installed weewx the first time. Did I use the setup program? Hmmm.
 
Thanks for all your help! Of all the skins I have seen on the web, yours is my favorite.
 
Ernie

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/5a60eb9c-0060-43f3-b8de-f5391a6b303co%40googlegroups.com.

Pat

unread,
Jul 20, 2020, 8:59:40 PM7/20/20
to weewx-user
Glad it worked! 

Quick way to tell how you installed it, if you have a /home/weewx folder, it's from the setup.py option. If you have an /etc/weewx folder, it's probably from apt install weewx (if on ubuntu) or yum install weewx (if on centos/redhat).

If none of those are true, then you may be on OpenSUSE or mac os or something else - these setup guides can help if needed

Ernest Jillson

unread,
Jul 20, 2020, 9:11:39 PM7/20/20
to weewx...@googlegroups.com
It's on raspbian, but I have the /etc/weewx, not /home/weewx. I think I'll just save off the database and start fresh.


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/19c4400a-edbf-4ae4-ab89-c15f64c88d7co%40googlegroups.com.

Pat

unread,
Jul 20, 2020, 9:13:48 PM7/20/20
to weewx-user
Take a backup of everything just in case, then run these commands and it should upgrade to the latest version

sudo apt-get update
sudo apt-get upgrade weewx

Ernest Jillson

unread,
Jul 20, 2020, 9:34:48 PM7/20/20
to weewx...@googlegroups.com
Ok, I'll try that. Is there a way to make it use python 3 instead? I haven't done much research there, yet. Let's face it. Python 2 is about done.
 
Maybe I'll go dig through the update section of the wiki before I start ;)
 
Thanks again for everything!
 
Ernie

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/e5fd939e-206b-4214-8e25-d556a9877e20o%40googlegroups.com.

Pat

unread,
Jul 20, 2020, 9:39:15 PM7/20/20
to weewx-user
Off the top of my head I'd say remove Python 2, install Python 3. That should be enough.

(My personal preference would be to then) remove weewx using sudo apt-get remove weewx, then install using the setup.py. I find it much easier to have the whole thing live in the 1 folder /home/weewx. Makes it easy for backups, upgrades, everything is contained. If you go this route you just need to then configure your web server to serve the website from the /home/weewx folder instead of /var/www. There's a bit of time to spend on doing that though with your weewx.conf settings and such. Makes for a fun project if time allows. 

Of course, always have a backup in case you get in too deep and need to revert back!

Reply all
Reply to author
Forward
0 new messages