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

    Posts

    Recent Best Controversial
    • RE: remoteFile in compliments module

      @schlachtkreuzer6 said in remoteFile in compliments module:

      @DvdEnde Great :) did you manage to run the weather-dependent compliments? My goal is to add all weather conditions based compliments. The normal compliments work, just need some time to load after starting MM from 30 seconds to 3mins. But if a add all of them:

      day_sunny
      day_cloudy
      cloudy
      cloudy_windy
      showers
      rain
      thunderstorm
      snow
      fog
      night_clear
      night_cloudy
      night_showers
      night_rain
      night_thunderstorm
      night_snow
      night_alt_cloudy_wind
      

      in this format:

       ],
              "fog" : [
                      "fog, oh no :("
       ],
      ......
      

      MM starts to show the default comliments. Any Idea?

      This is the exact problem I’m running into as well. I can get the remoteFile to work if I just use the default times of day, but if I try using the currentweather objects, it just goes back to the default compliments.

      posted in Troubleshooting
      J
      jcorraliza
    • RE: remoteFile in compliments module

      @schlachtkreuzer6

      it´s working with my custom compliments in the config.js perfectly. but when i try this code:

      {
      	"module": "compliments",
      	"position": "lower_third",
      	"config": {
      		"remoteFile": "compliments.json"
      	}
      },
      

      MM showing the error srceen that i had to set up a config file.

      You have to get rid of those quotes around module, position, config, and remoteFile. It should look like this:

      {
      	module: 'compliments',
      	position: 'lower_third',
      	config: {
      		remoteFile: 'compliments.json'
      	}
      },
      
      posted in Troubleshooting
      J
      jcorraliza
    • RE: remoteFile in compliments module

      @schlachtkreuzer6 said in remoteFile in compliments module:

      @jcorraliza post your config.js and your remotefile pls

      Hi there, I posted them a few posts up. It works with the time of day objects, but not with the currentweather objects in my .json file. I’m using v2.1.0, dev branch, and I’m using the currentweather default module.

      posted in Troubleshooting
      J
      jcorraliza
    • RE: remoteFile in compliments module

      @yawns OK I created a compliments_test.json file and pasted your example into it and it worked. It looks like it just doesn’t work with the currentweather objects in my compliments.json file for some reason. Do I need to nest the currentweather objects within the morning, afternoon, and evening arrays perhaps?

      posted in Troubleshooting
      J
      jcorraliza
    • RE: remoteFile in compliments module

      @strawberry-3.141 Sure, I placed the compliments.json file in ~/MagicMirror/modules/default/compliments directory.

      My config.js is as follows:

       {
                              module: 'compliments',
                              position: 'lower_third',
                              config: {
                                      remoteFile: 'compliments.json'
                              }
      },
      

      My compliments.json file is set up with currentweather arrays:

      {
      	"day_sunny" : [
      	        "The sun is shining today!",
              	"It\'s such a beautiful day",
      		"It\'s gorgeous outside, go play!"
          	],
          	"day_cloudy" : [
      		"It\'s cloudy out there, but no meatballs",
      		"It may be cloudy, but it\'s still nice out!",
      		"The sun is hiding right now"
          	],
      	"cloudy" : [
              	"Good morning, sunshine!",
              	"Who needs coffee when you have your smile?",
              	"Go get 'em, Tiger!"
          	],
      	"cloudy_windy" : [
              	"Good morning, sunshine!",
              	"Who needs coffee when you have your smile?",
              	"Go get 'em, Tiger!"
      	],
      	"showers" : [
              	"Good morning, sunshine!",
              	"Who needs coffee when you have your smile?",
              	"Go get 'em, Tiger!"
          	],
      	"rain" : [
              	"Take your umbrella with you.",
              	"It's wet out there, drive safe!",
      	        "It's rainy outside, but you brighten my day."
          	],
      	"thunderstorm" : [
      	        "Good morning, sunshine!",
              	"Who needs coffee when you have your smile?",
              	"Go get 'em, Tiger!"
          	],
      	"fog" : [
      	        "Good morning, sunshine!",
              	"Who needs coffee when you have your smile?",
              	"Go get 'em, Tiger!"
         	],
          	"night_clear" : [
        		"You made someone smile today, I know it.",
             		"You are making a difference.",
              	"The day was better for your efforts."
          	],
      	"night_cloudy" : [
              	"Good morning, sunshine!",
              	"Who needs coffee when you have your smile?",
              	"Go get 'em, Tiger!"
          	],
      	"night_showers" : [
              	"Good morning, sunshine!",
              	"Who needs coffee when you have your smile?",
              	"Go get 'em, Tiger!"
          	],
      	"night_rain" : [
      	        "Good morning, sunshine!",
              	"Who needs coffee when you have your smile?",
              	"Go get 'em, Tiger!"
          	],
      	"night_thunderstorm" : [
              	"It\'s a stormy night, don\'t be scared",
              	"Thunderstorms tonight, Oliver\'s covering his ears"
          	],
      	"night_alt_cloudy_windy" : [
              	"Good morning, sunshine!",
              	"Who needs coffee when you have your smile?",
              	"Go get 'em, Tiger!"
       	]
      }
      

      I started filling in custom messages, then decided to copy/paste them all just in case it didn’t work. See anything I’m doing wrong? Thanks!

      posted in Troubleshooting
      J
      jcorraliza
    • RE: remoteFile in compliments module

      Hi there, just want to add that I am also unable to get the remoteFile to work. I have it configured as specified above using the currentweather items, but my mirror still shows the default phrases.

      posted in Troubleshooting
      J
      jcorraliza
    • 1 / 1