使用raspberry-pi 3 當作接Rola收端接收溫度資料並存到mysql裡,之後利用nodejs server作為api server 讀取mysql資料,web poll api server 每2秒更新一次圖表。
- VDD -> 3V3
- RXD -> GPIO14
- TXD -> GPIO15
- GND -> GND
- VDD -> 3V3
- RXD -> PA9
- TXD -> PA10
- GND -> GND
DHT22
- VDD -> 3V3
- OUT -> PA12
- GND -> GND
cd server
npm run tsc
cd app
flutter build web
sudo sh ./docker_run.sh up
3, 瀏覽器 上輸入 http://raspberrypi:8081
cd /tmp;wget http://ftp.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.3-2_armhf.deb;sudo dpkg -i libseccomp2_2.5.3-2_armhf.deb