MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. amarko87
    3. Topics
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Groups 0

    Topics

    • A

      Shrink font size or limit column width to preserve spacing

      Watching Ignoring Scheduled Pinned Locked Moved Solved Troubleshooting
      3
      0 Votes
      3 Posts
      553 Views
      A
      @sdetweil Got what I needed out of that, thanks!
    • A

      Can I round Precipitation Units

      Watching Ignoring Scheduled Pinned Locked Moved Solved Troubleshooting
      5
      0 Votes
      5 Posts
      854 Views
      kayakbabeK
      I figured it out. I wanted to round it off too. No decimal places. You have to edit the template files. look for the showPrecipitationAmount if statement. I altered the output a little bit… see below for what I did. in forecast.njk {% if config.showPrecipitationAmount %} {% if f.precipitationUnits %} <td class="align-right bright precipitation"> {{ f.precipitation }}{{ f.precipitationUnits }} </td> {% else %} {% if f.pop %} <td class="align-right precipitation"> {{(f.pop * 100).toFixed(0)}}% </td> {% endif %} <td class="align-right bright precipitation"> {{ f.precipitation | unit("precip") }} </td> {% endif %} {% endif %} I found info on the templates by googling nunchucks templates.
    • 1 / 1