-
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 Province of Bolzano I would like to integrate the statistics of usage of the suedtirolRadelt APP in the Open Data Hub, so to create a web-component and visualize them #665
Comments
We decided to externalize the development and @rcavaliere will manage the market research. |
@clezag @dulvui can you please support @Giacomo92 and @SanaviaNicolas in the implementation of their first Data Collector? They have some technical questions for you in relation on how certain aspects can be implemented. I would be ideal if you can arrange some short meeting with them in the next days. Thanks! |
@rcavaliere We had a short talk yesterday at the Open Data Hub day and we decided that we will have a meeting with them to clarify some aspects on how to write data to the Open Data Hub. |
240207_SpecificheIntegrazione_NOI_v1.pdf |
@Giacomo92 here the document with the clarifications, not in track change mode, but hope you find all clarifications to you doubts. Actually, they are all minor points. |
I have just opened PR #669. Please let me know if it works correctly. @dulvui
|
@Giacomo92 many thanks. We will integrate the PR at the beginning of next week, than I will provide you a feedback to these 2 points |
@rcavaliere @Giacomo92 I deployed now the first version of the data collector in testing And here the CompanyGamificationAction stations, but no data is visible here yet |
Uau nice to see a new Dataset in the Open Data Hub. @rcavaliere once we put online the new collector, we need to add the Dataset into the MetaData API to see it in the Dataset List on the Data Browser and the Open Data Hub website. There we need the following information:
|
@Giacomo92 can you please check this implementation? The source should provide data for both type of stations! More in detail:
|
Ok I think it depends on the parameters that were passed in the API, if you can tell me which data you are interested in, I will already set the correct parameters on the API call
challenge_id, latitude, logitude for GamificationAction
Which format do you prefer? I chose the timestamp by looking at other implementations in the repository
Ok I think it depends on the parameters that were passed in the API, if you can tell me which data you are interested in, I will already set the correct parameters on the API call |
As already described in the specification document, these are the types to be associated to a station = GamificationAction:
OK, but where should I put this information? Can you create a CSV file (or similar), so that I fill in the positions?
Please use this kind of format, as you can see there for the dateTime fields: https://mobility.api.opendatahub.com/v2/flat,node/BikesharingStation/*/latest
Please have a look at the specification document, consider what provided in the paragraph COMPANY GAMIFICATION ACTIONS I put the specification document again here. Please let me know in case of doubts, in case let us have a quick call |
@rcavaliere @Giacomo92 Also the measurements are now visible here CompanyGamificationAction GamificationAction |
@dulvui thanks for the update. I have checked the data flowing in our testing environment, and I have seen following aspects that need to be fixed:
@dulvui let me know if this something you can easily fix, otherwise we will ask @Giacomo92 to have a look at it. |
@rcavaliere I fixed now both issues I also saw that now that there are two urls we use currently One url gives the results in German and the other in Italian. The German is currently used to get companies data and the Italian on for the challenges data. Is this okay and no problem if there are multiple languages or should I use only Italian or German? |
@dulvui thanks for the feedback. For the multilingual aspect, thanks for the input. If feasible, I would consider this just for the names of the stations. Can you implement this? |
@rcavaliere Okay I'll try to get use both languages for the names, and for the rest I'll only use one. |
@dulvui thanks. However consider for the two type of stations the same language! Let's use German.... |
@dulvui @Giacomo92 another thing: can you put me the link to the file for the provision of the coordinates of the stations? |
Hello, thanks @dulvui for the fixes. @rcavaliere this is the links: |
@rcavaliere station names are now in German and Italian |
@dulvui perfect, now the open points are closed |
@dulvui please don't put this Data Collector in production, we need first to sign the Data Sharing contract with STA, owner of Suedtirol Radelt APP |
@dulvui @clezag can you check if the Data Collector is consuming the right points? We don't get data since 12.8, and the measurement associated to CompanyGamificationAction is nearly not available. Can you please check? I think the problem could be just in the reference to the right end-points? The correct ones (please check the specs in the user story description): |
@rcavaliere The data collector was permanently stuck doing the API request. Seems that the library used does not use a timeout per default. I've set a timeout of 30 seconds, so let's see if this crops up again. For now, since it's been restarted, it's collecting data again |
@clezag thanks for this. If I look at the measurementhistory table it seems to me that we just imported one record for each type, and then the Data Collector did not import any other data. Is there any logic that prevents the storage of new data every time the API is read? We could set here a hourly update of the data, we don't need this more frequently |
@rcavaliere
I think to avoid data duplication, we can leave 1) as it is, so that only when something changes, a measurement is written |
@clezag then please clean up all the DB in the testing environment, use as key the challenge ID and try to redeploy it. Thanks! |
@rcavaliere Now up in testing. I've removed the old data. |
@clezag thanks a lot. In measurementhistory I currently see just one value per type in measurementhistory, but it could be that nobody used the Suedtirol Radelt APP yesterday afternoon and registered new kilometers... let's see in the next days if new data is entering, otherwise it could be that we have still things to fix. |
@clezag everything tested here and contrat signed, we can put in production |
@rcavaliere deployed in production |
@rcavaliere can you please share with us the information to create the dataset on our website? We need:
Thanks |
240524_SpecificheIntegrazione_NOI_v1.1.pdf
The text was updated successfully, but these errors were encountered: