GithubHelp home page GithubHelp logo

fossabot / localweather-io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikesprague/localweather

0.0 1.0 0.0 5.14 MB

:sun_behind_small_cloud: Minimalist local weather app powered by Dark Sky

Home Page: https://localweather.io

License: MIT License

JavaScript 85.61% HTML 5.00% CSS 9.39%

localweather-io's Introduction

LocalWeather.io

Minimalist local weather app powered by Dark Sky

LocalWeather.io screenshots coming soon FOSSA Status

Features

  • Progressive Web App
    • ServiceWorker used for caching assets
    • localStorage used to cache API requests in 10 minute intervals
    • App is available when offline or with intermittent connections
      • Automatically checks for new data when back online (or connection stabilizes)
    • Responsive design that scales for all device types
    • App and all assets serverd over HTTPS
    • Can add app to homescreen on mobile devices that support PWAs
    • Last Google Lighthouse audit received 100 for PWA (results) Google Lighthouse Scores
  • Geolocation from browser used for location (latitude/longitude)
    • Uses the ask permission responsibly philosophy
      • Let's users know their location info will be used
      • Asks user to initiate process to approve access to location
      • PLANNED: Fall back to IP address geolocation service
  • Google Maps Reverse Geocoding API used to translate lat/lon to friendly name
  • Weather data retrieved from Dark Sky API
  • All external API calls consolidated via barebones Node/Express API
    • Alleviates CORS issues
    • Allows for more control with rate limiting
    • Easier to abstract private API keys
    • NOTE: API source currently in private repo, planning to make public in the future
  • Background color, favicon, and title are dynamic
    • Background color based on conditions and time of day
      • Clear (Day/Night)
      • Cloudy (Day/Night) - if current cloud cover over 60%
      • Rainy (Day/Night)
      • Snowy (Day/Night)
    • Favicon updates to same as curren conditions on webpage
    • Browser/Tab titlebar text updates to current temp and conditions
  • Tooptips provide additional data and information about data types
    • Available via most parts of the interface
      • Hover to display on laptops/desktops
      • Tap/touch to display on mobile devices and tablets
  • App automatically checks for updates (if left open)
    • Runs a task every minute, if past the 10 minute cache timeout then data is refreshed
  • Uses Bugsnag for error reporting and release tracking

Made with

License

FOSSA Status

localweather-io's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.