What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Can I use mjpg streamer with some scheduled on/off script ?

lostindark

Regular Contributor
Hi guys,
Can you help me with script for automation turn on and off for jpg streamer, something like scheduled led on/off from Merlin's wiki?

Thanks in advance

Sent from my Galaxy Nexus using Tapatalk 2
 
O.k. already I find a solution, here it is:
Script with following commands:

#!/bin/sh
cru a mjpgstop "0 18 * * * /opt/etc/init.d/S99webcam stop"
cru a mjpgstart "0 9 * * * /opt/etc/init.d/"

This mean start at 9h and stop at 18h

Sent from my Galaxy Nexus using Tapatalk 2
 
I guess it should be


#!/bin/sh
cru a mjpgstop "0 18 * * * /opt/etc/init.d/S99webcam stop"
cru a mjpgstart "0 9 * * * /opt/etc/init.d/S99webcam start"
 
Yea, thank you,I've missed some part.
Actually it working great,but I want this script to be more intelligent, to check is the streamer is already stop or start and after that to do his job otherwise script with logic. If someone help?

Sent from my Galaxy Nexus using Tapatalk 2
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top