- Install go first
- git clone https://github.com/sndnvaps/MyRasPi $GOPATH/src/github.com/sndnvaps/MyRasPi
- change dht22.go#L20, set it for youself
- go build
- install docker && docker-compose
- run mysql server with cmd: docker-compose up
- $ ./MyRasPi # Print out the Temperature & Humidity info of DHT22 and insert it into mysql server
- get the temp & humi from web: (https://rpi_pi:8080/echart.php](https://rpi_ip:8080/echart.php)
go1.19.2