/weather-beacon

A weather beacon written in PHP you can run on your own server or at the website listed.

Primary LanguagePHPMIT LicenseMIT

Weather Beacon

About

This weather beacon shows colors based on the current weather conditions for your location using openweathermap.org's weather API.

Colours

Notes

  • The API Key has been hidden
  • The location has been hidden
  • Under MIT License

Installation

Requirements:

  • A Web Server
  • PHP
  • An Openweathermap API key (get one here)

Step 1

Clone this repo using git clone https://github.com/Sid220/weather-beacon.git or if you have the github CLI gh repo clone Sid220/weather-beacon.

Step 2

Next upload this to the server by moving the folder using a command simmilair to this: [sudo] mv ./weather-beacon/ [server directory (in apache the default is /var/www/html/)]

Step 3

Use a text editor to change:

  • <CITY> to your city
  • <2-DIGIT_COUNTRY_CODE> to your country code e.g. US
  • <LATITUDE> to your latitude (you can use an online tool like this to find it out)
  • <LONGITUDE> to your longitude (you can use an online tool like this to find it out)
  • <API_KEY> to your API key

Help, I'm a millenial who needs a pretty GUI and therefore can't use a CLI to solve my own problems

File an issue