Agribot365 Dashboard is a real-time sensor data visualization tool for farmers. It displays sensor data from your farm and provides notifications in real-time. The dashboard is built with Streamlit and Firebase.
⚠️ NOTE: This README is currently incomplete and will be updated soon. Please check back later for more information.
- Clone the repository:
git clone https://github.com/elshadsabziyev/Agribot365.git
- Navigate to the project directory:
cd Agribot365
- Install the required packages:
pip install -r requirements.txt
- Connect the sensors to the Arduino board.
- Upload the
sensors.ino
sketch to the Arduino board. - Connect the Arduino board to your computer using a USB cable.
- Open the Arduino IDE and go to
Tools > Port
to select the port where the Arduino board is connected.
-
You need to create a Firebase project and download the service account key file. You can follow the instructions here to create a Firebase project and download the service account key file.
-
To convert JSON to TOML, go to ConvertSimple and convert the JSON file to TOML. Copy the TOML content.
-
Create secrets.toml file in the root directory of the project and add TOML content under the
[firebase_auth]
section. Example:[firebase_auth] type = "service_account" project_id = "your-firebase-project-id" private_key_id = "your-private-key-id" private_key = "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n" client_email = "firebase-adminsdk-xyz@your-firebase-project-id.iam.gserviceaccount.com" client_id = "your-client-id" auth_uri = "https://accounts.google.com/o/oauth2/auth" token_uri = "https://oauth2.googleapis.com/token" auth_provider_x509_cert_url = "https://www.googleapis.com/oauth2/v1/certs" client_x509_cert_url = "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-xyz%40your-firebase-project-id.iam.gserviceaccount.com"
-
Go to project settings in Firebase and copy the Firebase project ID. Add the project ID to the
secrets.toml
file under the[firebase_config]
section. Example:[firebase_config] apiKey = "your-api-key" authDomain = "your-firebase-project-id.firebaseapp.com" databaseURL = "https://your-firebase-project-id.firebaseio.com" projectId = "your-firebase-project-id" storageBucket = "your-firebase-project-id.appspot.com" messagingSenderId = "your-messaging-sender-id" appId = "your-app-id" measurementId = "your-measurement-id"
-
Run the app:
streamlit run app.py
-
Open your web browser and go to
http://localhost:8501
to view the dashboard.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
Contributions are welcome! Please read our contributing guidelines to get started. `