@kumartrd Have a look at MMM-PIR-Sensor
. You can customize it to suit your requirements. It normally triggers turning the monitor on, and sets a timer to turn the monitor off. Instead, you want to use button actions/notifications to do both, and not use a timer. Instead you can reuse the wake code for sleep. You’ll also need to add a logic test that a button press while asleep wakes, while a button press while awake sleeps. Have a look at this thread for a very thorough explanation.
Read the statement by Michael Teeuw here.
Posts made by ninjabreadman
-
RE: Touch Switch - Wakes From and Puts To Sleep
-
RE: Slim display due to thin space
@Kastore Why not just let the mirror extend past the back of the door? Are there shelves? Just let your mirror wear a backpack.
-
RE: Permission Denied - Config File
@KumarTRD It’s not executable. You need to use an editor to open it, like
nano
:nano ~/MagicMirror/config/config.js
-
RE: Changing units from 'metric' to 'imperial' breaks currentweather module
@sefeing Use the instructions here. You want to
git checkout
the branch by name (in this case, rungit checkout develop
in the~/MagicMirror
folder).You might even be able to use
git cherry-pick 10eb41d31943a4495bf4c4674d52d0b9631a7446
instead, to stay onmaster
but incorporate that specific fix. YMMV. -
RE: How to update the master branch?
@e3v3a I take your point; in my case I’m running a reasonable size card and Raspbian/MM are all that is on the card. I do also mention to delete
MM-Backup
when they’re done. I really just wanted to give them the extra insurance of a full backup. Good call ontar
, but they then need to know how to unpack it.@strawberry-3.141 If you’re using git to stash changes, then you’ve clearly modified other files (IIRC,
config.js
and maybecustom.css
are ignored). As above, I just wanted to give extra assurance that they had a full copy if anything went totally awry. -
RE: updating without losing settings in config, and js files?
@navyvette87 @Cyberwrights is right, and where possible you should migrate your changes into
config.js
,custom.css
, etc.When updating,
git
insists that your files not have changes that conflict with those of the repository. Usegit stash
as outlined here to store your local changes, pull updates from the repo, then restore your own changes. -
RE: Exporting a file from Google Drive with specific mimeType
@luckylooke Great news, is it up and working? Sorry, I never got mine working, but may now try again. Thanks!
-
RE: Displaying data from MySQL database
@wolkenaj
/Test
will tell the shell to look in the root of the filesystem (/
) forTest
. Instead,./
will tell it to look in the current working directory (cwd
), which I suspect is~/MagicMirror
. So./Test
is likely what you want.Worst case, you could use the complete path (
~/MagicMirror/Test
or/home/pi/MagicMirror/Test
) which should also work. I also suggest renamingTest
totest.sh
, just so it’s always immediately apparent that it’s a shell script. -
RE: Request a Twitterfeed
@mediathreat
newsfeed
will refresh the feeds based on theupdateinterval
, so it depends on whether (and how often) TwitRSS refreshes the feeds. -
RE: Improve updatenotification module (to be module selective)
Although I concede I’m not sure how to set the
config
parameters forupdatenotification
inconfig.js
(whether you can set params without instantiating the module).