GithubHelp home page GithubHelp logo

ayushrawal / weather-widget-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blackadderkate/weather-widget-2

0.0 1.0 0.0 3.49 MB

Updated version of Weather Widget by Kotelnik

License: GNU General Public License v2.0

CMake 1.47% Shell 6.43% JavaScript 10.23% QML 80.28% C++ 1.58%

weather-widget-2's Introduction

An updated version of the "plasma-applet-weather-widget" by Kotelnik.

To summarise the reason for this fork, YR.NO have changed their API and Kotelnik's original widget no longer works correctly with their data, and their project seems to be abandoned. So I have downloaded their code, did some serious research and hacking over Christmas, and eventually come up with this project.

There are a couple of significant changes:

The new API uses Latitude and Longtitude to download the weather data - they have helpfully created some lookup files, but they are too large to be included in the widget. You can find them here:

https://www.yr.no/storage/lookup/Norsk.csv.zip https://www.yr.no/storage/lookup/English.csv.zip.

The new Data does not include Sunrise or Sunset times, so I've had to find an alternative API but this new source does not appear to be very accurate.

A full list of the API changes can be found here: https://developer.yr.no/doc/guides/getting-started-from-forecast-xml/

In addition I have made the following modifications:

I have added Wind Direction/Strength icons to the "rendered" Meteogram so it more closely matches the original YR.NO graphic.

I have added MouseOvers to the Wind Direction/Strength icons to show the predicted Windspeed value.

I have added rainfall Units to the Meteogram.

I am just a hobbyist / enthusiastic amateur - I'm sure a professional Javascript / QML programmer will be horrified with my code! So bug reports, suggestions, code polishes and bugfixes are welcome - as are translations (as Google Translate may not have been entirely accurate)!

weather-widget-2's People

Contributors

blackadderkate avatar vistaus avatar solbu avatar

Watchers

James Cloos 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.