Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yhkaplan/tempbot
https://github.com/yhkaplan/tempbot
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yhkaplan/tempbot
- Owner: yhkaplan
- Created: 2018-04-26T14:50:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-28T06:02:20.000Z (almost 7 years ago)
- Last Synced: 2024-11-06T05:42:20.214Z (3 months ago)
- Language: Go
- Size: 2.83 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tempbot
A simple SlackBot that tells you the temperature and humidity using a DHT11 sensor attached to a Raspberry Pi.## How to deploy
#### Assumptions
You are building the bot an a Raspberry Pi or similar ARM device. If not, you must make minor changes to the Dockerfile.
1. `$ docker build -t tempbot .`
2. `$ docker run --privileged -d -e SLACK_TOKEN=xoxb-your-slack-token tempbot`
* Add `--restart always` to the docker run command to make the container reboot after restarts
* The `--privileged` setting gives the container full access to the Pi's hardware, which may not be secure enough for your needs.
See https://stackoverflow.com/questions/30059784/docker-access-to-raspberry-pi-gpio-pins for more info.