Install FTP Remote Access
FTP (File Transfer Protocol) is needed to copy the temperature sensor information to a web server.
The variant of FTP to be used is LFTP. To install this on the Pi enter the following command:
We will use the FTP client to upload the graphs to a server.
Create an upload script to run to upload all the files to the web server.
Copy the script below into the newly created file.
Now make the file executable.
To add a scheduled job to upload the graphs regularly we need to set-up another cron job. Start crontab by running the following command:
Now add the following line to the file, save and close the file:
This command runs the upload.sh script every five minutes. "&> /dev/null" takes the output from this command and discards it.