MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Take in the weather and write.

    General Discussion
    2
    2
    461
    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.
    • Y
      yeonju last edited by

      I want to use the weather as api.
      I’d like to mark the weather with compliments and use the right words.
      For example, take your coat with a temperature of 3 degrees. Like
      Help me what to do. TT

      strawberry 3.141 1 Reply Last reply Reply Quote 0
      • strawberry 3.141
        strawberry 3.141 Project Sponsor Module Developer @yeonju last edited by

        @yeonju the default compliments module has already the possibility to show compliments based on weather https://github.com/MichMich/MagicMirror/tree/master/modules/default/compliments#compliment-configuration

        However, it doesn’t support the temperature, only the weather type.

        If you want to create your own module take a look on this parts of the code:

        • Weather module sending the weather data to other modules https://github.com/MichMich/MagicMirror/blob/master/modules/default/currentweather/currentweather.js#L492
        • Compliments module processing the information https://github.com/MichMich/MagicMirror/blob/master/modules/default/compliments/compliments.js#L168-L198

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy