https://randomnerdtutorials.com/getting-started-with-node-red-on-raspberry-pi/
https://randomnerdtutorials.com/getting-started-with-node-red-dashboard/
https://randomnerdtutorials.com/raspberry-pi-apache-mysql-php-lamp-server 注意修改 grant all privileges on *.* to admin@localhost WITH GRANT OPTION;
64bit 安裝phpmyadmin時 要在加上
sudo apt edit-sources
Added this line:
deb http://deb.debian.org/debian buster-backports main contrib non-free
sudo apt -t buster-backports install phpmyadmin
https://atceiling.blogspot.com/2020/03/raspberry-pi-70-nextcloud-talk.html
curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | sudo bash
sudo pip3 install adafruit-circuitpython-dht
import time
import adafruit_dht
import board
dhtDevice = adafruit_dht.DHT11(18)
while True:
try:
# Print the values to the serial port
temperature_c = dhtDevice.temperature
temperature_f = temperature_c * (9 / 5) + 32
humidity = dhtDevice.humidity
print(
"Temp: {:.1f} F / {:.1f} C Humidity: {}% ".format(
temperature_f, temperature_c, humidity
)
)
except RuntimeError as error:
# Errors happen fairly often, DHT's are hard to read, just keep going
print(error.args[0])
time.sleep(5.0)
continue
except Exception as error:
dhtDevice.exit()
raise error
time.sleep(5.0)
https://www.youtube.com/watch?v=nDzbGB6hdeA
https://www.youtube.com/watch?v=GsG1OClojOk