Used flutter(Dart) for sensor display API
git clone <repository_link>Replace <repository_link> with the actual URL of this repository.
2. Place your JSON file containing the sensor data in the appropriate directory (e.g., assets/data.json).
For example:
[
{
"sensor_id": 1,
"name": "Sensor A",
"status": 1,
"temperature": 22.5,
"humidity": 60.0
},
{
"sensor_id": 2,
"name": "Sensor B",
"status": 2,
"temperature": 20.0,
"humidity": 55.0
}
]Navigate to the /lib directory and open the main.dart file in your editor.
- Make sure you have an emulator set up (Select either Chrome, the Android Studio emulator, or your smartphone connected directly to the device as an emulator.).
- To run the application, press CTRL + F5 in VS Code or use the 'Run' button in Android Studio. and press CTRL + F5