Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md (Some grammatical corrections) #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down