Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
/ Weather-PWA Public archive

There aren't many comments. I'll add more later. Contribute at your own risk

Notifications You must be signed in to change notification settings

i-am-gizm0/Weather-PWA

Repository files navigation

Weather App

A simple weather PWA using the Dark Sky and LocationIQ APIs.
I know that the Dark Sky API will be shut down next year and before then, I will transition to a different API.

Secrets

Create a secret.php file in the api directory. It should be structured like so:

<?php
    $geocode_token = "<YOUR LOCATIONIQ TOKEN>";
    $secret_referrer = "<YOUR LOCATIONIQ SECRET REFERRER>";
    $weather_token = "<YOUR DARK SKY TOKEN>";
?>

Requirements

You will need to npm install skycons-ts and download skycons.js and put it in the scripts directory