Git Product home page Git Product logo

localweather-io's Introduction

LocalWeather.io

Netlify Status Known Vulnerabilities Greenkeeper badge FOSSA Status

Minimalist local weather app powered by Dark Sky

LocalWeather.io screenshots coming soon

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
    • Latest Google Lighthouse audit (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

MIT License

Copyright (c) 2019 Michael Sprague

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

localweather-io's People

Contributors

dependabot[bot] avatar fossabot avatar greenkeeper[bot] avatar mikesprague avatar snyk-bot avatar

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.