GithubHelp home page GithubHelp logo

datadesk / inciweb-wildfires Goto Github PK

View Code? Open in Web Editor NEW
12.0 8.0 2.0 1.54 MB

Download wildfire incidents data from InciWeb

Home Page: https://palewi.re/docs/inciweb-wildfires/

License: MIT License

Python 100.00%
data-journalism fires wildfires news journalism python cli

inciweb-wildfires's Introduction

inciweb-wildfires's People

Contributors

actions-user avatar caseymm avatar dependabot[bot] avatar palewire avatar vnessamartinez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

inciweb-wildfires's Issues

Error in inciweb_wildfires.get_incidents()

Hi,
I am getting this error on running :
data = inciweb_wildfires.get_incidents()

Traceback (most recent call last):
line 27, in get_usa_incidents
    data = inciweb_wildfires.get_incidents()
  File "python3.7/site-packages/inciweb_wildfires/__init__.py", line 14, in get_incidents
    content = r.json()["markers"]
  File "/python3.7/site-packages/requests/models.py", line 975, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

No features returned - probably an upstream issue

I stumbled upon this tool when searching for an inciweb API; after installing and then trying the CLI I got:

{"features": [], "type": "FeatureCollection"}

I checked the link https://inciweb.nwcg.gov/feeds/maps/placemarks.kml I found in the code. Visiting directly, the inciweb site is throwing an error:

The website encountered an unexpected error. Please try again later.
Error: Call to a member function getName() on bool in Drupal\kml\Encoder\KmlEncoder->xmlToArray() (line 231 of modules/contrib/kml/src/Encoder/KmlEncoder.php).

I recognize this is not really your responsibility but thought you might want to know.

Also -- FWIW -- the website would like to be known as https://inciweb.wildfire.gov/ going forward!

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.