A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

shoot-i-smoke

See your city's air pollution measured in daily cigarettes.
https://github.com/shootismoke/mobile-app

Category: Natural Resources
Sub Category: Air Quality

Keywords

air-pollution aqi cigarettes climate-change expo functional-programming global-warming hacktoberfest pollution react-native sustainability

Keywords from Contributors

transforms measur compose archiving observables reporting certification community universal projection

Last synced: about 12 hours ago
JSON representation

Repository metadata

See your city's air pollution measured in daily cigarettes. iOS/Android.

README.md



📱 Try it on Expo

This app is bootstrapped with Expo, you can download the Expo app on the App Store or Play Store, and enter the url provided below. We have 2 release channels:

Release Channel Version Description Url
Production v1.8.10 Same version as Shoot! I Smoke on the App Store and Play Store. https://exp.host/@shootismoke/mobile-app?release-channel=production-v1.8.10
Staging v1.8.10 Latest version currently in development: newest features, may contain bugs. https://exp.host/@shootismoke/mobile-app

🔨 Build it yourself

Run the following commands:

# Clone this repo
git clone https://github.com/shootismoke/mobile-app && cd shoot-i-smoke
# Install dependencies
yarn install

# Copy secrets
cp .env.example .env

# Run the app with Expo
yarn start

The Expo packager will show, and you can either:

  • install the Expo app, scan the displayed QR code, and run the app on your mobile phone directly.
  • open the Android simulator.
  • open the iOS simulator.

Use your own API tokens

All required API tokens are already pre-filled in eas.json. If you want to use your own API tokens, then in eas.json's env field, add your own values. For those that are optional, you can just put null (without quotes).

Name Service Url Comments
GEOAPIFY_API_KEY Geoapify geocoding https://geoapify.com Required. Get your own and populate it in .env
BACKEND_SECRET Shoot! I Smoke Backend https://github.com/shootismoke/backend Required. Pre-filled with a staging token.
AQICN_TOKEN World Air Quality Index http://aqicn.org/api/ Required. You can use the public one in eas.json for development.
SENTRY_PUBLIC_DSN Sentry Bug Tracking https://sentry.io Optional.
AMPLITUDE_API_KEY Amplitude Analytics https://amplitude.com Optional. Note: we never track PII.
Google Maps for iOS https://developers.google.com/maps/documentation/ios-sdk/start Optional in development.
Google Maps for Android https://developers.google.com/maps/documentation/android-api/ Optional in development.

🙋 Contribute

If you find a bug, or if you have an idea for this app, please file an issue here. We really appreciate feedback and inputs! For code contribution, you can start with these easy tasks.

More information on contributing here.

🔬 Tests

The codebase unfortunately isn't much covered by tests. Check out the *.spec.ts files in the project for tests. If you're interested to help out, have a look at issue #19.

Releases

The app released on the App Store and Play Store is always the one on the production branch. We use EAS Update to remotely update the app when necessary. In general, this means that the semver patch version is bumped.

For major updates that don't work via EAS Update (such as an Expo SDK version bump), a new app binary is created using the commands below. In general, this means that the semver minor version is bumped.

# IOS
eas build -p ios
eas submit -p ios

# Android
eas build -p android
eas submit -p android

📰 License

GPL-3.0. See LICENSE file for more information.

⭐ Credits

Created with pride by Marcelo & Amaury.

A huge thanks to the following contributors for their amazing work:



Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 6 days ago

Total Commits: 730
Total Committers: 33
Avg Commits per committer: 22.121
Development Distribution Score (DDS): 0.63

