This is an POC for showing current Air Quality of different Cities in graphical format using webSocket

Overview

Air-Quality-Monitoring

This is an POC for showing current Air Quality of different Cities in graphical format using webSocket.

It Used danielgindi/Charts to show Bar graph chart from https://github.com/danielgindi/Charts.

CocoaPods Install Add pod 'Charts' to your Podfile. "Charts" is the name of the library.

Architectural Design Pattern - MVVM (Model-View-ViewModel)

Project

WebSocket.swift - A WebSocket is a network protocol that allows two-way communication between a server and client. Unlike HTTP, which uses a request and response pattern, WebSocket peers can send messages in either direction at any point in time.

CityAQIModel.swift - Data model class

AQIViewModel.swift - ViewModel for buisness Logic

ViewController.swift - View Controller Class contains UI Logic to display the data

AQICustomTableViewCell.swift - Custom Cell

Screenshot 2021-12-01 at 1 13 47 AM

Screenshot 2021-12-01 at 1 10 33 AM

Known Issues: The App doesnot use CoreData, so data is not persistant for now. The time to get the Data is set for 10sec interval that user can feel the updates happening in real time. User can update the timeToRefresh variable in WebSocket.swift class to increase/decrease refresh time

You might also like...
AirQualityMonitoringDashboard - (AQI)Air Quality Monitoring Dashboard
AirQualityMonitoringDashboard - (AQI)Air Quality Monitoring Dashboard

AirQualityMonitoringDashboard (AQI)Air Quality Monitoring Dashboard This is an s

Simple iOS app in Swift to show AQI for some cities using websocket using Combine + MVVM
Simple iOS app in Swift to show AQI for some cities using websocket using Combine + MVVM

AQI Simple iOS app in Swift to show AQI for some cities using websocket using Combine + MVVM This app follows MVVM This app uses combine framework The

Get location of user and show near cities and weather of the cities for next 6 days. (iOS)

technical-assignment-Weather-App This project written in Swift by Emre Kılınc You need to have Xcode installed. Please open weather_app.xcworkspace wi

An poc to make a login using Auth0 in Swift

Swift-Auth0-poc This app is an poc to make a login using Auth0. If you want to try it yourself here is a small tutorial on how to do it. 1. Configure

Bitcoin-price - Application to consult the current price of a Bitcoin in different currencies
Bitcoin-price - Application to consult the current price of a Bitcoin in different currencies

bitcoin-price Aplicativo para consultar o preço atual de um Bitcoin em diversas

QEMU-Manager is a macOS graphical frontend to QEMU, written in Swift.
QEMU-Manager is a macOS graphical frontend to QEMU, written in Swift.

QEMU-Manager About QEMU-Manager is a macOS graphical frontend to QEMU, written in Swift. Screenshots General Configuration: Hardware Configuration: Di

WKZombie is an iOS/OSX web-browser without a graphical user interface.
WKZombie is an iOS/OSX web-browser without a graphical user interface.

WKZombie is a Swift framework for iOS/OSX to navigate within websites and collect data without the need of User Interface or API, also known as Headless browser. It can be used to run automated tests / snapshots and manipulate websites using Javascript.

Podman-desktop: a graphical menu bar application for managing Podman machines

podman-desktop podman-desktop is a graphical menu bar application for managing P

A graphical Mach-O viewer for macOS.  Powered by Mach-O Kit.
A graphical Mach-O viewer for macOS. Powered by Mach-O Kit.

Mach-O Explorer is a graphical Mach-O viewer for macOS. It aims to provide an interface and feature set that are similar to the venerable MachOView ap

PoC of function hooking in Swift

SWRoute is a tiny Swift wrapper over rd_route(). It allows you to route (hook) quite any function/method with another function/method or even a closur

A tester tool for the bug PoC released by Synacktiv for 15.0 - 15.4 beta 3

SploitTest A tester tool for the bug PoC released by Synacktiv for 15.0 - 15.4 beta 3 iOS 15.4 patched a kernel vulnerability introduced in iOS 15.0 b

