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

    ZtM

    @ZtM

    3
    Reputation
    420
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    ZtM Unfollow Follow

    Best posts made by ZtM

    • RE: remoteFile in compliments module

      Here is how I got the remote file compliments to work:

      1. The config.js settings must name the remote file with no path:
      		{
      			module: 'compliments',
      			position: 'bottom_bar',
      			config: {
      				remoteFile: 'compliments.json'
      			}
      		},        
      

      IMO it would be great if it were possible to put a full path the the remote file so it can be stored in the config directory.

      1. Create a compliments.json file and be sure to put double quotes around the array names like so:
      {
      	"morning" : [
      		"You're good enough, you're smart enough and doggone it, people like you!"
      	],
      	"afternoon" : [
      		"Yes those jeans make you look fat."
      	],
      	"evening" : [
      		"Please put on some pants."
      	]
      }
      
      
      1. Put the remote file (compliments.json) into the ~/MagicMirror/modules/default/compliments directory.

      2. Restart MM. It will show the default compliment (usually “Hi Sexy”) for the first interval and then will start showing compliments from the external file.

      Hope this helps

      posted in Troubleshooting
      Z
      ZtM
    • RE: Where are you from?

      San Jose, CA
      alt text

      posted in General Discussion
      Z
      ZtM

    Latest posts made by ZtM

    • RE: Motion Detect/PIR-Sensor tvservice -p does not turn on TV

      I did the same thing with a webcam and motion. I could not get tvservice to work but no matter, vcgencmd works well:

      #!/bin/bash
      #end-motion.sh
      
      echo STOP MOTION
      
      vcgencmd display_power 0
      
      #!/bin/bash
      #start-motion.sh
      
      echo START MOTION
      
      vcgencmd display_power 1
      

      It took a while to get these commands working because of the permissions so double check all your commands run as the user you want and change perms, groups accordingly if not.

      posted in Troubleshooting
      Z
      ZtM
    • RE: Where are you from?

      San Jose, CA
      alt text

      posted in General Discussion
      Z
      ZtM
    • RE: remoteFile in compliments module

      Here is how I got the remote file compliments to work:

      1. The config.js settings must name the remote file with no path:
      		{
      			module: 'compliments',
      			position: 'bottom_bar',
      			config: {
      				remoteFile: 'compliments.json'
      			}
      		},        
      

      IMO it would be great if it were possible to put a full path the the remote file so it can be stored in the config directory.

      1. Create a compliments.json file and be sure to put double quotes around the array names like so:
      {
      	"morning" : [
      		"You're good enough, you're smart enough and doggone it, people like you!"
      	],
      	"afternoon" : [
      		"Yes those jeans make you look fat."
      	],
      	"evening" : [
      		"Please put on some pants."
      	]
      }
      
      
      1. Put the remote file (compliments.json) into the ~/MagicMirror/modules/default/compliments directory.

      2. Restart MM. It will show the default compliment (usually “Hi Sexy”) for the first interval and then will start showing compliments from the external file.

      Hope this helps

      posted in Troubleshooting
      Z
      ZtM