Hi again, Codefenix.
WxCenter is working great, so I got an API for openweathermaps. I tested it and got this:
Enter city name / zip code (e.g.: Largo, FL, USA): Managua, NI
Retrieving location data for MANAGUA, NI...done!
Finding forecast office for 12.1544,-86.2738...
Contacting OpenWeatherMap.org for 12.1544,-86.2738...!JavaScript wxcenter.js line 342: TypeError: wxObj[period] is undefined
SBBS terminal has this:
Node 1 <Vague> !JavaScript E:\sbbs\xtrn\wxcenter\wxcenter.js line 342: TypeError: wxObj[period] is undefined
WxCenter is working great, so I got an API for openweathermaps. I tested it and got this:
Enter city name / zip code (e.g.: Largo, FL, USA): Managua, NI Retrieving location data for MANAGUA, NI...done! Finding forecast office for 12.1544,-86.2738... Contacting OpenWeatherMap.org for 12.1544,-86.2738...!JavaScript wxcenter.js line 342: TypeError: wxObj[period] is undefined
You're probably still pointed to the One Call API 2.5, which was phased out last year. You may be able to simply update the URL to point to 3.0 instead of 2.5.
Find the const value for OWM_API_URL:
https://api.openweathermap.org/data/2.5/onecall .... (snipped)
I sorta lost interest in APIs after the One Call shake up last year, but recently started reworking WxCenter to use Open-Meteo as the alternate API instead of OpenWeatherMap. It works, but I'm hesitant on whether I'll re-release the changes, since APIs can be unpredictable and I don't want to continue chasing down replacements when one breaks. :/
No luck. Change it to 3.0 and still got the error. Which is super annoying because they even state on their site:
"Please note, that One Call API 3.0 is included in the "One Call by Call" subscription only. This separate subscription includes 1,000 calls/day for free and allows you to pay only for the number of API calls made to this product. Please note, that you do not need to subscribe to any other OpenWeather subscription plans to get access to the One Call API 3.0."
You're not going to get to 1000 requests in a day.
You missed the bit about "Please note that the subscription requires your bank card details".
You're not going to get to 1000 requests in a day.
Sysop: | Lmorchard |
---|---|
Location: | Portland, OR |
Users: | 87 |
Nodes: | 16 (0 / 16) |
Uptime: | 40:24:59 |
Calls: | 551 |
Calls today: | 2 |
Files: | 6 |
Messages: | 28,101 |