Giter Site home page Giter Site logo

allanlaal / weather-calendar-feed Goto Github PK

View Code? Open in Web Editor NEW
18.0 5.0 4.0 217 KB

Display yr.no weather (supports the entire Earth) forecasts with highly customizable Event titles in your Google Calendar, Android phone, iPhone, Outlook or other iCalendar app

License: MIT License

PHP 100.00%
google-calendar weather-feed calendar-url weather-forecast weather-calendar-feed rain temperature ics icalendar calendar

weather-calendar-feed's Introduction

weather-calendar-feed

Display yr.no weather forecasts in Google Calendar with a compact title and very detailed description.

usage

http://weather.is.not.permanent.ee/?location={Your/Weather/Location}&filename=weather.ics

Example calendar URL:

http://weather.is.not.permanent.ee/?location=Estonia/Harjumaa/Tallinn&filename=weather.ics

Modify the location in the URL according to your needs.

Add the above url into your Google Calendar at Other Calendars -> down arrow box thingie -> Add by URL.

location

Look up your location in (Yr.no)[http://www.yr.no/soek/soek.aspx?spr=eng], go to that page and copy your Yr.no location string from the URL bar (everything after http://www.yr.no/place/)

location=Estonia/Harjumaa/Tallinn

filename

This is the filename of the file offered for download when you access the calendar URL directly. This needs to be the last URL parameter, because otherwise Google Calendar will not read anything from this URL and will silently fail.

filename=weather.ics

If you already added this calendar and Google is having difficulties updating the weather feed, then import it again changing the filename parameter from weather.ics to some_other_random_name.ics

Questions & Answers

Q: Whats in the title of the calendar event?

A: for example:

30|-22❄12㎜11.2⇶

which means:

{Highest temperature}|{Lowest Temperature}{Icon depicting todays weather}{Total rainfall in mm}㎜{max windspeed in m/s}

Q: What does the little icon between todays temperature and rainfall show?

A: This is the icon depicting todays weather: There are 4 different icons:

  • ❄ = Temperature below 0°C with snow/rain
  • ⛄ = Temperature below 0°C without any rain
  • ☔ = Temperature above 0°C with rain
  • ☀ = Temperature above 0°C without any rain

Q: Why yr.no?

A: Because it has the most accurate weather forecast system that I know of.

Q: How many days in advance is the forecast?

A: 10 days.

Q: Can I get more days advanced forecast?

A: No. Maybe if Norway finds more oil fields. Yr.no is their governments national weather forecast service and limits forecasts to 10 days.

Q: Why only metric units?

A: If you are still using the length of some kings foot as the basis of your system of measurement, please consider converting to SI :)

weather-calendar-feed's People

Contributors

allanlaal avatar evert-mouw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

weather-calendar-feed's Issues

Make the service public :-)

Hi,

this service sounds like exactly what I'm looking for, but it wants some credentials. Are there any plans to open this up for public use? This would be awesome!

cheers matti

i did some changes

Great stuff :-) Now I can import weather forecasts in Orage, calcurse and Outlook.
I've made a few changes to the index.php, please use diff/meld to see the changes.
Quick overview:

  • using beaufort for wind speed, so requiring windspeed.php
  • mv index.php get.php
  • replaced and added a few weather emoji for the summary
  • event availability is now "free" (don't show as busy)
  • using the "Conditions" to determine precipitation_icon when temp_min>0
  • choice between one weather icon (calculates averages) or multiple emoji using a URL param

Here you go: (removed, see pull request)

ADD ability to customize summary

I think we should make summary into a url string for the feed so users can fully customize their experience

each datapoint will be variable in the url, so users can use custom labels etc

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.