From 66f20991cd4f8050de55386844122a5e096d1e5d Mon Sep 17 00:00:00 2001 From: ForgottenProgramme <65779580+ForgottenProgramme@users.noreply.github.com> Date: Thu, 1 Oct 2020 01:03:59 +0530 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e62554a..153b2e5 100644 --- a/README.md +++ b/README.md @@ -12,18 +12,18 @@ Hardware Getting Started --------------- -* Install python dependencies `pip install -r requirements.txt` -* Setup aws boto3 credentials https://github.com/boto/boto3 -* Setup a dynamodb table https://aws.amazon.com/documentation/dynamodb/ . Default table name is `Greenhouse` -* Create an s3 bucket to store photos taken when sensor data is logged https://aws.amazon.com/s3/ you will have to change the `s3_bucket` setting in sensor.py https://github.com/f0urfingeredfish/pigreenhouse/blob/master/sensor.py#L16 -* Add credentials to access the table and s3 https://aws.amazon.com/iam/ -* Run `python sensor.py` -* The sense hat led will show a green smiley face on success and then a green dot as well as standard output. If there is an error or you lose connection to amazon it will display a red led. The script won't exit but will try again at the set logging interval. +* Install python dependencies `pip install -r requirements.txt` . +* Setup aws boto3 credentials https://github.com/boto/boto3 . +* Setup a dynamodb table https://aws.amazon.com/documentation/dynamodb/ . Default table name is `Greenhouse` . +* Create an s3 bucket to store photos taken when sensor data is logged https://aws.amazon.com/s3/ you will have to change the `s3_bucket` setting in sensor.py https://github.com/f0urfingeredfish/pigreenhouse/blob/master/sensor.py#L16 . +* Add credentials to access the table and s3 https://aws.amazon.com/iam/ . +* Run `python sensor.py` . +* The sense hat led will show a green smiley face on success and then a green dot as well as standard output. If there is an error or you lose connection to amazon, it will display a red led. The script won't exit but will try again at the set logging interval. Sample Output ------ ```bash -pi@raspberrypi:~/pigreenhouse $ python sensor.py +pi@raspberrypi:~/pigreenhouse $ python sensor.py photos/2017-04-14 04:47:38.072222.jpg 55145 / 55145.0 (100.00%)saved photo to s3 temperature_from_pressure: 33.15625, photo: 2017-04-14 04:47:38.072222.jpg, pressure: 903.913330078, compass: 148.917931455, date: 1492145259, temperature_from_humidity: 34.7334594727, humidity: 29.9232330322, temperature: 34.7334594727, log: 2017-04-14 04:47:38.072222, cpu_temp: 58.0, gpu_temp: 57.996 log saved to database