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

FW-526: live cosmos data payload MVP #10

Merged
merged 4 commits into from
Jan 16, 2025

Conversation

lewis-chambers
Copy link
Collaborator

This PR implements the base changes needed to forward live data from the Cosmos Database. The scope of these changes goes from interfacing with the database up to the construction of payloads that may be deposited into AWS.

Changes

  • New queries and DB method added to return a list of values greater than a specified timestamp for a specified site.
  • The sites are queried separately because they will have different timestamps to search through.
  • Module script created for running the data conversion workflow

README.MD Outdated Show resolved Hide resolved
oracle = await Oracle.create(
oracle_creds["dsn"], oracle_creds["user"], oracle_creds["pass"]
)
tables = [CosmosTable.LEVEL_1_SOILMET_30MIN, CosmosTable.LEVEL_1_NMDB_1HOUR]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this not just be all the tables in the enum?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be, but it takes a frustrating amount of time to get unique site IDs from the PRECIP datasets which slowed down testing a lot. I'm entertaining the possibility that the table will be a command line argument to run the script because the PRECIP datasets are likely to take much longer to send out

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to comment on this, but it doesn't seem the best way to get the SITE IDs to me... Can we not just query the SITES table to get all site ids?

src/iotswarm/livecosmos/__main__.py Outdated Show resolved Hide resolved
src/iotswarm/livecosmos/__main__.py Show resolved Hide resolved
@lewis-chambers lewis-chambers merged commit 89cd8e1 into main Jan 16, 2025
4 checks passed
@lewis-chambers lewis-chambers deleted the feature/FW-526-live-cosmos-data branch January 29, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants