Giter Site home page Giter Site logo

ngdataportal's People

Contributors

akbarlutfullah avatar ayrtonb avatar clematt avatar peterdudfield avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

ngdataportal's Issues

Verification Error

Hi There, I seem to get this issue on all examples i try and follow

SSLError: HTTPSConnectionPool(host='national-grid-admin.ckan.io', port=443): Max retries exceeded with url: /api/3/action/datastore_search_sql?resource_id=b2f03146-f05d-4824-a663-3a4f36090c71&sql=SELECT+%2A+from+%22b2f03146-f05d-4824-a663-3a4f36090c71%22+WHERE+%22Settlement+Day%22+BETWEEN+%272019-12-20%27%3A%3Atimestamp+AND+%272019-12-22%27%3A%3Atimestamp+ORDER+BY+%22Settlement+Day%22 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))

What is the thought behind stream_to_resource_id.json?

I have started hacking at this in my fork (https://github.com/MichaelKavanagh/NGDataPortal/). First I am trying to remove the reliance on keeping stream_to_resource_id.json up to date, since if NG changes something the id hashes are no longer valid. This appears to have happened for historic-demand-data:

"historic-demand-data": "11252656-007c-45a4-87db-9d5cc6e8535a",

Querying CKAN results in a "Resource not found" error: https://data.nationalgrideso.com/api/3/action/resource_show?id=11252656-007c-45a4-87db-9d5cc6e8535a.

The thing is that many 'packages' (you seem to call them streams) have multiple 'resources'. This is not the case for your example embedded-wind-and-solar-forecasts where there are two resources, only one of which is a useful csv, but for historic-demand-data it has 8 resources the user could potentially want.

The user selects the package/stream when instantiating the Wrapper object by passing the name as a parameter to the c'tor. Presumably the class should provide the means to also select the desired resource, either directly as a c'tor param or methods to return a list to choose from?

I would be interested to know your thoughts on this. Also, are you open to reviewing/accepting PRs for this repo?

Settlement Day + Settlement Period = datetime_utc

Would it be possible to add function that changes the settlement day and settlement period to a datetime_utc. Then we dont get into any messy situations with clocks changes e.t.c.

I'm happy to give it a go first

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.