Skip to content

Android app that displays Air Quality Index (AQI) information in Saigon

Notifications You must be signed in to change notification settings

gholadr/smogalert

Repository files navigation

smogalert

How to browse the APIs locally

You'll need to run chrome as unsafe mode

In your bash profile, add the following alias

alias ogc='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080'

refresh your shell if need be source ~/.bash_profile, and start a new instance of chrome by running ogc in your shell

Now, Google's API Explorer will accept an unsafe http target:

https://apis-explorer.appspot.com/apis-explorer/?base=http%3A%2F%2Flocalhost%3A8080%2F_ah%2Fapi#p/

Access the APIs on GAE

[SmogAlert APIs on GAE] (https://apis-explorer.appspot.com/apis-explorer/?base=https://smogalert-1248.appspot.com/_ah/api#p/aqi/v1/)

Goodies under the hood

This app uses:

AirNow to retrieve air pollution data from the US Embassy in HCMC.

Objectify as a simple interface to GAE's datastore

[Google Cloud Endpoints] (https://cloud.google.com/appengine/docs/java/endpoints/) to expose the APIs, and generate the client side libs

[GreenRobot Eventbus] (https://github.com/greenrobot/EventBus) to manage simply app events

[Iconify] (https://github.com/JoanZapata/android-iconify) for beautiful icons (only 1 so far)

[Fabric] (https://fabric.io) Fabric.io for analytics

About

Android app that displays Air Quality Index (AQI) information in Saigon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published