ryanburns23 / paper-weather Goto Github PK
View Code? Open in Web Editor NEWโ๏ธ๐ง Material design weather element inspired by google weather
License: MIT License
โ๏ธ๐ง Material design weather element inspired by google weather
License: MIT License
After building, icons are referenced from bower_compoenents/paper-weather/icons/ICON.png
Unless you add the images into the build directory, they will 404.
Base 64 encode images in a new paper-weather-icons.html
. This will ensure icons make it to production.
Use base 64 image to convert images
screenshot from webcomponents.org overview page.
Happening on my app as well as on the demo.
On some instances, when looking at my devtools network page, I don't see any request being made; the 'loading spinner' continues to spin, until 'Error getting weather' appears.
Other times I see the request happen, but the response from yahoo is results: null
screenshot
Additionally the error image seems to be missing.
How to set the location from geolocation latitude/longitude?
It now says "Error Getting Weather" when calling the component. Event the JS Fiddle demo throws this error https://jsfiddle.net/SlashBunny/9tnL9kj5/
Add ability to control shadow elevation just like paper-material
for example
//@apply --shadow-elevation-2dp (elevation default to '1')
<paper-weather unit="[[unit]]" hide-forecast="[[hideForecast]]" location="[[location]]"></paper-weather>
//no shadow
<paper-weather unit="[[unit]]" hide-forecast="[[hideForecast]]" location="[[location]]" elevation="0"></paper-weather>
//@apply --shadow-elevation-8dp
<paper-weather unit="[[unit]]" hide-forecast="[[hideForecast]]" location="[[location]]" elevation="4"></paper-weather>
I've already forked and started an implementation, so pr incoming!
I think the API allows for you to request Fahrenheit or Celsius, can you add a property to allow users to pick which they want
How to set the locale / language of the text in the element?
Import base64 icons via a .js file so they are available immediately
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.