An example dashboard developed in streamlit
The Anedya IoT cloud enables users to monitor and control IoT devices remotely. The dashboard displays real-time data on humidity and temperature, as well as providing control buttons to operate a fan and a light. The control buttons sync with real-time changes, reflecting the current state of the devices.- User Authentication: Basic login functionality.
- Live Data Visualization: Real-time humidity and temperature charts using Altair.
- Device Control: Buttons to turn the fan and light on and off, syncing with real-time changes.
- Automatic Data Refresh: Auto-refresh functionality for live updates.
- Node ID: Obtain the Node ID from the Anedya dashboard by navigating to the project section and selecting the node.
- API Key: Obtain the API key from the Anedya dashboard by navigating to the project -> APIKEY.
Connect your Nodemcu with a DHT sensor and a relay module as per the basic-home-automation with nodeMcu, basic-home-automation with pico example. Upload the provided sketch from the repo to read sensor data and control devices.Follow the detailed instructions in the README.
- Clone the Repository: Clone anedya-streamlit-dashboard-example repo from anedya github.
git clone https://github.com/anedyaio/anedya-streamlit-dashboard-example.git
cd anedya-streamlit-dashboard-example
- Install Dependencies: To ensure the application has all the necessary libraries, you'll need to install the dependencies listed in the requirements.txt file. This file contains a list of all the packages along with their versions that the app depends on. Here's how to install these dependencies:
- Open a terminal or command prompt.
- Navigate to the directory where you cloned the repository.
- Run the following command to install the dependencies using pip:
pip install -r requirements.txt
This command reads the requirements.txt
file and installs all the listed packages.
- Run the Streamlit App: Start the Streamlit server:
streamlit run Home.py
This will launch the dashboard in your default web browser.
- Fork the Repository: Fork this repository to your own GitHub account.
- Sign Up / Log In to Streamlit Cloud: Go to Streamlit Cloud and sign in with your GitHub account.
- Create a New App:
- Click on "New app".
- Select your forked repository.
- Set the branch to main (or the branch you want to deploy from).
- Set the main file path to Home.py.
- Deploy: Click "Deploy" to launch your app on Streamlit Cloud.
This project is licensed under the MIT License.