/MyRasPi

MyRasPi(使用dht22读取室温,并记录入mysql数据库里面,最终显示在浏览器上面),此项目用于树莓派3b,armv7平台上面

Primary LanguageHack

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

bulld on go version

go1.19.2