Commits in past year: 13
Committers in past year: 1
Avg Commits per committer in past year: 13.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Amaury Martiny a****y@p****m 270
dependabot-preview[bot] 2****] 214
Amaury Martiny a****y@g****m 134
Amaury 1****m 63
dependabot[bot] 4****] 9
Lucien Blunk-Lallet l****t@g****m 4
Nick 9****t 4
Giacomo Lombardi l****2@g****m 2
James Pearson m****l@j****o 2
Marcelo Risse m****e@g****m 2
OlgaMorales 4****s 2
Vikrant Negi v****7@g****m 2
Sarthak Pranesh s****8@v****n 2
Ademílson F. Tonato 5****o 1
Brad Christie b****h@s****t 1
Elizabeth Gonzalez 4****2 1
s2moon98 5****8 1
mmsw1597 5****7 1
jorgerivero3 r****5@g****m 1
idanyman i****n@g****m 1
Yevhenii Melnyk m****i@g****m 1
Sathia s****4@g****m 1
Roberto Ortega b****t@g****m 1
Po Chun, Lu S****7 1
Pierre Veissi p****i@g****m 1
Per Lilja p****a@g****m 1
Mate Papp m****p@i****m 1
LeaGoarant 5****t 1
Kay s****y@g****m 1
Kartik Budhiraja 3****a 1
and 3 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 89
Total pull requests: 863
Average time to close issues: 3 months
Average time to close pull requests: 9 days
Total issue authors: 24
Total pull request authors: 37
Average comments per issue: 2.48
Average comments per pull request: 0.76
Merged pull request: 466
Bot issues: 0
Bot pull requests: 605

Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/shootismoke/mobile-app

Top Issue Authors

  • amaurym (61)
  • jamespearson (2)
  • rlewicki (2)
  • PIB275 (2)
  • vikrantnegi (2)
  • marceloscoelho (2)
  • kartik-budhiraja (1)
  • GarethRWhite (1)
  • Sirius207 (1)
  • gugacavalieri (1)
  • lucienbl (1)
  • nicolasmaia (1)
  • xoorath (1)
  • ngdangtu-vn (1)
  • Ali-TM-original (1)

Top Pull Request Authors

  • dependabot-preview[bot] (577)
  • amaurym (209)
  • dependabot[bot] (28)
  • DragonSpirit (4)
  • lucienbl (4)
  • marcelorisse (3)
  • OlgaMorales (2)
  • sarthakpranesh (2)
  • vikrantnegi (2)
  • mmsw1597 (2)
  • lomby92 (2)
  • jamespearson (2)
  • kartik-budhiraja (2)
  • pkhodaveissi (1)
  • IrvinDominin (1)

Top Issue Labels

  • good first issue (28)
  • F-planned (22)
  • help wanted (10)
  • Hacktoberfest (9)
  • F-idea (8)
  • bug (8)
  • question (4)
  • duplicate (1)

Top Pull Request Labels

  • dependencies (605)
  • security (7)
  • WIP (5)
  • help wanted (1)
  • backport (1)
  • bug (1)
  • Hacktoberfest (1)
  • invalid (1)

Dependencies

package.json npm
  • @amaurym/config ^1.3.5 development
  • @types/detox ^17.14.0 development
  • @types/jest ^26.0.20 development
  • detox ^18.6.2 development
  • detox-expo-helpers ^0.6.0 development
  • jest ^26.6.3 development
  • jest-expo ^40.0.0 development
  • ts-jest ^26.5.1 development
  • typescript ~4.0.0 development
  • @dooboo-ui/native-switch-toggle ^0.7.0
  • @expo/react-native-action-sheet ^3.8.0
  • @react-native-async-storage/async-storage ^1.14.1
  • @react-native-community/masked-view 0.1.10
  • @react-navigation/native ^5.9.3
  • @react-navigation/stack ^5.14.3
  • @shootismoke/ui ^0.8.8
  • @types/i18n-js ^3.8.0
  • @types/react-native ~0.63.2
  • date-fns ^2.17.0
  • expo ^40.0.1
  • expo-analytics-amplitude ~9.0.0
  • expo-av ~8.7.0
  • expo-detox-hook ^1.0.10
  • expo-localization ~9.1.0
  • expo-notifications ~0.8.2
  • expo-status-bar ~1.0.3
  • i18n-js ^3.8.0
  • react 16.13.1
  • react-native https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz
  • react-native-gesture-handler ~1.8.0
  • react-native-maps 0.27.1
  • react-native-reanimated ~1.13.0
  • react-native-safe-area-context 3.1.9
  • react-native-screens ~2.15.2
  • react-native-scroll-into-view ^1.0.3
  • react-native-size-matters ^0.4.0
  • react-native-view-shot 3.1.2
  • sentry-expo ^3.0.4
  • truncate ^2.1.0
yarn.lock npm
  • 1701 dependencies
.github/workflows/eas.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/setup-node v2 composite
  • expo/expo-github-action v7 composite
.github/workflows/pr.yml actions
  • actions/checkout v1 composite

Score: 9.746482803725963