Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/difu/piweather


https://github.com/difu/piweather

aws iot raspberry weather

Last synced: 11 days ago
JSON representation

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
```