All Projects → mackuba → SmogWatch

mackuba / SmogWatch

Licence: WTFPL license
watchOS app for checking air pollution levels, created for my blog post series

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to SmogWatch

airqmon
A macOS menu bar application that displays live air quality data from the nearest sensor station.
Stars: ✭ 86 (+152.94%)
Mutual labels:  air-quality, smog, air-pollution, poland
WatchActivityIndicator
An Apple Watch activity indicator
Stars: ✭ 23 (-32.35%)
Mutual labels:  watchos, apple-watch, watchkit
TWAQIReactNative
台灣空污即時預報
Stars: ✭ 24 (-29.41%)
Mutual labels:  air-quality, air-pollution
woeip
A platform for impacted communities to understand their local air quality and advocate for environmental justice.
Stars: ✭ 26 (-23.53%)
Mutual labels:  air-quality, air-pollution
FlickTypeKit
A powerful keyboard for your Apple Watch app
Stars: ✭ 96 (+182.35%)
Mutual labels:  watchos, apple-watch
ropenaq
⛔ ARCHIVED ⛔ Accesses Air Quality Data from the Open Data Platform OpenAQ
Stars: ✭ 69 (+102.94%)
Mutual labels:  air-quality, air-pollution
watchface-pride
🏳️‍🌈⌚️ Pride watch faces for watchOS 7+
Stars: ✭ 31 (-8.82%)
Mutual labels:  watchos, apple-watch
Ios Samples
Xamarin.iOS sample apps
Stars: ✭ 1,501 (+4314.71%)
Mutual labels:  watchos, watchkit
Open Source Ios Apps
📱 Collaborative List of Open-Source iOS Apps
Stars: ✭ 28,826 (+84682.35%)
Mutual labels:  watchos, apple-watch
WatchKitTimePicker
⏱ A Time Picker data source for WatchKit that mirrors the behavior of UIDatePicker.
Stars: ✭ 37 (+8.82%)
Mutual labels:  watchos, watchkit
aircitizen
main repo of the aircitizen project
Stars: ✭ 18 (-47.06%)
Mutual labels:  air-quality, air-pollution
s5p-tools
Python scripts to download and preprocess air pollution concentration level data aquired from the Sentinel-5P mission
Stars: ✭ 49 (+44.12%)
Mutual labels:  air-quality, air-pollution
rdefra
rdefra: Interact with the UK AIR Pollution Database from DEFRA
Stars: ✭ 14 (-58.82%)
Mutual labels:  air-quality, air-pollution
ScaledFont
ScaledFont - Using custom fonts with dynamic type
Stars: ✭ 50 (+47.06%)
Mutual labels:  watchos
RFKit
Toolkit for daily Cocoa development. Since 2012.
Stars: ✭ 20 (-41.18%)
Mutual labels:  watchos
WonderfulPolishLanguage
This is a repository created for the list of resources for learning and exploring Wonderful Polish language.
Stars: ✭ 31 (-8.82%)
Mutual labels:  poland
Futures
Lightweight promises for iOS, macOS, tvOS, watchOS, and Linux
Stars: ✭ 59 (+73.53%)
Mutual labels:  watchos
SwiftCurrent
A library for managing complex workflows in Swift
Stars: ✭ 286 (+741.18%)
Mutual labels:  watchos
WWDCNotes
WWDCNotes.com content
Stars: ✭ 343 (+908.82%)
Mutual labels:  watchos
PineappleTimer
Pomodoro timer with 🍍 theme, an independent watchOS 6 app
Stars: ✭ 34 (+0%)
Mutual labels:  watchos

SmogWatch

This is an app I'm building for my blog post series "WatchKit Adventure". Its goal is to display the level of PM10 smog pollution (fetched from a local monitoring station) on the Apple Watch's watch face. Initially it only works for a single preset station in Kraków, Poland.

The second goal is for me to learn programming for watchOS and also get some experience that I can share in the blog posts :)

Installation & Running

If you want to try out the app, clone the repo (or download a zip) and open it in Xcode. There are currently no external dependencies, so just build the project.

Running a watch app in the simulator is about 100x easier than getting an actual device to cooperate, so try that first. Then, to run on the real watch, you will probably need to edit at least the developer team and the app ID. If you manage to run it, let me know what else you needed to do :)

The app currently uses http://monitoring.krakow.pios.gov.pl for the data and has a hardcoded ID of PM10 parameter on the Kurdwanów station. If you want a different station (as long as it's from the Małopolska monitoring system) then open the site in the browser, select only PM10 parameter only on one selected station, load the data and check in the web inspector what parameter was sent in the request. The query in KrakowPiosDataLoader.swift is the place you need to update.

Yup, it's all very very rough right now - did I ever say this was a finished app? It's basically version 0.0.1 :)

It's possible that there are other regional monitoring systems in Poland that use the same API, so let me know if you find one.

Complications

The part that's working so far is complications. Not all families are supported, currently Modular Small works best since that's what I primarily use (on Modular or Siri watch faces). If you really want to use a different complication that isn't supported yet, look in ComplicationHandler.swift, and also enable the complication family in the target settings.

Main UI

The app itself has currently no UI whatsoever, so if you see a black screen, don't worry, it's not broken. First things first, you know...

Credits

Copyright © 2019 Kuba Suder. Licensed under WTFPL License.

I've made the code available under WTFPL because the whole idea is for other people to be able to learn this stuff together with me and reuse any pieces they need from my app to build their own. So take what you need and build cool shit, and don't worry about licences. Of course if you want to mention me somewhere, I'll be very happy :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].