rpi-burning-chrome
This be motion detection and such for RPi
Prerequisites:
opencv4nodejs
will auto-build OpenCV upon npm install
, see opencv4nodejs docs for more info
- MacOS:
brew install cmake
- RPi:
sudo apt-get install cmake sudo apt-get install libgtk2.0-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev sudo apt-get install libjpeg-dev libpng-dev libtiff-dev zlib1g-dev sudo apt-get install libatlas-base-dev gfortran export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/ export PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig/
Requirements for running:
- Set env var
SLACK_BOT_TOKEN
, this should start withxoxb-...
Staging:
- Set env var
NODE_ENV=production
for production mode. This only affects logging atm.
TODO:
- Update
opencv4nodejs
functions to Async versions (e.g.bgrToGrayAsync()
) - Find best suitable video format (fourcc's
FMP4
is being used for now, this does not work with RPi and Slack browser client) - Set appropriate format for camera recordings (atm it's default(?) - depends on device)
- Check this out for possible improvements for picam settings
- Error handling!
Use
arp-scan
for scanning for devices in wifi?:orbrew install arp-scan
sudo apt-get install arp-scan