-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As STA / Municipality of Marlengo / Municipality of Bolzano, I would like to push the data of some parking facilities to the Open Data Hub #667
Comments
@rcavaliere The new push API is now available in development environment (note: this is different from our current testing) The swagger can be found here: https://push.api.dev.testingmachine.eu I've authorized them for They can just do a HTTP POST with whatever as body, and we will save that as raw data. For authorization, they have to use the oauth And then pass the obtained access token as Here is some documentation for the BDP API, but the principles are the same I will send you the credentials separately |
@clezag ok, thanks a lot! I will organize the next steps with the Data Provider.
|
@rcavaliere I've created and sent you the credentials for that new endpoint |
@rcavaliere FYI they don't seem to have pushed any data yet |
@clezag I got a feedback on Friday afternoon from the technological supplier of STA and they told me that they activated the data stream. The messages should be in the format:
Can you please check? In the next days I would like to draft some minimal specification for the internal integration of both parking places, in both cases should be very simple! |
@clezag @dulvui I have completed the specification for these two Data Collectors, and also updated the description of the user story since the activity is now a little bit more broader. The integration is very easy, as you can see. 240619_SpecificheIntegrazione_NOI_v1.1_Marlengo.pdf |
@rcavaliere I will be on holiday next week. @dulvui This is running on the new infrastructure already, using the new push API. So we already get the data, only the transformer is missing. I will send you some technical info, in case you want to take a crack at this. |
@clezag can you also give some priority to this user story? I am also getting some pressure here to have in short times the real-time data of these new parking facilities... thanks! |
@rcavaliere First import is now up (not running realtime yet):
|
@clezag many thanks for this. In relation to your points:
OK
OK, but let's keep just one value, I see both values available in the metadata table / structure
Let me check this with the data supplier
This field indicates if we have a parking with multiple floors, we could have information for each single floor. In this case, it is an open space parking without floors. We could also omit this. |
@clezag sorry I just realized that the implementation was done in that way, i.e. lots = current capacity, tot = nominal capacity. Therefore tot has to be mapped with the metadata static field 'capacity, while lots with the measurement free. 240703_SpecificheIntegrazione_NOI_v1.1_ParcheggioMacello.pdf |
@rcavaliere I've implemented the changes. Since the stationcode changed, better use this call to look at the data: Regarding the period, I put 300, but since this data is pushed (and currently it looks like somewhat irregular time intervals) we really don't know the update frequency. Do you have some indication from the data provider on it? |
@rcavaliere I've now brought the data collector online, so it should always be up to date. Something else that I've noticed: The entering/exiting vehicles, which time frame are they referring to? We should probably set the period to that value. Or indicate in the datatype itself that they are for example the values since start of day |
@clezag the integration looks now OK. |
@rcavaliere The data is visible on analytics, it's in regular testing (https://analytics.opendatahub.testingmachine.eu/), not development |
@clezag you are right sorry, I didn't include today in the filter :-) |
@rcavaliere I was wrong :D Since we are on the new infrastructure, I was able to reelaborate all the historical data, and we have the complete time series 🚀🚀 |
@clezag good! I would also store the data in the test environment so that it's visible on https://analytics.opendatahub.testingmachine.eu/ |
@rcavaliere now it's writing exclusively to testing (https://analytics.opendatahub.testingmachine.eu/). I've also reloaded the history there. |
@clezag can you please put in production the Data Collector for parking Macello and go forward with the Data Collector for parking Marlengo? Please give also priority to user story noi-techpark/transmodel-api#1 |
@rcavaliere Just a heads up that putting this into production will take a little more time than usual (few days), because some underlying parts of the infrastructure have to first be set up. |
@rcavaliere deployed in production, I have sent you the credentials via mail. Will they keep pushing to test as well? |
@rcavaliere |
@clezag Data Collector Marlengo is OK. I will ask for real data to be pushed, so to make real tests. |
@rcavaliere |
@ohnewein situation here: we have a new parking integrated for the city of Bolzano, is called TURIST PARKING. It's a separate Data Collector which receives the data from the parking itself with a push API. The Data Collector is already in the new core infrastructure of the Open Data Hub. The second Data Collector is related to the parking of the train station of Marlengo, managed by STA with the Municipality there. The architecture is similar to the previous one. Here we are still in testing phase, so this task is still in progress. |
@clezag we are waiting STA configuring the Marlengo parking area so that real-time data is transmitted |
We're getting real data in testing now, so we can proceed with the integration: {
"id": "fuchs_marling",
"name_IT": "Parcheggio stazione Marlengo",
"name_DE": "Parkplatz Marling Bahnhof",
"latitude": 46.66489445071061,
"longitude": 11.138228889410987,
"capacity": 37,
"measurements": [
{
"timestamp": "2024-11-20 08:07:11",
"availability": 25
}
]
} |
@rcavaliere Looks like it's already working: {
"offset": 0,
"data": [
{
"_timestamp": "2024-11-20 07:11:14.998+0000",
"tdescription": "free",
"tmetadata": {},
"tname": "free",
"ttype": "Instantaneous",
"tunit": "",
"mperiod": 300,
"mtransactiontime": "2024-07-17 08:02:58.541+0000",
"mvalidtime": "2024-11-20 07:11:14.998+0000",
"mvalue": 25,
"prlineage": "STA",
"prname": "tr-parking-offstreet-teratronik",
"prversion": "390fc846a571e9e1b2b55daad17c4c757fd32cd7",
"sactive": true,
"savailable": true,
"scode": "parking-sta-marlengo",
"scoordinate": {
"x": 11.138229,
"y": 46.664894,
"srid": 4326
},
"smetadata": {
"name_DE": "Parkplatz Marling Bahnhof",
"name_IT": "Parcheggio stazione Marlengo",
"capacity": 37
},
"sname": "Parcheggio stazione Marlengo",
"sorigin": "STA",
"stype": "ParkingStation"
}
],
"limit": 200
} Can you take a look if it's ok? I think we can go into production with this fairly fast. |
Specification documents and related context information:
Parking Macello, Municipality of BZ:
240703_SpecificheIntegrazione_NOI_v1.1_ParcheggioMacello.pdf
Parcheggio Marlengo, STA + Municipality of Bolzano: 240619_SpecificheIntegrazione_NOI_v1.1_Marlengo.pdf
To do list:
The text was updated successfully, but these errors were encountered: