vejnoe / weather-in-your-calendar

Add a calendar with your local weather in your calendar
101 stars 20 forks source link

Weather in your Calendar   ⛅️ 26°

This is the code powering the Weather in your Calendar.

It's a simple PHP script generating a .ical formated calendar with a 16 days weather forecast with data from OpenWeatherMap.

You can try it out here

Calendar preview

URL parameters

Usage

You can upload it to your host and enter the following url like so:

https://yourdomain.com/weather-cal.php?city=London&units=imperial

Options

Key Values
city city name or
city name,state code or
city name,state code,country code
units metric or imperial
temperature day or low-high
location show or hide

System Requirements

These are the emojis used so fare:

Emojis in Event Title

Your Browser Emoji code API names
☀️ :sunny: 01d
:sparkles: 01n
🌤 :sun_behind_small_cloud: 02d, 02n
☁️ :cloud: 03d, 03n, 04d, 04n
🌧 :cloud_with_rain: 09d, 09n
🌦 :sun_behind_rain_cloud: 10d, 10n
:cloud_with_lightning_and_rain: 11d, 11n
🌨 :cloud_with_rain: 13d, 13n
🌫 :fog: 50d, 50n
🤔 :thinking: No match

Emojis in the Description

Your Browser Emoji code
🌅 :sunrise:
⚡️ :zap:
💧 :droplet:
💨 :dash:
🚩 :triangular_flag_on_post:

Check it out on Product Hunt

Featured on Product Hunt