All Projects → justinribeiro → Speedometer Pwa

justinribeiro / Speedometer Pwa

Licence: mit
A tiny no-frills speedometer progressive web app based on Geolocation API, AmbientLightSensor API, and WakeLock API.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Speedometer Pwa

Nuxt7
📱 Full Featured iOS & Android PWA Apps with Nuxt.js and Framework7
Stars: ✭ 282 (-15.32%)
Mutual labels:  pwa
Ngx Responsive
Superset of RESPONSIVE DIRECTIVES to show or hide items according to the size of the device screen and another features in Angular 9
Stars: ✭ 300 (-9.91%)
Mutual labels:  pwa
Vuefront
VueFront Core. Turn your old-fashioned CMS website in to a SPA & PWA in 5 minutes
Stars: ✭ 316 (-5.11%)
Mutual labels:  pwa
Sapper Ecommerce
Svelte ecommerce - Headless, Authentication, Cart & Checkout, TailwindCSS, Server Rendered, Proxy + API Integrated, Animations, Stores, Lazy Loading, Loading Indicators, Carousel, Instant Search, Faceted Filters, 1 command deploy to production, Open Source, MIT license. Join us as contributor ([email protected])
Stars: ✭ 289 (-13.21%)
Mutual labels:  pwa
Awesome Learning Resources
🔥 Awesome list of resources on Web Development.
Stars: ✭ 3,928 (+1079.58%)
Mutual labels:  pwa
Create Vue App
Create Vue apps with no build configuration.
Stars: ✭ 304 (-8.71%)
Mutual labels:  pwa
React Storefront
Build and deploy e-commerce progressive web apps (PWAs) in record time.
Stars: ✭ 275 (-17.42%)
Mutual labels:  pwa
Quasar
Quasar Framework - Build high-performance VueJS user interfaces in record time
Stars: ✭ 20,090 (+5933.03%)
Mutual labels:  pwa
Expo Netflix
Netflix UI Clone with React Native & Expo || web support => https://expo-netflix.vercel.app
Stars: ✭ 297 (-10.81%)
Mutual labels:  pwa
Super Progressive Web Apps
SuperPWA helps to convert your WordPress website into Progressive Web Apps instantly. PWA (Progressive Web Apps) demo at : https://superpwa.com and Plugin :
Stars: ✭ 304 (-8.71%)
Mutual labels:  pwa
Next Editor
Standalone Git Editor on Browser
Stars: ✭ 288 (-13.51%)
Mutual labels:  pwa
React Storefront
React Storefront - PWA for eCommerce. 100% offline, platform agnostic, headless, Magento 2 supported. Always Open Source, Apache-2.0 license. Join us as contributor ([email protected]).
Stars: ✭ 292 (-12.31%)
Mutual labels:  pwa
Vue Offline
Offline states and storage for Vue PWA
Stars: ✭ 308 (-7.51%)
Mutual labels:  pwa
Ssr Sample
A minimum sample of Server-Side-Rendering, Single-Page-Application and Progressive Web App
Stars: ✭ 285 (-14.41%)
Mutual labels:  pwa
React Shrine
"Shrine" Progressive Web App sample built with React
Stars: ✭ 322 (-3.3%)
Mutual labels:  pwa
Slingcode
personal computing platform
Stars: ✭ 277 (-16.82%)
Mutual labels:  pwa
Hint
💡 A hinting engine for the web
Stars: ✭ 3,280 (+884.98%)
Mutual labels:  pwa
Electron Alternatives
Few Cross platform desktop GUI App development options are listed here
Stars: ✭ 330 (-0.9%)
Mutual labels:  pwa
Fastify
Fast and low overhead web framework, for Node.js
Stars: ✭ 21,489 (+6353.15%)
Mutual labels:  speed
Mix.core
🚀 Mixcore CMS is an open source CMS that support both headless and decoupled to easily build any kinds of app/web app/customisable APIs built on top of ASP.NET Core / Dotnet Core. It is a completely open source ASP.NET Core (Dotnet Core) CMS solution. https://mixcore.org
Stars: ✭ 304 (-8.71%)
Mutual labels:  pwa

speedometer-pwa

A tiny no-frills speedometer progressive web app based on Geolocation API, AmbientLightSensor API, and WakeLock API.

test-drive-into-wall

Why?

Because the Combination Meter on my 2005 Prius is on the fritz, and I need a speedometer until I can tear apart and repair the faulty caps. :-)

How it works

The GeoLocation API has a Position interface, which contains a Coordinates object, coords. This Coordinates interface contains not only things you might expect (latitude, longitude), but also contains a property called speed, which is represents the device velocity in meters per second. Fun fact, Chrome on Android returns this prop with very little effort, at which point it's just a matter of some quick math to do the mph/kmh conversion.

Night mode

I implemented AmbientLightSensor API to enable a dark mode while driving at night. To get this working in Chrome on Android you have to enable Generic Sensor extra classes, which is behind a flag: chrome://flags#enable-generic-sensor-extra-classes

20181207-day-night-mode

Screen lock

Since M71, the WakeLock API has been enabled for testing purposes (see the current status on Chrome Platform Status). This ideally allows us to keep the screen from going into power saving mode and generally an off state. I've enabled this (you'll need M71 Chrome for Android) for testing.

Dev

Hop into the src folder and run the local web server of your choice. No specific tool required.

Build

I didn't really wrap this with build tooling, but I did crunch it down to 1.7K gzip'ed for fun using closure compiler and http-minifier. The rest is just some fancy Linux CLI jumping and sed (and I almost just used a make file instead ;-).

$ yarn install
$ yarn dist

FAQ

  1. How accurate is this?

When the dash is working on the Prius, it's pretty accurate from the looks of it. You're going to be constainted on any number of know problems with GPS (e.g., when the Coordinates.accuracy is not very good because of lock or assist issues).

  1. Why didn't you use build tools/a framework/something I like.

Didn't feel the need.

  1. Couldn't you have done this with the Generic Sensors API and the accelerometer?

Yeah, probably.

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].