samuele-mattiuzzo / atom-metaweather Goto Github PK
View Code? Open in Web Editor NEWAtom package that uses metaweather.com's API
License: MIT License
Atom package that uses metaweather.com's API
License: MIT License
If that's possible
I'm sure I'm not the only American who would appreciate this feature!
It seems that their API doesn't support requesting Fahrenheit instead of Centigrade, so you'd have to do the conversion after receiving the data. Luckily, the formula is simple:
Ā°F = Ā°C * 9/5 + 32
And in action:
Ā°48F = *9C * 9/5 + 32
Seems to not be working, poops
Polish up the code, possibly move data formatting in separate file
index.js:56 Error: Cannot find module '/Users/smau/Workspace/Git/spec' at Module._resolveFilename (module.js:336) at Function.Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app.asar/src/module-cache.js:383) at Function.Module._load (module.js:286) at Module.require (module.js:365) at require (module.js:384) at requireSpecs (/Applications/Atom.app/Contents/Resources/app.asar/spec/jasmine-test-runner.js:101) at module.exports (/Applications/Atom.app/Contents/Resources/app.asar/spec/jasmine-test-runner.js:49) at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/initialize-test-window.js:81) at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/initialize-test-window.js:102) at Module._compile (module.js:434) at Object.defineProperty.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:190) at Module.load (module.js:355) at Function.Module._load (module.js:310) at Module.require (module.js:365) at require (module.js:384) at setupWindow (index.js:79) at window.onload (index.js:35) handleSetupError @ index.js:56
Iām getting this after restarting Atom. Looking at the API response body, it looks like wind_direction_compass
is no longer being exposed.
Atom generated blurb:
Atom Version: 1.4.3
System: Mac OS X 10.11.3
Thrown From: atom-metaweather package, v0.7.0
Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
At /Users/lnewmarch/.atom/packages/atom-metaweather/lib/atom-metaweather-format.coffee:51
TypeError: Cannot read property 'toLowerCase' of undefined
at Format._formatWind (/Users/lnewmarch/.atom/packages/atom-metaweather/lib/atom-metaweather-format.coffee:51:44)
at Format._formatAll (/Users/lnewmarch/.atom/packages/atom-metaweather/lib/atom-metaweather-format.coffee:81:15)
at Format.get (/Users/lnewmarch/.atom/packages/atom-metaweather/lib/atom-metaweather-format.coffee:91:12)
at status-bar-metaweather.MetaweatherView._formatOutput (/Users/lnewmarch/.atom/packages/atom-metaweather/lib/atom-metaweather-view.coffee:106:9)
at status-bar-metaweather.MetaweatherView._writeData (/Users/lnewmarch/.atom/packages/atom-metaweather/lib/atom-metaweather-view.coffee:110:29)
Usage, developing instructions, screenshot, settings explanations, links to metaweather
Add glyphs for reads, find strength bar for predictability, use weather glyphs for descriptive
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.