curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt install nodejs
cd ~
git clone https://github.com/Mike111177/runmynodebot.git
cd runmynodebot
npm install
npm install raspi-io
sudo apt install gnutls-dev
cd /usr/local/src
git clone https://github.com/r3n33/FFmpeg.git -b dynoverlay
cd FFmpeg
./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree --enable-gnutls --extra-libs=-ldl --enable-zlib
make -j4
sudo make install
Credit goes to @r3n33 for the dynoverlay filter and install instructions.
sudo node runmynodebot.js run <Your robot ID>
sudo node runmynodebot.js run <Your robot ID> --video <Your camera ID>
Note that the default configuration does put a watermark on video output. If you are using the video feature of this program and would like to remove said watermark, simply create and use your own configuration file.
sudo runmynodebot.js run <Your robot ID> --example Tiger
Warning: This software is in very early development, your configuration may not survive updates.
cd ~
mkdir <folder to hold configs>
cd <above created folder>
node ~/runmynodebot/runmynodebot.js create myrobot.yml
You can then edit myrobot.yml as you please.
To see more about configuration files see Configuration
To run then:
sudo node ~/runmynodebot/runmynodebot.js run <Your robot ID> --config myrobot.yml