Read the statement by Michael Teeuw here.
How Can I change the icons of the weather
-
Hi, I was wondering if someone could help me figure out how to change the icons of the current weather and forecast weather default modules, to the ones that are here:
This is my first MM so all the help is very appreciated
-
from my post in discord channel
both modules use a table of icon class names
iconTable: { "01d": "wi-day-sunny", "02d": "wi-day-cloudy", "03d": "wi-cloudy", "04d": "wi-cloudy-windy", "09d": "wi-showers", "10d": "wi-rain", "11d": "wi-thunderstorm", "13d": "wi-snow", "50d": "wi-fog", "01n": "wi-night-clear", "02n": "wi-night-cloudy", "03n": "wi-night-cloudy", "04n": "wi-night-cloudy", "09n": "wi-night-showers", "10n": "wi-night-rain", "11n": "wi-night-thunderstorm", "13n": "wi-night-snow", "50n": "wi-night-alt-cloudy-windy" },and both modules reference the weather-icons.css file
./vendor/node_modules/weathericons/css/weather-icons.css
which links the classname to a fontawesome iconyou can add entries to the ~/MagicMirror/css/custom.css for those modules to replace the names with new icon references
.currentweather .wi-night-cloudy { ???? for the new icon for cloudy night, }; -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login