A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Subcategories

  • Share your custom style sheets with the community!

    23 Topics
    296 Posts
    K

    @sdetweil Thank you! I will start playing with and learning CSS. Thank you for the quick demo!

  • You have questions regarding CSS?

    111 Topics
    653 Posts
    K

    Hi everyone, i have no clue what im doing…i dont know how to code or really how the rpi/magicmirror works but here i am. So basically im using the default weather module (as it works) and i just wanna replace those icons with custom icons. I also wanna note that im using openmeteo and not the default openweathermap or wtv its called because it didn’t work.

    here is my config.js file (the weather part):

    module: "weather", position: "top_right", // Adjust position as needed locationName: "xxxx", displayLocation: "xxxx", header: "xxxx", config: { locationName: "xxxx", displayLocation: "xxxx", header: "xxxx", weatherProvider: "openmeteo", // Specify the Open-Meteo provider apiBase: "https://api.open-meteo.com/v1", // REQUIRED: Base URL for Open-Meteo lat: xxxx, // REQUIRED: Latitude of the location lon: xxxx, // REQUIRED: Longitude of the location maxNumberOfDays: 8, // OPTIONAL: Number of forecast days (default is 5) pastDays: 0, // OPTIONAL: Number of past days of data to include (default is 0) units: "imperial", // Set this to 'imperial' for Fahrenheit and miles per hour tempUnits: "imperial", // Make sure to match with 'imperial' windUnits: "imperial", type: "current", // OPTIONAL: Change to "current" if only current weather data is desired iconTable: { '0': 'wi-day-sunny', // Clear sky '1': 'wi-day-cloudy', // Mainly clear '2': 'wi-cloudy', // Partly cloudy '3': 'wi-cloudy', // Overcast '45': 'wi-fog', // Fog '48': 'wi-fog', // Depositing rime fog '51': 'wi-showers', // Drizzle: Light intensity '53': 'wi-showers', // Drizzle: Moderate intensity '55': 'wi-showers', // Drizzle: Dense intensity '56': 'wi-sleet', // Freezing drizzle: Light intensity '57': 'wi-sleet', // Freezing drizzle: Dense intensity '61': 'wi-rain', // Rain: Slight '63': 'wi-rain', // Rain: Moderate '65': 'wi-rain', // Rain: Heavy intensity '66': 'wi-sleet', // Freezing rain: Light intensity '67': 'wi-sleet', // Freezing rain: Heavy intensity '71': 'wi-snow', // Snow fall: Slight '73': 'wi-snow', // Snow fall: Moderate '75': 'wi-snow', // Snow fall: Heavy intensity '77': 'wi-snow', // Snow grains '80': 'wi-showers', // Rain showers: Slight '81': 'wi-rain', // Rain showers: Moderate '82': 'wi-rain', // Rain showers: Violent '85': 'wi-snow', // Snow showers: Slight '86': 'wi-snow', // Snow showers: Heavy '95': 'wi-thunderstorm', // Thunderstorm: Slight or moderate '96': 'wi-thunderstorm', // Thunderstorm with slight hail '99': 'wi-thunderstorm' // Thunderstorm with heavy hail } } }, { module: "weather", position: "top_right", // Adjust position as needed locationName: "xxxx", displayLocation: "xxxx", header: "xxxx", config: { locationName: "xxxx", displayLocation: "xxxx", header: "xxxx", weatherProvider: "openmeteo", // Specify the Open-Meteo provider apiBase: "https://api.open-meteo.com/v1", // REQUIRED: Base URL for Open-Meteo lat: xxxx, // REQUIRED: Latitude of the location lon: xxxx, // REQUIRED: Longitude of the location maxNumberOfDays: 8, // OPTIONAL: Number of forecast days (default is 5) pastDays: 0, // OPTIONAL: Number of past days of data to include (default is 0) units: "imperial", // Set this to 'imperial' for Fahrenheit and miles per hour tempUnits: "imperial", // Make sure to match with 'imperial' windUnits: "imperial", type: "forecast", // OPTIONAL: Change to "current" if only current weather data is desired iconTable: { '0': 'wi-day-sunny', // Clear sky '1': 'wi-day-cloudy', // Mainly clear '2': 'wi-cloudy', // Partly cloudy '3': 'wi-cloudy', // Overcast '45': 'wi-fog', // Fog '48': 'wi-fog', // Depositing rime fog '51': 'wi-showers', // Drizzle: Light intensity '53': 'wi-showers', // Drizzle: Moderate intensity '55': 'wi-showers', // Drizzle: Dense intensity '56': 'wi-sleet', // Freezing drizzle: Light intensity '57': 'wi-sleet', // Freezing drizzle: Dense intensity '61': 'wi-rain', // Rain: Slight '63': 'wi-rain', // Rain: Moderate '65': 'wi-rain', // Rain: Heavy intensity '66': 'wi-sleet', // Freezing rain: Light intensity '67': 'wi-sleet', // Freezing rain: Heavy intensity '71': 'wi-snow', // Snow fall: Slight '73': 'wi-snow', // Snow fall: Moderate '75': 'wi-snow', // Snow fall: Heavy intensity '77': 'wi-snow', // Snow grains '80': 'wi-showers', // Rain showers: Slight '81': 'wi-rain', // Rain showers: Moderate '82': 'wi-rain', // Rain showers: Violent '85': 'wi-snow', // Snow showers: Slight '86': 'wi-snow', // Snow showers: Heavy '95': 'wi-thunderstorm', // Thunderstorm: Slight or moderate '96': 'wi-thunderstorm', // Thunderstorm with slight hail '99': 'wi-thunderstorm' // Thunderstorm with heavy hail } } },

    sorry if that looks bad…also note that i got that table from this reddit post (the second image in the post): https://www.reddit.com/r/filemaker/comments/14yrpb9/openmeteo_weather_api_integration_free_icons_free/

    here is my custom.css file:

    /*! * Weather Icons 2.0.8 * Updated September 19, 2015 * Weather themed icons for Bootstrap * Author - Erik Flowers - erik@helloerik.com * Email: erik@helloerik.com * Twitter: http://twitter.com/Erik_UX * ------------------------------------------------------------------------------ * Maintained at http://erikflowers.github.io/weather-icons * * License * ------------------------------------------------------------------------------ * - Font licensed under SIL OFL 1.1 - * http://scripts.sil.org/OFL * - CSS, SCSS and LESS are licensed under MIT License - * http://opensource.org/licenses/mit-license.html * - Documentation licensed under CC BY 3.0 - * http://creativecommons.org/licenses/by/3.0/ * - Inspired by and works great as a companion with Font Awesome * "Font Awesome by Dave Gandy - http://fontawesome.io" */ @font-face { font-family: 'weathericons'; src: url('../font/weathericons-regular-webfont.woff') format('woff'); font-weight: normal; font-style: normal; } .wi { display: inline-block; font-family: 'weathericons'; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .wi-fw { text-align: center; width: 1.4em; } .wi-rotate-90 { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); -webkit-transform: rotate(90deg); -ms-transform: rotate(90deg); transform: rotate(90deg); } .wi-rotate-180 { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); } .wi-rotate-270 { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); } .wi-flip-horizontal { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1); -webkit-transform: scale(-1, 1); -ms-transform: scale(-1, 1); transform: scale(-1, 1); } .wi-flip-vertical { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1); -webkit-transform: scale(1, -1); -ms-transform: scale(1, -1); transform: scale(1, -1); } /* Current Weather Icons */ .currentweather .wi-day-sunny { content: url("/home/kool/MagicMirror/css/icons/6fa/day.svg") !important; } .currentweather .wi-night-clear { content: url("/home/kool/MagicMirror/css/icons/6fa/night.svg") !important; } .currentweather .wi-cloudy { content: url("/home/kool/MagicMirror/css/icons/6fa/cloudy.svg") !important; } .currentweather .wi-fog { content: url("/home/kool/MagicMirror/css/icons/6fa/fog.svg") !important; } .currentweather .wi-rain { content: url("/home/kool/MagicMirror/css/icons/6fa/rain.svg") !important; } /* Add more current weather icons as needed */ /* Weather Forecast Icons */ } .weatherforecast .wi-day-sunny { content: url("/home/kool/MagicMirror/css/icons/6fas/day.svg") !important; } .weatherforecast .wi-night-clear { content: url("/home/kool/MagicMirror/css/icons/6fa/night.svg") !important; } .weatherforecast .wi-cloudy { content: url("/home/kool/MagicMirror/css/icons/6fa/cloudy.svg") !important; } .weatherforecast .wi-fog { content: url("/home/kool/MagicMirror/css/icons/6fa/fog.svg") !important; } .weatherforecast .wi-rain { content: url("/home/kool/MagicMirror/css/icons/6fa/rain.svg") !important; } /* Hide Humidity */ .humidity { display: none !important; }

    I got the icons from this other weather module (but that module didn’t work as openweathermap is like glitchy or something)… weather module link: https://github.com/MarcLandis/MMM-OpenWeatherMapForecast
    when i try to load the magic mirror, i see the numbers - like whats the weather and stuff, but i keep getting the default weather icons.
    basically my idea was to override the default weather icons with some custom weather icons that i found but its not exactly working
    any help would be greatly appreciated plz help me :(

  • Bring Forward/Send Back

    2
    0 Votes
    2 Posts
    350 Views
    S

    @ankonaskiff17 use the z-index in css on the module content

    use the dev window to test

    more positive is closer to the user on top of things more negative is away from the user, behind things

  • Text wrapping in table

    4
    0 Votes
    4 Posts
    528 Views
    S

    @ankonaskiff17 note there are two different date format strings

    dates and times
    full dates ( all day)

  • MMM-Calendar Ext2 google calendar colors

    6
    0 Votes
    6 Posts
    2k Views
    F

    @sdetweil Sorry about that, thank you

  • Compliments mod using custom.css

    6
    0 Votes
    6 Posts
    846 Views
    M

    @sdetweil Appreciate the help Thanks

  • MMM-berfex Change font size

    8
    0 Votes
    8 Posts
    767 Views
    S

    @rantanplan you can do the debug from your pc, and still have the 7 in be fine

    in config.js
    set
    address:“0.0.0.0”,
    ipWhiltelist:[],

    then u can connect to MM from your desktop and debug…
    hit f5 to reload the pc MM page with the updated css…

    use the bitvise ssh client, you can edit the files on the pi from your pc… by double click like on the pc
    (enable ssh on the pi too)

  • 0 Votes
    3 Posts
    637 Views
    M

    @MMRIZE tnx alot mate

  • MMM-network-signal - make the message text larger

    18
    0 Votes
    18 Posts
    2k Views
    S

    @mumblebaj well, it made the font bigger, but NOT 1.5em…

  • Another way of identifying which event is associated with which Calendar

    4
    0 Votes
    4 Posts
    616 Views
    Thorn2910T

    @ruff-hi

    That is exactly the alternative which I showed

    { module: "calendar", header: "House", position: "top_left", maximumEntries: "3", config: { colored: true, tableClass: "small", calendars: [ { symbol: "fas fa-house-user", maximumEntries: "2", color: "rgb(121, 0, 86)", url: "https://calendar.google.com/calendar/ical/xxx/basic.ics" } ] } }, { module: "calendar", header: "Trash", position: "top_left", maximumEntries: "3", config: { colored: true, tableClass: "small", calendars: [ { symbol: "fas fa-trash", color: "rgb(185, 62, 38)", maximumEntries: "2", url: "https://calendar.google.com/calendar/ical/xxxxx/basic.ics" } ] } },

    Which will look like this

    5ddd9a13-36aa-47ad-a265-e6e9b94e367a-grafik.png

  • Font Awsome icons in the header

    11
    0 Votes
    11 Posts
    2k Views
    K

    @hango !important; Did the tricks!

    Thanks so much with the help.

  • Need Help to organize

    5
    0 Votes
    5 Posts
    723 Views
    KristjanESPERANTOK

    Which fork are you using? This fork from redxeagle seems to be the most recent. And the tables are displayed properly there in the screenshots. Unfortunately, I don’t have ioBroker devices, otherwise I would have taken a closer look.

    Since no one else is responding here, I suggest you open an issue on the module’s GitHub repository.

  • Google Task module

    9
    0 Votes
    9 Posts
    2k Views
    S

    @bigschucks what does this contribute to the topic?

  • Default weather color change

    2
    0 Votes
    2 Posts
    1k Views
    bigschucksB

    Thank you. Really looks cool. Genuinely emotional over how brilliant this looks. Recently started programming and am currently doing a small project.

  • OpenWx Forecast 'small craft advisories'

    2
    0 Votes
    2 Posts
    281 Views
    B

    @billg

    I didnt realize it wld upload and post.

    The issue you can see is that the extended forecast is pushed off screen when an advisory occurs.

    Thanks

  • Have One Table Cell be Bigger Than Other Cells Surrounding it in CSS?

    2
    0 Votes
    2 Posts
    334 Views
    S

    @jiwkel sorry, don’t understand the request.

    u provided a page content, but that is not what u get for mm.

    open the developers window.

    see this
    https://forum.magicmirror.builders/topic/14862/help-with-a-couple-css-issues?_=1641827783364

    without a specific I’d on the td, you will have to use a specific css selector chain to target that element ( the dev window might give u the chain element tree)
    see
    https://www.w3schools.com/cssref/css_selectors.asp

    this is not a web page or css training site.
    if it’s not MagicMirror related, please delete your post

  • Make a module or region stay on top

    5
    0 Votes
    5 Posts
    744 Views
    F

    Hello,
    maybe a mistake that I will write but have you tried to place the module (top) before the other module (bottom) in Config.js?
    The 2 being on the same “position”!

  • Weather colours

    3
    0 Votes
    3 Posts
    811 Views
    C

    Brilliant thanks

  • MMM-Jeedom - align to left

    11
    0 Votes
    11 Posts
    2k Views
    S

    @sdetweil it’s ok, thx

  • Remove fade from weather

    21
    0 Votes
    21 Posts
    3k Views
    S

    @louise said in Remove fade from weather:

    , the other day I was reading martian

    yep

  • notificationFx.css

    8
    0 Votes
    8 Posts
    643 Views
    R

    @sdetweil yes I just did that I sent you a copy of it

  • Contrasting text on a changing background, again

    6
    0 Votes
    6 Posts
    982 Views
    S

    @mmrize use translator

    he wants to know if there are instructions (how to do, how2) for using this idea w mm.