Aquafin is a platform that allows users to consult material and monitor flood risks. The application combines Laravel with a Python forecasting service to predict rainfall for the coming year.
Main overview page after login Functions:
- Reminder for the gas detection meter
- Shows recommended materials based on rainfall/weather data
- Recommended materials can be directly added to the shopping cart with one button
- Displays rainfall overview in a table
- Shows rainfall data per province using a diagram
Overview of available materials Functions:
- Displays the complete material list
- Search bar to find materials
- Category filter button
- Add materials to shopping cart
- Request custom material button
Admin functions:
- Add new materials
- Edit existing materials
- Delete materials
Visualize rainfall predictions. Functions:
- Displays a 1-year rainfall forecast
- Shows rainfall data in a line chart
- Forecast data is generated through Python forecasting
Note: After login, users are redirected here first because the rainfall forecast must be activated before recommendations can be displayed on the dashboard.
Communication between users and administrators Functions:
- Create a new contact form
- View sent forms
- View received forms
Manage user information. Functions:
- Displays user details
- Allows updating profile information and password
Manage selected materials Functions:
- View selected materials
- Remove materials
- Update quantity of materials
- Shows delivery time
Manage orders Admin functions:
- View placed orders
- Manage order status by accepting or refusing
Admins can add/remove materials that will be suggested in the dashboard page if the amount of rain is over the threshold of the season. Threshold per season mm of rainfall during that whole season: winter => 300 spring => 250 summer => 260 autumn => 280
The rainfall data is collected from the Python API that is ran locally.
-
Larvel Herd must be set up.
-
Python must be installed.
Any text like this must be pasted in the command prompt (CMD) example text to show the tags
Open CMD and paste in the following commands:
git clone https://github.com/friendlyBrandon/AquaFin_Project.git
-
cd AquaFin_Project -
composer install -
copy env.example .env -
php artisan key:generate -
php artisan migrate:fresh --seed -
npm install -
npm run build
-
Go to the forcasting folder in the main folder of the project.
-
Go into the forcasting folder by
cd forcasting -
Create venv enviroment by
python -m venv venv(must be only done the first time, the enviroment is generated this step can be skipped) -
Activate venv by typing
venv\Scripts\activate.bat -
Install needing dependencies
pip install prophet pandas flask(must be done only the first time in the virtual enviroment of venv, afterwards this step can be skipped) -
Start Python script
python forcast.py
-
Go to the forcasting folder in the main folder of the project.
-
Go into the forcasting folder by
cd forcasting -
Create venv enviroment by
python -m venv venv(must be only done the first time, the enviroment is generated this step can be skipped) -
Activate venv by typing
source venv/bin/activate -
Install needing dependencies
pip install prophet pandas flask(must be done only the first time in the virtual enviroment of venv, afterwards this step can be skipped) -
Start Python script
python forcast.py
-
https://chatgpt.com/share/6a2557ea-2c10-83eb-a11b-fefca377a8e7
-
https://chatgpt.com/share/6a26c044-1f34-83ed-a0b1-16334c2f3d85
-
https://chatgpt.com/share/6a281b15-9320-83ed-988e-41776d3d17ae
-
https://open-meteo.com/en/docs (weather)
-
https://open-meteo.com/en/docs/geocoding-api (location for city)
This bot is made with the Phrophet library of Meta.
- Welcome page:
- Register page:
- Login page:
- Reset password page:
- Dashboard:
- Material page to order the materials you need:
- Rainforecast page for a year:
- Contact page, own function can be "technieker", "admin" or "stockmedewerker":
- Profile page to edit province info and your password:
- Cart page to view what you wish to order after you already added it to your cart:
- Orderlog page for "admins" and "stockmedewerkers":
- If the rainfall during a season is over the treshold and you have viewed the rainforecast page every season you will see suggested materials on the dashboard page:
- The Materials you get if you get the suggested materials:
- Suggested materials can be changed by admins: