diff --git a/Install.sh b/Install.sh index 79b92d9..8c008ca 100644 --- a/Install.sh +++ b/Install.sh @@ -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): " diff --git a/Schematics/howdoesitwork.d2 b/Schematics/howdoesitwork.d2 index df1633e..c3a7c99 100644 --- a/Schematics/howdoesitwork.d2 +++ b/Schematics/howdoesitwork.d2 @@ -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 diff --git a/Schematics/howdoesitwork.svg b/Schematics/howdoesitwork.svg index bab213a..03370d2 100644 --- a/Schematics/howdoesitwork.svg +++ b/Schematics/howdoesitwork.svg @@ -1,14 +1,14 @@ -hostWeather SensorUser browserStack Docker ComposeBluetooth hardwareMariaDBDataScrapperWebGui

Containerized python
-used to scrap data from bluetooth

-

Containerized python
-used to display data from DB

-
Write data Read Data Read DataRead Datadisplay data write settingswrite settings Read settings - - +hostWeather SensorUser browserStack PythonBluetooth hardwareSQLite DBDataScrapperWebGui

used to scrap data from bluetooth

+

used to display data from DB

+
Write data Read Data Read DataRead Datadisplay data write settingswrite settings Read settings + + - - - - - - - - - - + + + + + + + + + + - - - - - + + + + +