Author Topic: Can weewx be set up to receive data from https://mesowest.utah.edu?  (Read 2898 times)

0 Members and 1 Guest are viewing this topic.

Offline kbellis

  • Forecaster
  • *****
  • Posts: 361
Can weewx be set up to receive data from https://mesowest.utah.edu? E.g., to study nearby stations in comparison with your own?

Offline kbellis

  • Forecaster
  • *****
  • Posts: 361
Re: Can weewx be set up to receive data from https://mesowest.utah.edu?
« Reply #1 on: January 24, 2019, 12:26:02 PM »
What I've found so far...
http://weewx.com/docs/customizing.htm#Adding_2nd_source

Adding a second data source

A very common problem is wanting to augment the data from your weather station with data from some other device. Generally, you have two approaches for how to handle this:

1)    Run two instances of weeWX, each using its own database and weewx.conf configuration file. The results are then combined in a final report, using weeWX's ability to use more than one database. See the Wiki entry How to run multiple instances of weewx for details on how to do this.
2)    Run one instance, but use a custom weeWX service to augment the records coming from your weather station with data from the other device.


Neither of the two given options seems (to this total noob) very likely to result in answering the original question with a YES.


Offline vreihen

  • El Niņo chaser
  • Forecaster
  • *****
  • Posts: 1216
  • K2BIG
Re: Can weewx be set up to receive data from https://mesowest.utah.edu?
« Reply #2 on: January 24, 2019, 07:52:50 PM »
Consider a second source as a way to add a sensor that didn't come with your primary station, like a DIY snow depth sensor (or in my case an external barometer module because the one in my old Acu-Rite weather console was fried but everything else worked).  This was *not* intended to import a complete second station's data into weewx, and requires custom programming in Python to make it work.

It sounds like what you want to do is use an external web site as a station for weewx input, and I have no idea how to accomplish that.  It would obviously require a second weewx instance and database, as #1 above states.....
WU Gold Stars for everyone! :lol:

Offline galfert

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 6822
Re: Can weewx be set up to receive data from https://mesowest.utah.edu?
« Reply #3 on: January 24, 2019, 10:45:18 PM »
Probably not the answer you are looking for but there is another way to compare CWOP and NWS stations. And you don't need WeeWx to do this. At Gladstonefamily.net go to the quality charts page. Where Xnnnn is your main station for base comparison.
https://weather.gladstonefamily.net/qchart/Xnnnn

At the bottom is a list of nearby stations that you can't tick the check boxes and then click the Add to Charts button. I've even compared stations that don't show up in the list of suggested nearby stations. To do this all you do is first compare a couple listed stations. Then note the URL format and then edit it to incorporate other stations you desire. My biggest problem doing this successfully the first time was that I didn't realize that the station names are case sensitive. So follow the format of capitalization of the station letters. You can even specify a comparison date.
« Last Edit: January 25, 2019, 11:14:01 AM by galfert »
Ecowitt GW1000 | Meteobridge on Raspberry Pi
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole

Offline kbellis

  • Forecaster
  • *****
  • Posts: 361
Re: Can weewx be set up to receive data from https://mesowest.utah.edu?
« Reply #4 on: January 25, 2019, 08:57:51 AM »
Thanks, Arthur and George, for your replies.

The idea behind the question was to discover if it was possible to accomplish what I've already started doing manually in OO Calc, but using weewx, and then seeing where that tool set in weewx might lead. In a nutshell, determining the variance and standard deviation between the subject station and a control station. It would also be of interest in seeing resulting sigmas when the subject station is processed against multiple weighted control stations. Comparing CWOP stations to other CWOP stations is not initially important to me as the subject station isn't intended to already be in CWOP. Think of the subject station as a Pre-CWOP station.

Offline vinceskahan

  • Senior Contributor
  • ****
  • Posts: 180
    • home site
Re: Can weewx be set up to receive data from https://mesowest.utah.edu?
« Reply #5 on: February 05, 2019, 09:56:12 PM »
weewx can most certainly be set up to receive data from anyplace you can get data from, in whatever format it's in - IF you write the custom extension that does the work of course.   Lots of people do things like read outside-generated flat files, CSV files, JSON, etc.   Poke around the weewx-users google group archives for many examples.

FWIW, when/if you do this, 'definitely' put your second source of data into its own separate database.  You can make the schema anything you want then and then cook up the right Cheetah template skin files to present it any way you want in the resulting HTML for your site.  Works great.
WeeWX sites:
  Davis VP2+DFARS to a pi4
  EcoWitt GW1000, WH32 outdoor T+H, multiple WH31 indoor T+H, WH51 soilMoisture (docker)
  Davis AirLink (inside)
  PurpleAir (outside)
Home site:        https://www.skahan.net/
Wunderground: KWAFEDER15
PWS:                KWFEDER15
CWOP:              CW6881

Offline galfert

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 6822
Re: Can weewx be set up to receive data from https://mesowest.utah.edu?
« Reply #6 on: February 05, 2019, 09:59:28 PM »
Can WeeWx read directly from an SQL database server?
Ecowitt GW1000 | Meteobridge on Raspberry Pi
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole