Skip to content

GSOC'23 Project || Android app to visualize many available public data of various Smart Cities through Dashboards. It will also connect with Liquid Galaxy to show the data in Google Earth in bigger screens for better visualization.

License

Notifications You must be signed in to change notification settings

LiquidGalaxyLAB/Smart-City-Dashboard

 
 

Repository files navigation

GitHub Repo stars GitHub Repo stars GitHub Repo stars GitHub Repo stars
GitHub Repo stars GitHub Repo stars GitHub Repo stars GitHub Repo stars GitHub Repo stars GitHub Repo stars


Smart City Dashboard

Android app to visualize many available public data of various Smart Cities through Dashboards. It will also connect with Liquid Galaxy to show the data in Google Earth in bigger screens for better visualization. The aim of the project is to make the open data of various Smart Cities easy to visualize and understand for everyone. The project hopes to create more awareness among the public regarding the data of their own city and eases the data analysis for general improvement of the city.

Workflow:

  1. First the open data (except Weather API) is collected from the following sites: New York City, Chartlotte, Seattle, Austin, Boudler, Chicago, Toronto, Monterrey and City Scores.
  2. After the data is downloaded, it is processed into Dart models if it is .csv or is prepared to visualize in Liquid Galaxy is .kml.
  3. The processed data is shown as form of beautiful Line Chart, Pie Chart and Percentage Bar data with smooth animations.
  4. The charts and bars are rendered into an .png image.
  5. The app then integrates the rendered image of the widget in a .kml file and sends to Liquid Galaxy for visualization.
  6. The integration of the app with Liquid Galaxy has been done with the help of SSH Client functions and file transfer is done through SFTP Protocol.

Features:

  • Works both with and without connecting to Liquid Galaxy.
  • Visually appealing UI/UX with smooth animations.
  • Dynamic Left Tab bar and 1 tap navigation for ease of use.
  • Realtime weather data along with hourly and forecast data.
  • Many categories of open data for each city like: Environemnt, Health, Transportation etc with .kml data as well to visualize in the Liquid Galaxy.
  • Same interface as the app in the Liquid Galaxy
  • Has the option to download and visaulize open data as well as delete those whenever required so that the app doesn't consume much storage.
  • Integrated Google Map and many functions to control Liquid Galaxy.
  • Allows various types of tours and orbit accross the cities.
  • Visualizer for any custom .csv or .kml files.
  • App tour to guide new users and highlight the features.
  • 8+ Smart Cities data.
  • 2 Themes (Dark/Light).
  • 7 different languages.

App Installation

Prerequisites:

  • Minimum 9-inch Tablet of resolution at least 2048 x 1536.
  • Android SDK 24 or above (Codename: Android 7.0 or Nougat)
  • Free Space of minimum 240 MB is required. Suggested Free Space is at least 500 MB (Including all in-app downloadable content).

Download Sources:

  • Scan the QR Code or download from the Play Store link.
  • Alternatively you can also download the apk from this link.
  • If this alternate link doesn't work then manually download the apk in this folder.

After the installation, you will get a tour when you open the app for the first time, providing guidance to how to use the app and highlighting all the important features. In case of any trouble, always check out the Help Page. Enjoy :D

Integration with Liquid Galaxy:

Follow the instructions given here to install and setup Liquid Galaxy in either multi-device rigs or virtual machines. For virtual machine setup follow this video or this document.

After this, go to the app Settings Page and under Connection and Settings fillup the required details and click on CONNECT TO LG and all done.

App Screenshots

Setting up locally

Prerequisites:

  • Git
  • Flutter SDK v3.7.6 stable
  • Dart v2.19.3
  • Android Studio or Visual Studio Code
  • Minimum 9-inch Tablet of resolution at least 2048 x 1536 (Emulator or Real Device)

Setting up required Flutter and Dart version:

Before starting, make sure the Flutter and Dart SDK are of the mentioned version to make sure there is no version error or mismatching while running the project. If your Flutter SDK doesn't match the given, use the following steps:

  • Go to the folder where you installed Flutter (For example: C:/flutter/)
  • Open terminal and execute these commands
    $ git checkout 3.7.6
    then
    $ flutter doctor
  • Wait for the process to finish and your environment is ready to run the project!

Clonning the Project:

$ git clone https://github.com/Prayag-X/Smart-City-Dashboard.git
$ cd Smart-City-Dashboard

Preparing the API Keys (Optional):

There are 2 APIs that have been used in this project. The API Keys I have used are already given and not hidden to make the process of setting up the project easy. But its suggested to use your own keys if you are planning to work around the project for a longer time. (Please consider my API's daily limit as well and dont misuse it :) )

  1. Google Maps API: To get your own key, you will need to follow the steps mentioned in this documentation. Then go to the project's android/app/src/main/AndroidManifest.xml and paste the API key you got in place of REPLACE_THE_API_KEY_HERE.
<meta-data
   android:name="com.google.android.geo.API_KEY"
   android:value="REPLACE_THE_API_KEY_HERE"/>
  1. Weather API: Go to this link then sign up if you don't have any account. Then subsribe to the FREE Basic plan of the API. Then select your project or keep it default. And X-RapidAPI-Key will be your key. Then go to the project's lib/services/weather_api.dart and replace line 6's REPLACE_THE_API_KEY_HERE:
final String apiKey = 'REPLACE_THE_API_KEY_HERE';

Running the Project:

First install all the Flutter packages

$ flutter pub get

Then connect a tablet (emulator/device) of the mentioned requirements and run

$ flutter run

Open Source Contributions

It will be very appreciated if you want to contribute to this project. There are few ways you can contribute to this project:

  • Add up more city data.
  • Increase the data of each cities.
  • Add more languages.
  • Improve the overall stability of the app.
  • Look up for possible bugs and try to fix it.
  • Any imrprovement to the existing UI/UX.

Always feel free to open up any issues in the Issues section in case of any doubt or bug. I will be more than happy to help you out in every way possible. You can improve anything of the above mentioned things or work something on your own and make a Pull Request. I will review it asap. Happy Contributing :D

Credits

The project was successfully made thanks to my mentor of Google Summer of Code 2023 Merul Dhiman and Liquid Galaxy administrator Andreu Ibáñez who guided me in every way possible. Thanks to Yash Raj Bharti for solving many issues and doubts. Also thanks to Alejandro Illan Marcos for publishing the app in the Play Store and Victor Carreras for any Flutter related queries. The project wouldn't be completed without the support of Mohamed Zazou, Navdeep Singh and Imad Laichi who tested the app relentlessly for any possible bugs and improvements.

License

This project is licensed under the MIT license.
Copyright @2023 Prayag Biswas

About

GSOC'23 Project || Android app to visualize many available public data of various Smart Cities through Dashboards. It will also connect with Liquid Galaxy to show the data in Google Earth in bigger screens for better visualization.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 99.5%
  • Other 0.5%