• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Adding a new line on Current Weather module (the default one)

Scheduled Pinned Locked Moved Unsolved Troubleshooting
2 Posts 2 Posters 261 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    bboromatt
    last edited by Jun 13, 2022, 12:11 AM

    For the module “Weather” that is the default module, i was wondering in the files, where i can add a new line below feels like?

    I play pickleball alot, and if anyone plays it, knows that the weather has a huge impact, including wind speeds. I was looking to add a new line and add a new function to say if windspeed > 10 show “Dont Play” else Play…also i would need to figure out adding Rain into the mix but that is down the line.

    If this can be done for Current weather and also for hourly, that would be greatly appeciated

    S 1 Reply Last reply Jun 13, 2022, 12:27 AM Reply Quote 0
    • S Away
      sdetweil @bboromatt
      last edited by Jun 13, 2022, 12:27 AM

      @bboromatt the new weather module uses the njk templating engine. see the njk files.

      this takes data from a data structure and lays it out according to the template.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        1/2
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Sam, technical setup by Karsten.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy