hackEns multifunction bot to handle most of our internal management.
Jarvis can be easily installed on a Raspberry Pi, starting from an up-to-date Raspbian image.
- Download and put the latest Raspbian image on a SD card.
- Start the Raspberry Pi. Set it correctly running
sudo raspi-config(enable camera and so on). - Clone Jarvis repo.
- Run the scripts in
system/folder to install the requirements. - Manually install
wiringPifor thegpiocommand. - Make sure your user is member of the
gpioandvideogroups. - Jarvis does not automatically export the GPIO pins to prevent it from running as
root. So you shouldgpio export PIN outfor the pins you use (1 and 7 by defautl). - Run
jarvis.pyand follow the instructions to start Jarvis.
Note : Jarvis requires a MySQL database to be used, and a webserver to serve the web visualisation (repo Jarvis web). As our webserver does not run on the Raspberry Pi, the above scripts do not include the setup for the webserver and the MySQL database. You should install and set them yourself. system/jarvis.sql contains all the necessary information to setup the database and tables.
startup.sh is a service to use to start Jarvis automatically (Debian).
arduino/- This folder contains some example arduino scripts to use an Arduino and a regular PC instead of the Raspberry Pi GPIO pins. They are just here for demo purpose and are no longer used. Thus, they may be unstable.
aziz.pyis our moderation script, to inform us of new emails waiting for moderation. It's basically a Jarvis plugin.datafolder contains the scripts, aliases etc you put into Jarvis.irclogfolder contains the script to convert the Jarvis log as a nice HTML page.jarvis.all.log(created by Jarvis) is the complete log of the watched channel.jarvis.pyis the main script, which serves the bot.jarvis_cmd.pyis a collection of functions to translate Jarvis actions to GPIO actions etc.Rulescontains a set of scripts for the various Jarvis actions.STL exportcontains 3D models for our setup.stream.pyis the script used to handle the cam streaming.systemcontains the scripts necessary to setup Jarvis.updater.shis a bash script called to update jarvis.