Skip to content
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

infra v2: migrate vehicletraffic-bluetooth #655

Open
clezag opened this issue Aug 30, 2023 · 0 comments
Open

infra v2: migrate vehicletraffic-bluetooth #655

clezag opened this issue Aug 30, 2023 · 0 comments
Labels
infra v2 migration Related to infrastructure v2 migration

Comments

@clezag
Copy link
Member

clezag commented Aug 30, 2023

Summary

Google spreadsheet to get station list ( implementation with trigger like spreadsheet data collectors)
REST endpoint (PUSH)

  • POST /json consumes list of bluetooth records and pushes them to ODH + updates stations
  • GET /json?station-id=xxx get date of last record for given station
  • POST /hash consumes list of bluetooth records and returns a list of MD5 hashes of the MAC addresses

Migration strategy

Data collectors

  • Custom REST endpoint
    • Directly respond to /hash and GET /json requests
    • Implement POST /json, or consider proxying to generic REST ingress, adding parameters
  • Shared spreadsheet data collector

Transformer

  • Single transformer with two queues
  • Data/Station from REST endpoint, getting up to date station data from ninja
  • Station sync from spreadsheet
@clezag clezag added the infra v2 migration Related to infrastructure v2 migration label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra v2 migration Related to infrastructure v2 migration
Projects
None yet
Development

No branches or pull requests

1 participant