noi-techpark / bdp-commons

Open Data Hub time series data collectors (legacy)
GNU Affero General Public License v3.0
2 stars 12 forks source link

As a project manager I would like to integrate the DC related to the bike chargers supplied by Ecospazio in our infrastructure #296

Closed rcavaliere closed 2 years ago

rcavaliere commented 3 years ago

UPDATE BY @Piiit

Piiit commented 2 years ago

@rcavaliere I need the credentials... blocked meanwhile

Piiit commented 2 years ago

@noctho I need some information to deploy this DC...

connector.url=https://maas.ecospazio.it/api
connector.apiKey.name=
connector.apiKey.value=

value is the token here, that I have got from @rcavaliere, right? But what is the name?

Please update the README accordingly

noctho commented 2 years ago

name is 'Token' and value is the token. It's simply the name of the HTTP header.

connector.url=https://maas.ecospazio.it/api
connector.apiKey.name=Token
connector.apiKey.value=
Piiit commented 2 years ago

@noctho Works, thank you... why didn't you hardcode it? I tried with Authorization, which I think is the default for such a header...

noctho commented 2 years ago

I don't remember exactly why, but I think it was because at the beginning when I implemented it we only had the token and didn't know that the header name was 'Token'. Then when we knew that, I kept it parameterized because it is not a standardized header name like Authorization.

Piiit commented 2 years ago

OK, I keep it then configurable

Piiit commented 2 years ago

@rcavaliere The DC is online... see https://mobility.api.opendatahub.testingmachine.eu/v2/flat/BIKE_CHARGER/* for instance

Please test

rcavaliere commented 2 years ago

@noctho for the two different station types we don't see all measurement types expected, i.e.:

rcavaliere commented 2 years ago

@Piiit it was my fault, the data were correctly stored in measurementstring. Evertything OK there, we can go in production with this Data Collector

Piiit commented 2 years ago

@rcavaliere Done, please test the output on production... should we also add it to the analytics web page?

rcavaliere commented 2 years ago

@Piiit thanks! But it's correct that I don't see real-time data? For analytics don't worry, I can configure it so to see this dataset as well.