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

feat: Historic data import #18

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Aiky30
Copy link
Owner

@Aiky30 Aiky30 commented May 30, 2024

What does this PR do?

Imports the existing dataset that was generated using the builtin logger

# TODO: Logger

"""
A script ot import the data that has already been gathered
Copy link
Owner Author

Choose a reason for hiding this comment

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

Suggested change
A script ot import the data that has already been gathered
A script to import the data that has already been gathered

)

# TODO: The temp should be stored and validated as a float, Schema rule!!
# DeviceModuleReading.objects.aget_or_create(
Copy link
Owner Author

Choose a reason for hiding this comment

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

Still need to be done?


def _processed_mapped_data(self):
# TODO: Look to see if the data exists in the DB, what would this look like?
# https://gist.github.com/dorosch/6cffd2936ac05ef8794c82901ab4d6e7
Copy link
Owner Author

Choose a reason for hiding this comment

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

Still need to be done? Do a count before now right?

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.

1 participant