Giter Site home page Giter Site logo

notifier-motioneye's Introduction

start program

git clone https://github.com/wisehackermonkey/notifier-motioneye.git

sudo bash install.sh 


# Edit login-watcher.sh 
run 
>gpio readall
Set PIN=< your raspberry pi pin>
verify it worked 

bash blink_led.sh <wPi Pin number>
bash blink_led.sh 25

>nano login-watcher.sh 
EDiT
PIN=25 to match your rpi's pin 


# recommended way to run forever
edit `-o "25"` ->   `-o "8"`
forever-service install login-watcher -s login-watcher.sh -f " -c 'bash'" -o "25"

sudo service login-watcher start
sudo service login-watcher status

# delete serivce
sudo forever-service delete login-watcher 

Alternetivly

# manually run
sudo apt-get install wiringpi
npm install -g forever 
npm install -g forever-service

bash login-watcher.sh

Commands to interact with service login-watcher

Start   - "sudo service login-watcher start"
Stop    - "sudo service login-watcher stop"
Status  - "sudo service login-watcher status"
Restart - "sudo service login-watcher restart"
apt-get install inotify-tools

Scratch pad

journalctl -u motioneye -p info  | grep 'DEBUG:'
journalctl -u motioneye --no-full
journalctl -u motioneye  | grep 'DEBUG:'


journalctl -u motioneye  --no-pager | grep 'DEBUG:'

journalctl -u motioneye  --no-pager | grep 'creating mjpg client for camera'

journalctl -f -u motioneye  --no-pager | grep 'DEBUG:'

journalctl -f -u motioneye  --no-pager | grep 'DEBUG: 304 GET /'

journalctl -f -u motioneye  --no-pager | grep 'GET /static/favicon'


journalctl -f -u motioneye  -o json | grep 'DEBUG:'

journalctl -f -u motioneye  | grep 'DEBUG: 304 GET /'



inotifywait -m -e modify ./output.log

echo "bh" > ./output.log

WATCHFILE=/root/github/notifier-motioneye/output.log

while true; do
    while read j
    do
    echo "file changed"
    break
    done <  <(inotifywait -q -e modify $WATCHFILE)
done
bash login-watcher.sh


echo "out" > /sys/class/gpio/gpio9/direction
echo "1" > /sys/class/gpio/gpio9/value


echo "out" > /sys/class/gpio/gpio3/direction
echo "1" > /sys/class/gpio/gpio3/value


install wiringpi with dietpi software
dietpi-software list | grep Wiring

root@dietpi2:~# dietpi-software list | grep Wiring ID 70 | =0 | WiringPi: GPIO interface library (C) | +Build-Essential | https://dietpi.com/docs/software/hardware_projects/#wiringpi ID 166 | =0 | Audiophonics PI-SPC: Raspberry Pi power management module | +WiringPi | https://dietpi.com/docs/software/hardware_projects

dietpi-software install 70

gpio mode 3 out
gpio write 3 1

gpio mode 26 out
gpio write 26 1

gpio mode 14 out
gpio write 14 1

gpio mode 15 out
gpio write 15 1


git clone https://github.com/wisehackermonkey/notifier-motioneye.git
git remote set-url origin https://wisehackermonkey:[email protected]/wisehackermonkey/notifier-motioneye.git

journalctl -u motioneye --no-pager


journalctl -u motioneye --no-pager -g 'DEBUG: 304 GET /'

links

how journalctl works -- i used this extensivly

notifier-motioneye's People

Contributors

wisehackermonkey avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.