kike-canaries / canairio_android

Android app of CanAirIO project. This is configuration manager, geo-location tagging and front end of CanAirIO firmware via Bluetooth LE.
https://canair.io
GNU General Public License v3.0
16 stars 10 forks source link
air-quality android ble bluetooth-low-energy esp32 firmware

Actions Status ViewCount Liberapay Status Telegram Group

CanAirIO Building Guides

CanAirIO Air quality Reporter

CanAirIO is a citizen science initiative for air quality tracking, visualization and dissemination by using PM2.5 particulate material sensors paired with your smartphone via bluetooth.

This code is for CanAir.IO Android app that using a DIY device that handle a pollution sensor (Honeywell, Sensirion, Plantower, Panasonic) or others air quality sensors.

Don't forget to star ⭐ this repository

Installation

You can install it from the release section downloading the last signed apk or installing from GooglePlay

CanAirIO Device

For test and use the CanAirIO app, is recommended have a CanAirIO device, you can have one with any ESP32 board without any sensor or any wire solder if you want, because CanAirIO has out of the box PAX Counter detector feature, for counts the people around you. For that you only need load our firmware via a easy web tool:

video_2021-11-13_23-36-10

Usage

For now you need any Android device with Bluetooth 4 or above. You can download the CanAirIO app from GooglePlay, keep in mind that it is in continuos development then please any feedback, report errors, or any thing please let us know it via our contact form or on our Telegram chat

You have two configuration options or modes of your CanAirIO device from the app:

Mobile Station Mode

This mode allows you to record tracks on your device or publish it to the cloud (share), please follow the next steps:

Tips

CanAirIO App (Connection to CanAirIO device, record a air quality track and share)

Mobile Map

We are developing a new mobile map, you can see the current tracks that the people share here:


Fixed Station Mode

Also, you can connect your CanAirIO device to the WiFi and leave this like a fixed station. In this mode you only need the Android app only for setup the initial settings, after that the device could be publish data without the phone using the WiFi. For this please download the CanAirIO app and setup the WiFi:

WiFi Setup

Publication

After WiFi is ready, please follow the next steps for publish your fixed station:

CanAirIO fixed station (fast setup guide)

CanAirIO CO2 easy Setup

CanAirIO Documentation

We have a documentation portal with full information about the device and the app usage.

CanAirIO docs

Supporting the project

If you want to contribute to the code or documentation, consider posting a bug report, feature request or a pull request.

When creating a pull request, we recommend that you do the following:

Also you can consider make a donation, be a patron or buy a device:

NOTE: Supporting our Citizen Science Initiative many people be able to fight for air quality rights in many countries with this kind of problems. More info in CanAir.IO

For our supporters, patrons or donors, we will send the files for our coming version:

CanAirIO CO2 and CanAirIO Mini box

CanAirIO CO2 and Mini

TODO


Building from source code

Dependencies

Requirements

Please first clone the project with all submodules:

git clone --recursive https://github.com/kike-canaries/canairio_android.git

Firebase

This application uses a Firebase Database instance to store mobile air quality reports,

For local development, you will need to create a database in the Firebase Console using hpsaturn.pollutionreporter as the application identifier and retrieve a google-services.json file. See instructions here.

After that copy this file into the project:

cd canairio_android && cp ~/google-services.json app/

Aqicn API key (optional)

Please put your Aqicn API key in app/src/main/res/values/api_aqicn.xml or create a fake file like with:

<resources>
    <string name="api_aqicn_key">7cbbbb864b9c0755b8xxxxyyy</string>
</resources>

Compiling

./gradlew assembleDebug

App apk installation

./gradlew installDebug

Credits

Icons made by Prosymbols from www.flaticon.com is licensed by CC 3.0 BY