Read the statement by Michael Teeuw here.
MMM-SleepWake turn off but not turn on
-
@sdetweil I am sorry to hear that. I hope you will have a fast recovery!
I don’t understand which parameters I am suppose to change inside motion.confI have also checked the documentation but sorry…I don’t get your point.
Here is the list of all the parameters linked to the HTTP based control :############################################################ # HTTP Based Control ############################################################ # TCP/IP port for the http server to listen on (default: 0 = disabled) webcontrol_port 8080 #webcontrol_port 0 # Restrict control connections to localhost only (default: on) webcontrol_localhost on #webcontrol_localhost off # Output for http server, select off to choose raw text plain (default: on) webcontrol_html_output on #webcontrol_html_output off # Authentication for the http based control. Syntax username:password # Default: not defined (Disabled) ; webcontrol_authentication username:password # Parameters to include on webcontrol. 0=none, 1=limited, 2=advanced, 3=restricted # Default: 0 (none) webcontrol_parms 0
-
@krosamont change the magicmirror port to like 8090
-
@krosamont said in MMM-SleepWake turn off but not turn on:
Hello @chanster,
How do you run your magic mirror project please?I have a script that starts Motion whenever my Rpi restarts :
#!/bin/bash cd /home/pi/.motion/ sudo motion &
You need to make sure that you are running Motion in the directory where it installed ie “.motion”. If you start motion outside of this directory, it’ll use a generic motion config not your config in the “.motion” directory.
If Motion is detecting motion properly, you see lines like these in your motion log :
motion_detected: Motion detected - starting event 1 mlp_actions: End of event 1 event_newfile: File of type 8 saved to: /home/pi/Pictures/motion/02-20210109005258.mkv
The directory where these files are being saved to is what you define in your motion config. Look in that folder to make sure you have files showing up there. If you don’t see any files being saved in that directory, it means Motion is not using your motion config but the generic motion config. Refer to my bolded comments above.
Hopefully this helps.
-
@chanster pm2 could start motion on boot too
-
-
@krosamont i wanted to try that, never got there
-
@sdetweil Thanks sincerely for your time and your willingness. I would like to start to fork and try implement modification on some modules but I am not confident enough in Javascript. Do you have any suggestion for me. Where to start? Should I go with nodeJS basic tutorials?
-
@krosamont thats as good as any place. see my sample module
-
@sdetweil Thank you for sharing :)