Giter VIP home page Giter VIP logo

Comments (4)

VIKTORVAV99 avatar VIKTORVAV99 commented on June 27, 2024 3

I'll go through the other issues tomorrow and make sure the PRs are reviewed and moved forward.

from electricitymaps-contrib.

Ugzuzg avatar Ugzuzg commented on June 27, 2024 3

The data is fetched by calling an API endpoint: https://dataservices.acelerex.com/api/barbados/uploads?name=operational-data&$sort[created_at]=-1. The endpoint gives access to a "barbados"."files" PostgreSQL table. Another available file type is connections-data (it contains [ "geometry", "LATITUDE", "LONGITUDE", "Feeder ID", "Meter ID", "Parish", "GRIDNUMBER", "TCAP", "EFFECTIVE DATE", "" ]), but operational-data is what we need.

operational-data has information in the following format:

                  datetime 24 hr monitored solar production 24 hr monitored wind production 24 hr storage charging 24 hr storage discharging 24 hr fossil production 24 hr Net demand 24 hr Curtailment
0   2024-02-16T00:00-04:00                                0                               0                   -2.2                         0                   116.3            114.1                 0
1   2024-02-16T01:00-04:00                                0                               0                   -2.3                         0                     112            109.7                 0
2   2024-02-16T02:00-04:00                                0                               0                     -1                         0                   108.5            107.5                 0
3   2024-02-16T03:00-04:00                                0                               0                      0                         0                   105.6            105.6                 0
4   2024-02-16T04:00-04:00                                0                               0                      0                         0                     104              104                 0
5   2024-02-16T05:00-04:00                                0                               0                      0                         0                     109              109                 0
6   2024-02-16T06:00-04:00                                0                               0                      0                         0                   114.7            114.7                 0
7   2024-02-16T07:00-04:00                              0.1                               0                      0                         0                   118.1            118.2                 0
8   2024-02-16T08:00-04:00                              2.6                               0                      0                         0                   112.6            115.2                 0
9   2024-02-16T09:00-04:00                                5                               0                      0                         0                   100.8            105.8                 0
10  2024-02-16T10:00-04:00                                5                               0                      0                         0                    98.9            103.9                 0
11  2024-02-16T11:00-04:00                                7                               0                      0                         0                    94.5            101.5                 0
12  2024-02-16T12:00-04:00                                6                               0                      0                         0                    86.1             92.1                 0
13  2024-02-16T13:00-04:00                                7                               0                      0                         0                    85.6             92.6                 0
14  2024-02-16T14:00-04:00                                7                               0                      0                         0                    95.7            102.7                 0
15  2024-02-16T15:00-04:00                              4.9                               0                      0                         0                   100.9            105.8                 0
16  2024-02-16T16:00-04:00                              1.3                               0                      0                         0                   116.4            117.7                 0
17  2024-02-16T17:00-04:00                              2.1                               0                      0                         0                   127.2            129.3                 0
18  2024-02-16T18:00-04:00                                0                               0                      0                       2.6                   134.3            136.9                 0
19  2024-02-16T19:00-04:00                                0                               0                      0                       2.5                   139.6            142.1                 0
20  2024-02-16T20:00-04:00                                0                               0                      0                       2.4                   134.9            137.3                 0
21  2024-02-16T21:00-04:00                                0                               0                      0                         0                   133.3            133.3                 0
22  2024-02-16T22:00-04:00                                0                               0                      0                         0                     126              126                 0
23  2024-02-16T23:00-04:00                                0                               0                      0                         0                   120.1            120.1                 0

I've guessed some useful query params:

  • $limit changes the default number of records (days) fetched from 1 to a different number.
  • created_at[$lt]=2024-02-10 filters documents by the date, allowing to fetch historical data.

By reverting the sort order, I can see that the data has started being created on 2022-11-30. There are some differences to the output format, and it looks like they were still fixing some bugs in the first days, as the responses contain "[object Object]" for daily values.

Properly timestamped datapoints start appearing on 2023-02-28 with some gaps between days.


I wouldn't have to guess if I'd follow the link without authenticating. It says right there that it uses feathers.js, so here are all supported query params: https://feathersjs.com/api/databases/querying.html

from electricitymaps-contrib.

q-- avatar q-- commented on June 27, 2024 1

@q-- should I label this as help wanted or do you plan on doing it yourself?

Feel free to label this and the other "parser buildable" issues as "help wanted".

(Except #5426 and #5552, which both have had an associated pull request for several months which could go live if it passes review)

from electricitymaps-contrib.

VIKTORVAV99 avatar VIKTORVAV99 commented on June 27, 2024

@q-- should I label this as help wanted or do you plan on doing it yourself?

from electricitymaps-contrib.

Related Issues (20)

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.