wsular / urbanova-aqnet-rpi-node-school

This repository contains code and notes related to the sensor packages developed for WSU Urbanova Air Quality Network (aqnet). This particular repository is for sensors that are used as part of the Ramboll project at schools in the Spokane School District.
0 stars 1 forks source link

Set up rsync for indoor nodes #10

Closed vonw closed 5 years ago

vonw commented 5 years ago

Here is information on how to copy a file using the rsync command through an "ssh tunnel":

https://kyup.com/tutorials/copy-files-rsync-ssh/

Based on this example (and others on the web), this is the type of rsync command you'll need to execute for each of the indoor units.

rsync -v -e ssh pi@X.X.X.X:/home/pi/SchoolDirectory/nodeX/*.txt /Users/matthew/data/school/indoor/nodeX/

Note that "SchoolDirectory" is the directory on the RPi where you're storing the data from the node. Also "/Users/matthew/data/school/indoor/nodeX/" is the directory on your iMac where you want the data to be copied too.

vonw commented 5 years ago

I set up ssh keys and then created a Jupyter notebook to create monitoring plots for the indoor sensors. Works great!