henningjensen / pyyrlib Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ways/pyyrlib
A copy/fork of https://gitorious.org/altut-i-python/pyyrlib
This project forked from ways/pyyrlib
A copy/fork of https://gitorious.org/altut-i-python/pyyrlib
As I was unable to establish contact with the author of https://gitorious.org/altut-i-python/pyyrlib, I created a copy here. The file verda.txt is from http://om.yr.no/verdata/xml/. TODO ---- * Sorting / searching in db has weird priorites. Ex: York gives jamaica/manchester/york. Resolve like this: ** Any request with several hits; list hits. no weather. ** Allow/requre user to specify: england/york or europe/york Importing data into mysql ------------------------- This is to enable name search (Norway and international). * Create db with pyyrlib.sql * Run 01-parse-data.sh * Run 02-import-data.py Copy of original README: About ----- This library provides a simple api for accessing weather data from the Norwegian web site yr.no. At the time being, it is extremely simple. Example ------- Import the module: >>> import pyyrlib Search for location: >>> pyyrlib.get_location_url('location-name') http://url-to-yr.no/xml-data-for-location-name.xml Get weather data for the found location: >>> pyyrlib.returnWeatherData('url-to-yr/location.xml') { weatherdata as dictionary } Simple command line usage: bash: pyyrlib.py 'url-ty-yr/location.xml' [ acceptably formatted weatherdata in clean text ] Known issues ------------ - Fragmented and sketchy Todo ---- - Develop into a real python library - Connect the search function and stedsnavn.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.