Git Product home page Git Product logo

cerebro-weather's People

Contributors

brainmaestro avatar peachesthefruit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cerebro-weather's Issues

Error in console

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)

Better handling for locations with no results

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)
)

Weather did not display

Hi,

No results shown after trying to search my city

System: 10.12.4 (16E195) macOS Sierra
Version: 0.2.8
cerebro 2017-04-21 11-12-49

Can't load plugin

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

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.