Page 1 of 1

Question about forecast ?

Posted: Sun Jan 17, 2021 4:23 pm
by meteocharleroi
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

Re: Question about forecast ?

Posted: Wed Aug 25, 2021 12:22 am
by Daali
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

Re: Question about forecast ?

Posted: Wed Aug 25, 2021 12:33 am
by Daali
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)

Re: Question about forecast ?

Posted: Thu Mar 24, 2022 7:56 pm
by alexvanuxem
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

Re: Question about forecast ?

Posted: Fri Mar 25, 2022 10:59 pm
by davidefa
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 )

Re: Question about forecast ?

Posted: Sat Mar 26, 2022 10:01 am
by alexvanuxem
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

Re: Question about forecast ?

Posted: Sat Mar 26, 2022 10:26 am
by davidefa
In your menu add a line:

Code: Select all

#default(outlook)

Re: Question about forecast ?

Posted: Sat Mar 26, 2022 7:34 pm
by alexvanuxem
thank you,

works all fine, at first glance,

check it out on

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

thank you

Grtz

Alex