Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/difu/piweather
https://github.com/difu/piweather
aws iot raspberry weather
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/difu/piweather
- Owner: difu
- License: gpl-3.0
- Created: 2019-05-05T18:00:11.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-23T10:09:12.000Z (about 4 years ago)
- Last Synced: 2024-11-08T09:09:22.036Z (2 months ago)
- Topics: aws, iot, raspberry, weather
- Language: Python
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PiWeather
Collect and publish weather data with Raspberry Py and AWS IOT
## Raspberry
The scripts are all developed and tested with Python 3.5.
The data should be saved with an UTC timestamp, so set the timezone on the Raspberry
```
sudo timedatectl set-timezone UTC
```### publishLacross.py
Create ```config.ini``` from ```config.ini.example``` and edit your endpoint etc.
## AWS
Create a policy for the Raspberry, e.g. RaspberryPolicy
```
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iot:Connect",
"iot:Publish"
],
"Resource": "*"
}
]
}
```### DynamoDB
#### Logs
Following log entries are supported:
#### Station events
```
Log/System
```example:
```json
{
"payload": "Switched Raspberry to UTC",
"Sensor": "Log/System",
"Timestamp": "2020-04-25T20:37:53"
}
```#### System events
```
Log/System
```#### Weather events
```
Log/Weather
```