POC for a bug with react-native-webview crashing on IOS 16.1

POC Shared Worker issues with IOS 16.1 webview Apple Developers post with workaround Webkit confirmed issue Start a simple http server with shared wor

An IOS app that shows big 6 different animals from different National Parks from Africa, App available for mactosh
An IOS app that shows big 6 different animals from different National Parks from Africa, App available for mactosh

An IOS app that shows big 6 different animals from different National Parks from Africa, App available for mactosh. Africa was developed using SwiftUI

This app is using web-socket for realtime updation of aqi for dedicated inidan cities.

CityWiseAQI This app is using web-socket for realtime updation of aqi for dedicated inidan cities. We're following MVVM architecture in this app. This

High Quality Image ScrollView using cropped tiled images.
High Quality Image ScrollView using cropped tiled images.

THTiledImageView Feature 🖼 THTiledImageView fully support UIScrollView. You can subclass it and use it. 📡 Support Async Image Downloading & Caching.

A TimeZonePicker UIViewController similar to the iOS Settings app. Search and select from a range of cities and countries to find your most suitable time zone.
A TimeZonePicker UIViewController similar to the iOS Settings app. Search and select from a range of cities and countries to find your most suitable time zone.

TimeZonePicker A TimeZonePicker UIViewController similar to the iOS Settings app. Search and select from a range of cities and countries to find your

MVVM project to show AQI of cities via web socket

Air Quality Monitoring Application Swift project with JSON parsing using codable About the application The app consists of live realtime data from the

Owner
null
AirQualityMonitoringDashboard - (AQI)Air Quality Monitoring Dashboard

AirQualityMonitoringDashboard (AQI)Air Quality Monitoring Dashboard This is an s

Rajesh Kumar G A 0 Feb 6, 2022
Swift library to easily check the current device and some more info about it.

Usage To run the example project, clone the repo, and run pod install from the Example directory first. let device = Deviice.current device is a Devi

Andrea Mario Lufino 56 Nov 3, 2022
Light weight tool for detecting the current device and screen size written in swift.

Device detect the current  device model and screen size. Installation CocoaPods Device is available through CocoaPods. To install it, simply add the

Lucas Ortis 1.5k Dec 28, 2022
Easily communicate between iOS/OSX devices using BLE

BluetoothKit Easily communicate between iOS devices using BLE. Background Apple mostly did a great job with the CoreBluetooth API, but because it enca

Rasmus Høhndorf Hummelmose 2.1k Dec 29, 2022
Demo using Terminal.Gui with Llama Swift

Hola! This repo is a demo which shows the use of Llama Swift with Terminal.Gui. Llama is my exploratory project to compile "other languages" for .NET

Eric Sink 6 May 22, 2021
AmiiboReader - Reading data from amiibo by using Core NFC

AmiiboReader Reading data from amiibo by using Core NFC NTAG215 Data Sheet https

Shinichiro Oba 7 Mar 24, 2022
An iOS App which shows live AQI (Air quality index) data for different cities using Web-socket

AQI - Assignment This is an iOS App which shows live AQI (Air quality index) dat

Pratik Prajapati 3 Jul 21, 2022
Demo to show Air Quality Indices of Cities (in India) using SwiftUI and Combine Framework

AirQualityMonitoring-SwiftUI-Combine Demo to show Air Quality Indices of Cities (in India) using SwiftUI and Combine Framework Demo Video City List wi

Minhaz Panara 0 Jan 23, 2022
AQMonitoring - Air Quality Monitoring App to see live AQI and city data/graph in Swift with WebSocket and MVVM architecture

AQMonitoring Air Quality Monitoring App to see live AQI and city data/graph in S

Kajal Nasit 0 Jan 9, 2022
AirQualityMonitoring - Here display the live air quality monitoring data

AirQualityMonitoring Here display the live air quality monitoring data. Details

MdNiks 0 Jan 28, 2022