mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
Correct apibase of weathergov weatherprovider to match documentation (#2927)
Fixes part of #2926
This commit is contained in:
parent
fb5fab8145
commit
3bf848075d
@ -25,6 +25,7 @@ _This release is scheduled to be released on 2024-04-01._
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- Correct apibase of weathergov weatherprovider to match documentation (#2926)
|
||||||
- Worked around several issues in the RRULE library that were causing deleted calender events to still show, some
|
- Worked around several issues in the RRULE library that were causing deleted calender events to still show, some
|
||||||
initial and recurring events to not show, and some event times to be off an hour. (#3291)
|
initial and recurring events to not show, and some event times to be off an hour. (#3291)
|
||||||
- Skip changelog requirement when running tests for dependency updates (#3320)
|
- Skip changelog requirement when running tests for dependency updates (#3320)
|
||||||
|
@ -34,7 +34,6 @@ WeatherProvider.register("weathergov", {
|
|||||||
// Called to set the config, this config is the same as the weather module's config.
|
// Called to set the config, this config is the same as the weather module's config.
|
||||||
setConfig (config) {
|
setConfig (config) {
|
||||||
this.config = config;
|
this.config = config;
|
||||||
this.config.apiBase = "https://api.weather.gov";
|
|
||||||
this.fetchWxGovURLs(this.config);
|
this.fetchWxGovURLs(this.config);
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -118,7 +117,7 @@ WeatherProvider.register("weathergov", {
|
|||||||
* Get specific URLs
|
* Get specific URLs
|
||||||
*/
|
*/
|
||||||
fetchWxGovURLs (config) {
|
fetchWxGovURLs (config) {
|
||||||
this.fetchData(`${config.apiBase}/points/${config.lat},${config.lon}`)
|
this.fetchData(`${config.apiBase}/${config.lat},${config.lon}`)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
if (!data || !data.properties) {
|
if (!data || !data.properties) {
|
||||||
// points URL did not respond with usable data.
|
// points URL did not respond with usable data.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user