Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
lokijota committed Jan 31, 2020
1 parent e2d17b7 commit 0c29240
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions DeviceUploadData.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,17 @@ Files uploaded: 378
```

4. The filed in the `data` folder are renamed, with an `uploaded_` prefix added. E.g., `20200131-235215.csv` becomes `uploaded_20200131-235215.csv`. You'll need to clear up these files later.
5. Now that this process has been tested, you need to run the previous command on a schedule with a cron job. Do do this, run `crontab -e`, pick an editor (nano may be the simplest one), and add the following at the end:
4. The files in the `data` folder are renamed, with an `uploaded_` prefix added. E.g., `20200131-235215.csv` becomes `uploaded_20200131-235215.csv`. You'll need to clear up these files later.
5. Now that this process has been tested, you need to run the previous command on a schedule with a cron job. To do this, run `crontab -e`, pick a text editor if Linux asks you to (nano may be the simplest one), and add the following at the end of the file:

`* * * * * /usr/bin/python3 /home/pi/bsec_bme680_linux/scoop_up_data.py /home/pi/bsec_bme680_linux/data/`

This will execute the command every minute, and upload the readings (typically 20 at a time, considering they are recorded every 3 seconds).
When you save and exit, the specified command will be executed every minute, and upload the readings (typically 20 at a time, considering they are recorded every 3 seconds).

## TBD

**TBD** clear up the uploaded files.

**TBD** - how to set up your Azure IotHub -- create it and an IoT Device. Add a new instructions step. Maybe link to this: https://docs.microsoft.com/en-gb/learn/modules/remotely-monitor-devices-with-azure-iot-hub/2-create-iot-hub-device-id?pivots=csharp

**TBD** avoid race condition as per here: https://www.cyberciti.biz/faq/how-to-run-cron-job-every-minute-on-linuxunix/

0 comments on commit 0c29240

Please sign in to comment.