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.

    Compliment from calendar event

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    5 Posts 2 Posters 667 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.
    • S Offline
      sdmydbr9
      last edited by

      Has anyone got any idea or a working module to display calendars events as a compliment?

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        MMRIZE @sdmydbr9
        last edited by

        @sdmydbr9
        I think it’s not so difficult to create the module, but what is different with the view which shows only one event upcoming on default calendar module?

        S 3 Replies Last reply Reply Quote 0
        • S Offline
          sdmydbr9 @MMRIZE
          last edited by

          @MMRIZE I have come across a module which displays compliments based on notification received but unfortunately I’m unable to integrate it together mainly due to lack of skills. The name of the module is compliments-plus

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdmydbr9 @MMRIZE
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • S Offline
              sdmydbr9 @MMRIZE
              last edited by

              @MMRIZE

              
              {
              	classes: "default scheduler",
              	module: "compliments_plus",
              	position: "middle_center",
              	disabled: false,
              	config: {
              		module_schedule: {from: '0-59/10 * * * *', to: '5-59/10 * * * *'},
              		updateInterval: 30000,
              		remoteFile: null,
              		fadeSpeed: 4000,
              		random: true,
              		mockDate: null,
              		classes: "compliments_plus thin large pre-line",
              
              //	the beginning of the day period
              
              		morning: 5,
              		noon: 12,
              		afternoon: 15,
              		evening: 18,
              		night: 22,
              		midnight: 1,
              
              		compliments: {
              			"AQI_1" : [
              				"<i class=\"fa fa-leaf lime\"></i> Air Quality Good",
              			],
              			"AQI_2" : [
              				"<i class=\"fa fa-leaf yellow\"></i> Air Quality Fair, mask on",
              			],
              			"AQI_3" : [
              				"<i class=\"fa fa-leaf orange\"></i> Air Quality Moderate, mask on",
              			],
              			"AQI_4" : [
              				"<i class=\"fa fa-leaf orangered\"></i> Air Quality Poor, need air purifier",
              			],
              			"AQI_5" : [
              				"<i class=\"fa fa-leaf redrf\"></i> Air Quality Unhealty, dont breathe",
              			],
              			"25-12-...." : [
              				"<i class=\"fa fa-snowman\"></i> Marry Christmas!"
              			],
              			"01-01-....": [
              				function() {return "<i class=\"fa fa-glass-cheers\"></i> Happy New Year! " + moment().format("YYYY")}
              			],
              			"..-..-....": [
              				function() {return moment().locale(config.language).format("dddd, D MMMM")}
              			],
              		}
              	},
              	},
              
              

              The config for the module

              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 Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy