Question about forecast ?

Post Reply
meteocharleroi
Observer
Observer
Posts: 19
Joined: Fri Jan 08, 2021 7:22 pm
Station model: Davis Pro 2
Software: Weatherlink live

Question about forecast ?

Post by meteocharleroi » Sun Jan 17, 2021 4:23 pm

Hi,

As darksy.net is not giving anymore API key, is there a way to have forecast menu entry working without it ?

I see that source is not only darksky ?

Thanks

User avatar
Daali
Advisor
Advisor
Posts: 56
Joined: Mon Jul 26, 2021 8:06 pm
Location: Georgia, US
Station model: Ecowitt GW1002
Software: Meteobridge, FOSHKplugin
Contact:

Re: Question about forecast ?

Post by Daali » Wed Aug 25, 2021 12:22 am

I guess you and I are the only ones without darksky api keys. visualcrossing has a pretty decent free api (1000 calls a day). With the cache function, you shouldn't hit more than 96 a day.

https://www.visualcrossing.com/resource ... k-sky-api/

Line 51 in /pages/forecast/index.php:

Code: Select all

$fIOURL = "https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/".$stationLat.",".$stationLon."?key=".$fIOKey;
I added my key in place of the darksky.net key in the config.php, and I have it pulling data. However, my php skills are beyond the transformation to read the json data, present it and keep it clean as the original
https://www.jeffersonweather.com
GW1000 gateway
WS68 Anemometer
WH40 Rain Gauge
WH32 Temp/Hum
WH57 Lightning
WH41 PM2.5 Air Quality
WH45 PM2.5/10/Co2 Air Quality
WN34S Soil temperature
WH31SM Soil Moisture

User avatar
Daali
Advisor
Advisor
Posts: 56
Joined: Mon Jul 26, 2021 8:06 pm
Location: Georgia, US
Station model: Ecowitt GW1002
Software: Meteobridge, FOSHKplugin
Contact:

Re: Question about forecast ?

Post by Daali » Wed Aug 25, 2021 12:33 am

It actually should be cleaner to use the visualcrossing API since it dumps 15-day forecast(with individual 24 hour data points) vs darksky's (currently, hourly[48 data points], daily [8 data points], and flags)
https://www.jeffersonweather.com
GW1000 gateway
WS68 Anemometer
WH40 Rain Gauge
WH32 Temp/Hum
WH57 Lightning
WH41 PM2.5 Air Quality
WH45 PM2.5/10/Co2 Air Quality
WN34S Soil temperature
WH31SM Soil Moisture

alexvanuxem
Forecaster
Forecaster
Posts: 182
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Question about forecast ?

Post by alexvanuxem » Thu Mar 24, 2022 7:56 pm

I added the visualcrossing api in the darksky api field, as mentioned above.
and it works!

I can now choose the darksky forecast, nice!
thx

but in the current conditions, i selected the use the darksky icon, but doesn't show up,
in the forecast comparision plugin, no data either, (same for yr.no,...)

but progress!

grtz
alex
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Question about forecast ?

Post by davidefa » Fri Mar 25, 2022 10:59 pm

You can try this mod ( it uses the openweathermap.org api, which is more similar to the original darksky api).
Copy in the pages directory and unzip the file.
Register to openweathermap.org generate an api key and copy in place of the DarkSky api key ( in the meteotemplate main setup ).
Not sure everything is ok ( I have never seen the darksky version )
Attachments
forecast_1.0a.zip
(694.6 KiB) Downloaded 47 times
Image

alexvanuxem
Forecaster
Forecaster
Posts: 182
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Question about forecast ?

Post by alexvanuxem » Sat Mar 26, 2022 10:01 am

thx, I will play with it.

maybe a stupid question:

i can see https://www.sint-katelijne-waver-meteo. ... /forecast/

but how do I add it to the menu, is it through 'custom pages'

grtz

Alex
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: Question about forecast ?

Post by davidefa » Sat Mar 26, 2022 10:26 am

In your menu add a line:

Code: Select all

#default(outlook)
Image

alexvanuxem
Forecaster
Forecaster
Posts: 182
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Question about forecast ?

Post by alexvanuxem » Sat Mar 26, 2022 7:34 pm

thank you,

works all fine, at first glance,

check it out on

https://www.sint-katelijne-waver-meteo. ... esktop.php

thank you

Grtz

Alex
Image

Post Reply