This Flutter app connects to a senseBox device on a bike. It collects valuable data about surroundings while riding and allows user to upload gathered data to the openSenseMap, contributing to urban environmental monitoring and citizen science projects. The app is available for both iOS and Android.
- Flutter SDK: Make sure you have the Flutter SDK installed on your machine. You can download it from https://flutter.dev/docs/get-started/install.
- Android Studio, Xcode and code editor of your choice.
- senseBox Device: You need a senseBox device configured to collect the desired sensor data.
-
Clone the repository:
git clone https://github.com/reedu-reengineering-education/sensebox-bike-flutter.git cd sensebox-bike-flutter
-
Get dependencies:
flutter pub get
-
Connect your device: Connect your Android or iOS device to your computer, or use an emulator.
-
Run the app:
flutter run
This command will build and install the app on your connected device or emulator.
If you run into issues while running the app, you can take the following troubleshooting steps:
-
Make sure you are running the most recent versions of Flutter, Android Studio, and Xcode as we try to keep the current project up-to-date. You can review your current configuration by running the following command:
flutter doctor -v
-
If you encounter issues while running the app on Android, please try running a Gradle sync in Android Studio. To do so:
- Open
/sensebox-bike-flutter/android/
folder in Android Studio. - Gradle sync should start automatically.
- Open
-
You can clean the project and reinstall the dependencies.
flutter clean flutter pub get