Read the statement by Michael Teeuw here.
Weatherbit Unit
-
@matthewlawson3 MMM-OpenWeatherForecast is the best.
-
@bkeyport I noticed that on the city list provided by Open Weather that it has the wrong latitude and longitude for my city. I’ll have to double check, but if I recall correctly it had it wrong.
I don’t suppose one can input coordinates manually?
-
All I did was go to Google maps, found my “village” coordinates and plugged them into lat and long in the config.sys and “Bob’s your uncle”.
-
@george Thanks. I tried using “unit” in the config area of the module and set it to imperial and also tried just the letter “I” and when I launched with npm start it said something was wrong with the config file.
-
@scumbelly this was with OpenWeather? If so, I’ll try that rather than going through the OpenWeather city ID list and looking for my city.
-
From the module .js file…
Module.register(“MMM-OpenWeatherForecast”, {
/*
This module uses the Nunjucks templating system introduced in
version 2.2.0 of MagicMirror. If you’re seeing nothing on your
display where you expect this module to appear, make sure your
MagicMirror version is at least 2.2.0.
*/
requiresVersion: “2.2.0”,defaults: {
apikey: “”,
latitude: “”,
longitude: “”,…and add lat and long into the config.js (sorry for wrong extension in earlier post).
Example,
{ module: "MMM-OpenWeatherMapForecast", disabled: false, header: "", position: "top_right", config: { apikey: "wholelottanumbers", latitude: "4X.XXXXXX", longitude: "-7X.XXXXXX", iconset: "4c", concise: false, forecastLayout: "table", showCurrentConditions: false, showExtraCurrentConditions: false, showSummary: false, showForecastTableColumnHeaderIcons: false } },
Cheers
-
@scumbelly @scumbelly I am running version 2.14.0
I don’t see that particular information in the config file. Below is what I see. Do I need to install OpenWeather from the 3rd party modules even though it was pre-installed? Or can I just copy and paste in what you have given me?
{
module: “currentweather”,
position: “top_right”,
config: {
location: “Dandridge”,
locationID: “5128581”, //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
appid: “YOUR_OPENWEATHER_API_KEY”
}
},
{
module: “weatherforecast”,
position: “top_right”,
header: “Weather Forecast”,
config: {
location: “New York”,
locationID: “5128581”, //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
appid: “YOUR_OPENWEATHER_API_KEY”
}
}, -
@scumbelly I went ahead and installed the MMM OpenWeather module you mentioned and got it working. I was able to add in Lat and Long. Now how do I make it Fahrenheit? I am trying to place units in the module and when MM launches it acts like their is an error in the config file. Here is the module…
{ module: "MMM-OpenWeatherMapForecast", header: "Weather", position: "top_right", classes: "default everyone", disabled: false, config: { apikey: "removed", latitude: "36.016651", longitude: "-83.415611", iconset: "4c", concise: false, forecastLayout: "table" units: "imperial", } },
-
-
@sdetweil Oh sorry! Just a small thing. I went ahead and changed the overall MagicMirror setting in the config file to imperial and that worked without me having to adjust the module itself. Got it working now! Appreciate the help!