Currently, only Debian based Linux (Raspbian Jessie) running on Raspberry PI 2's and above are supported.
For the next 2 steps you must be logged in as root. You can do this via 'su root'. If you don't know your password for root you can easily update it using the command 'sudo passwd root' to set it.
1. Import the apt repository gpg key
curl -s https://download.dataloop.io/pubkey.gpg | apt-key add -
2. Add the Dataloop apt repository
echo 'deb https://download.dataloop.io/deb/ unstable main' > /etc/apt/sources.list.d/dataloop.list
3. Install the dataloop agent
sudo apt-get update && sudo apt-get install dataloop-agent
Note: If you get the error 'E: The method driver /usr/lib/apt/methods/https could not be found' then you can easily install it using the command 'sudo apt-get install apt-transport-https'.
4. Update the /etc/dataloop/agent.yaml file with your API key
5. Start the agent
sudo systemctl start dataloop-agent
6. Set the agent to run on reboot
sudo systemctl enable dataloop-agent
7. Access GPIO Pins (Optional)
For security, the agent runs as the non-privileged 'dataloop' user. By default this user will not have access to the GPIO pins on your PI required for reading and writing to sensors attached to your PI. In order to allow your agent plugins to work with GPIO you will need to add the dataloop user to the 'gpio' group on your PI. Please note this will allow anyone running scripts on your agent to read and write to your GPIO memory bus! To add the 'dataloop' user to the 'gpio' group type the following command:
sudo adduser dataloop gpio
Make sure you restart the Dataloop agent afterwards to ensure the agent permissions are correct:
sudo systemctl restart dataloop-agent