Merge branch 'main' of https://github.com/jeanGaston/WeatherStation
This commit is contained in:
commit
01c8574b46
@ -2,11 +2,10 @@
|
||||
|
||||
# Install Python3 and pip
|
||||
sudo apt update
|
||||
sudo apt install -y python3 python3-pip python3-flask python3-schedule
|
||||
sudo apt install -y python3 python3-pip python3-flask python3-schedule python3-plotly python3-pandas
|
||||
|
||||
# Install required Python modules
|
||||
pip3 install schedule
|
||||
pip3 install bluepy
|
||||
pip3 install bluepy
|
||||
|
||||
# Create env.py file
|
||||
echo -n "Enter database file name (default: data.db): "
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
hst : "host" {
|
||||
PythonSRV : "Stack Python" {
|
||||
DB :"SQLite DB" {
|
||||
icon : https://icons.terrastruct.com/azure%2FDatabases%20Service%20Color%2FAzure%20Database%20for%20MariaDB%20servers.svg
|
||||
}
|
||||
|
||||
Scrp : "DataScrapper" {
|
||||
icon : https://icons.terrastruct.com/dev%2Fpython.svg
|
||||
explaination : |md
|
||||
@ -20,13 +18,16 @@ hst : "host" {
|
||||
blt : "Bluetooth hardware" {
|
||||
icon : https://icons.terrastruct.com/essentials%2F317-bluetooth.svg
|
||||
}
|
||||
DB :"SQLite DB" {
|
||||
icon : https://icons.terrastruct.com/azure%2FDatabases%20Service%20Color%2FAzure%20Database%20for%20MariaDB%20servers.svg
|
||||
}
|
||||
}
|
||||
sens : "Weather Sensor" {}
|
||||
PC : "User browser"{
|
||||
icon : https://icons.terrastruct.com/essentials%2F365-user.svg
|
||||
|
||||
}
|
||||
hst.PythonSRV.DB <-- hst.PythonSRV.Scrp : "Write \ndata" {
|
||||
hst.DB <-- hst.PythonSRV.Scrp : "Write \ndata" {
|
||||
style : {
|
||||
stroke-dash: 5
|
||||
animated: true
|
||||
@ -34,7 +35,7 @@ hst.PythonSRV.DB <-- hst.PythonSRV.Scrp : "Write \ndata" {
|
||||
}
|
||||
}
|
||||
|
||||
hst.PythonSRV.DB --> hst.PythonSRV.web : "Read \nData" {
|
||||
hst.DB --> hst.PythonSRV.web : "Read \nData" {
|
||||
style : {
|
||||
stroke-dash: 5
|
||||
animated: true
|
||||
@ -64,7 +65,7 @@ hst.PythonSRV.web <-- pc : "write \nsettings" {
|
||||
}
|
||||
}
|
||||
|
||||
hst.PythonSRV.DB <-- hst.PythonSRV.web : "write \nsettings" {
|
||||
hst.DB <-- hst.PythonSRV.web : "write \nsettings" {
|
||||
style : {
|
||||
stroke-dash: 5
|
||||
animated: true
|
||||
@ -72,7 +73,7 @@ hst.PythonSRV.DB <-- hst.PythonSRV.web : "write \nsettings" {
|
||||
}
|
||||
}
|
||||
|
||||
hst.PythonSRV.DB --> hst.PythonSRV.Scrp : "Read \nsettings" {
|
||||
hst.DB --> hst.PythonSRV.Scrp : "Read \nsettings" {
|
||||
style : {
|
||||
stroke-dash: 5
|
||||
animated: true
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
Loading…
Reference in New Issue
Block a user