• 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.

Combine time-of-day and current weather compliments?

Scheduled Pinned Locked Moved Solved Troubleshooting
complimentsmoduleconfig
2 Posts 1 Posters 1.9k Views 1 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.
  • R Offline
    RobThree
    last edited by Oct 11, 2018, 1:30 PM

    The Wiki mentions:

    If use the currentweather is possible use a actual weather for set compliments.

    However, it’s not clear to me if we can combine the time-of-day with the current weather compliments. So for example:

        {
            "anytime" : [
                "Hi, sexy!"
            ],
            "morning" : [
                "Have a good day!"
            ],
            "afternoon" : [
                "Almost dinnertime!"
            ],
            "evening" : [
                "You rock!"
            ],
            "day_sunny" : [
                "It's gonna be a sunny day!"
            ],
            "rain" : [
                "Bring an umbrella today!!"
            ],
            "night_clear" : [
                "Good night for stargazing!"
            ],
            "cloudy" : [
                "Cloudy today... hmmm..."
            ]
        }
    

    Currently it’s cloudy so I’d expect to see “Cloudy today… hmmm…”. But all I see is compliments from the time-of-day. Are these two types mutually exclusive or am I doing something wrong?

    1 Reply Last reply Reply Quote 0
    • R Offline
      RobThree
      last edited by RobThree Oct 11, 2018, 1:49 PM Oct 11, 2018, 1:43 PM

      Hmm, nevermind… I created a debug.json to figure out which values are currently actually used and it turns out it’s cloudy_windy… not cloudy. My bad.

      So to debug this yourself, just point the remoteFile to this link or add this to your compliments config:

      {
          "anytime" : ["anytime"],
          "morning" : ["morning"],
          "afternoon" : ["afternoon"],
          "evening" : ["evening"],
          "day_sunny" : ["day_sunny"],
          "day_cloudy" : ["day_cloudy"],
          "cloudy" : ["cloudy"],
          "cloudy_windy" : ["cloudy_windy"],
          "showers" : ["showers"],
          "rain" : ["rain"],
          "thunderstorm" : ["thunderstorm"],
          "snow" : ["snow"],
          "fog" : ["fog"],
          "night_clear" : ["night_clear"],
          "night_cloudy" : ["night_cloudy"],
          "night_showers" : ["night_showers"],
          "night_rain" : ["night_rain"],
          "night_thunderstorm" : ["night_thunderstorm"],
          "night_snow" : ["night_snow"],
          "night_alt_cloudy_windy" : ["night_alt_cloudy_windy"]
      }
      
      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