This is certainly not what you are looking for, but it is what I use to get 
NWS forecasts.

Here is a url for a forecast for a randomly selected location:

https://forecast.weather.gov/MapClick.php?lat=41.177010&lon=-73.141963&unit=0&lg=english&FcstType=text&TextType=2

Note where latitude and longitude are inserted. "TextType=2" at the end 
tells the server to include forecast graphics.

Several times a day, a cron job uses PhantomJS <https://phantomjs.org> to 
retrieve that page and create an jpeg of the forecast graphics, which is 
then displayed on my weewx home page.

It usually works well enough for my purposes, but there are times when the 
forecast page is down, so I end up with a blank rectangle on the weewx page.



On Wednesday, June 8, 2022 at 12:16:33 PM UTC-4 Timothy Reaves wrote:

> Hello all.  I'm using the latest version running on a Pi 4, with a Davis 
> Vantage Pro.  I've had my site configured to use Aeris for forecasting, and 
> have never really liked it.  It just isn't as accurate as the NWS.  But I 
> stuck with it.  Then last week, the Aeris forecast for my sight started 
> diverging significantly not only from the NWS, but also from the actual 
> Aeris site (which following the forecast link).  I don't know what's going 
> on, so I thought I'd jut stop using it.
>
> So I installed the Forecast user module.  When I start weewx now, it fails 
> to load with the error below.  In looking at the code, the database schema 
> isn't matching the extensions in-memory schema.  Don't know why.
>
> Has anyone an example of using NWS forecasts instead of Aeris?  Or can 
> provide any other ideas to troubleshoot?
>
> Thanks.
>
> Jun  8 10:12:34 pi4home weewx[12748] CRITICAL __main__:     **** 
>  Exception: NWS: schema mismatch: ['dateTime', 'usUnits', 'interval', 
> 'altimeter', 'appTemp', 'appTemp1', 'barometer', 'batteryStatus1', 
> 'batteryStatus2', 'batteryStatus3', 'batteryStatus4', 'batteryStatus5', 
> 'batteryStatus6', 'batteryStatus7', 'batteryStatus8', 'cloudbase', 'co', 
> 'co2', 'consBatteryVoltage', 'dewpoint', 'dewpoint1', 'ET', 'extraHumid1', 
> 'extraHumid2', 'extraHumid3', 'extraHumid4', 'extraHumid5', 'extraHumid6', 
> 'extraHumid7', 'extraHumid8', 'extraTemp1', 'extraTemp2', 'extraTemp3', 
> 'extraTemp4', 'extraTemp5', 'extraTemp6', 'extraTemp7', 'extraTemp8', 
> 'forecast', 'hail', 'hailBatteryStatus', 'hailRate', 'heatindex', 
> 'heatindex1', 'heatingTemp', 'heatingVoltage', 'humidex', 'humidex1', 
> 'inDewpoint', 'inHumidity', 'inTemp', 'inTempBatteryStatus', 'leafTemp1', 
> 'leafTemp2', 'leafWet1', 'leafWet2', 'lightning_distance', 
> 'lightning_disturber_count', 'lightning_energy', 'lightning_noise_count', 
> 'lightning_strike_count', 'luminosity', 'maxSolarRad', 'nh3', 'no2', 
> 'noise', 'o3', 'outHumidity', 'outTemp', 'outTempBatteryStatus', 'pb', 
> 'pm10_0', 'pm1_0', 'pm2_5', 'pressure', 'radiation', 'rain', 
> 'rainBatteryStatus', 'rainRate', 'referenceVoltage', 'rxCheckPercent', 
> 'signal1', 'signal2', 'signal3', 'signal4', 'signal5', 'signal6', 
> 'signal7', 'signal8', 'snow', 'snowBatteryStatus', 'snowDepth', 
> 'snowMoisture', 'snowRate', 'so2', 'soilMoist1', 'soilMoist2', 
> 'soilMoist3', 'soilMoist4', 'soilTemp1', 'soilTemp2', 'soilTemp3', 
> 'soilTemp4', 'supplyVoltage', 'txBatteryStatus', 'UV', 'uvBatteryStatus', 
> 'windBatteryStatus', 'windchill', 'windDir', 'windGust', 'windGustDir', 
> 'windrun', 'windSpeed'] != ['t', 'd']
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b307429b-d4d7-4b46-92cf-29476bb25ad4n%40googlegroups.com.

Reply via email to