brainmaestro / cerebro-weather Goto Github PK
View Code? Open in Web Editor NEWSimple weather plugin for concise five-day forecasts
License: MIT License
Simple weather plugin for concise five-day forecasts
License: MIT License
Uncaught (in promise) TypeError: Cannot read property 'woeid' of undefined
at C:\Users\Benjamin\AppData\Roaming\Cerebro\plugins\node_modules\cerebro-weather\dist\index.js:1
at C:\Users\Benjamin\AppData\Roaming\Cerebro\plugins\node_modules\cerebro-weather\dist\index.js:1
at re (C:\Users\Benjamin\AppData\Roaming\Cerebro\plugins\node_modules\cerebro-weather\dist\index.js:1)
I often get TypeError: Cannot read property 'woeid' of undefined
in the developer console. This is occurring when the weather api returns an empty array of locations. The head function in the snippet below returns undefined which leads to the eventual TypeError. The preview also gets stuck at 'Loading...'. It might be best to not show any Cerebro results when there are no locations or give a different display.
export const getWeather = city => (
searchCity(city)
.then(head)
.then(prop('woeid'))
.then(getCityWeather)
)
Is there is way to config the display of temperatures?
I would prefer Fahrenheit over Celsius.
This plugin doe not load correctly for me. When I check the cerebro console I see:
SyntaxError: Invalid regular expression: missing /
at Object.exports.runInThisContext (vm.js:78)
at Module._compile (module.js:543)
at Object.Module._extensions..js (module.js:580)
at Module.load (module.js:488)
at tryModuleLoad (module.js:447)
at Function.Module._load (module.js:439)
at Module.require (module.js:498)
at require (internal/module.js:20)
at requirePlugin (main.bundle.js:31961)
at setTimeout (main.bundle.js:32003)
I tried looking through the source code but could not find where the issue is
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.