Log says, that:
units: config.units,
locale: config.locale,
is not right?!?
Log says, that:
units: config.units,
locale: config.locale,
is not right?!?
Hi I tried to use your module.
Followed your instructions to install from github. Works well.
Than I copy past the config, add position, my apiKey, lat and lon.
But I still have now a black MM.
Any idea where to start looking. The MM is working fine if I delete the MMM-WeatherChartD3 lines in the config.
{
module: "MMM-WeatherChartD3",
position: "bottom_right",
config: {
updateInterval: 10 * 60 * 1000,
initialLoadDelay: 5000,
weatherProvider: "openweathermap",
weatherEndpoint: "/onecall",
apiKey: "3e349d84feb10771d8c4bf34cde00000", //i changed to a dummy key
type: "full", // Possible values: hourly, forecast (=daily) or specific value `full` which is a join of data from hourly+daily
lang: config.language,
lat: 52.554000,
lon: 13.463000,
units: config.units,
locale: config.locale,
d3jsVersion: "7", // can either be in format "7.4" or even "7.4.4"
title: "Weather Forecast",
height: 300,
width: 500,
iconSize: undefined, // in px or undefined to define automatically at first call
iconURLBase: "https://raw.githubusercontent.com/erikflowers/weather-icons/master/svg/",
hoursRatio: 0, // Ratio of fetched hours in graph (useful for openweathermap onecall that gives 48h with 1h precision) - 0 or undefined to ignore
showIcons: true,
showNights: true,
showTemperature: true,
showMinMaxTemperature: false,
showFeelsLikeTemp: true,
showPrecipitationAmount: true,
showPrecipitationProbability: true, // Only used when showPrecipitationAmount == true
showSnow: true, // if false: snow is included in precipitations
showPressure: true,
showHumidity: true,
showWind: true,
showAQI: true,
showUVI: true,
}
},
Thank you. I will wait on the next version of MM. :ok_hand:
@sdetweil so I have to use an other weather provider? I really like Yr. They are very precise for Europe.
@sdetweil you are absolute right. But still:
yr.js:311 Could not load weather data. SyntaxError: Unexpected non-whitespace character after JSON at position 4 (line 1 column 5)
at JSON.parse (<anonymous>)
at performWebRequest (utils.js:27:29)
(anonymous) @ yr.js:311
Promise.catch (async)
getStellarDataFromYr @ yr.js:310
getStellarDataFromYrOrCache @ yr.js:268
(anonymous) @ yr.js:231
getStellarData @ yr.js:213
getCurrentWeather @ yr.js:47
fetchCurrentWeather @ yr.js:35
(anonymous) @ weather.js:190
setTimeout (async)
scheduleUpdate @ weather.js:187
start @ weather.js:99
startModules @ loader.js:25
loadNextModule @ loader.js:218
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadModules @ loader.js:221
init @ main.js:471
await in init (async)
(anonymous) @ main.js:593
yr.js:285 Error: SyntaxError: Unexpected non-whitespace character after JSON at position 4 (line 1 column 5)
at yr.js:312:11
(anonymous) @ yr.js:285
Promise.catch (async)
getStellarDataFromYrOrCache @ yr.js:284
(anonymous) @ yr.js:231
getStellarData @ yr.js:213
getCurrentWeather @ yr.js:47
fetchCurrentWeather @ yr.js:35
(anonymous) @ weather.js:190
setTimeout (async)
scheduleUpdate @ weather.js:187
start @ weather.js:99
startModules @ loader.js:25
loadNextModule @ loader.js:218
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadModules @ loader.js:221
init @ main.js:471
await in init (async)
(anonymous) @ main.js:593
yr.js:41 Unable to get stellar data from Yr.
(anonymous) @ yr.js:41
Promise.catch (async)
fetchCurrentWeather @ yr.js:40
(anonymous) @ weather.js:190
setTimeout (async)
scheduleUpdate @ weather.js:187
start @ weather.js:99
startModules @ loader.js:25
loadNextModule @ loader.js:218
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadNextModule @ loader.js:211
await in loadNextModule (async)
loadModules @ loader.js:221
init @ main.js:471
await in init (async)
(anonymous) @ main.js:593
yr.js:42 Uncaught (in promise) Error: Unable to get stellar data from Yr.
at yr.js:42:11
with config:
{
module: "weather",
position: "top_right",
config: {
showHeader: true,
weatherProvider: "yr",
type: "current",
lat: 52.5544,
lon: 13.4635,
//roundTemp: true
}
},
![alt text]( image url)
My config looks like this:
{
module: "weather",
position: "top_right",
config: {
showHeader: true,
weatherProvider: "yr",
type: "current",
lat: "52.5544",
lon: "13.4635",
roundTemp: true,
}
},
But the mirror only says “loading…” all the time.
Any ideas how to deal with that? I use MM v2.24.0
@boehmch very nicely done. Looks like it was designed for that. 👍
@hawkeyepilot69 you can try:
https://github.com/imperian/MMM-TAF
This works nice on my frame at the moment.