https://github.com/robacarp/raspberry-pi-temperature
https://github.com/robacarp/raspberry-pi-temperature
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/robacarp/raspberry-pi-temperature
- Owner: robacarp
- Created: 2019-03-29T15:29:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-29T16:54:10.000Z (about 7 years ago)
- Last Synced: 2025-02-05T21:35:27.139Z (over 1 year ago)
- Language: Shell
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### Send CPU / GPU temperature from a raspberry-pi to AWS Cloudwatch

#### Installation
Needs:
- python3 (should be installed)
- pip `curl -O https://bootstrap.pypa.io/get-pip.py && sudo python3 getpip.py`
- aws cli `sudo pip3 install awscli --upgrade`
- environment variables for AWS CLI (added to /etc/environment):
- `AWS_ACCESS_KEY_ID`
- `AWS_SECRET_ACCESS_KEY`
AWS CLI version: `aws-cli/1.16.134 Python/3.5.3 Linux/4.14.62-v7+ botocore/1.12.124`
#### AWS IAM Permissions
Create a dedicated AWS API user, and attach this policy to it:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "cloudwatch:PutMetricData",
"Resource": "*"
}
]
}
Then create an Access Key and put the Key ID and Secret in /etc/environment.