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

added log.py logging plugin. #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SpaceTrucker2196
Copy link

This plugin was created with the intention of logging sensor data to
splunk. File is in json format with unit names omitted.

Sample:
{"time":"2014-01-05 10:21:59.222526","Temperature":"22.5","Pressure":"977.52","Relative_Humidity":"26.3999996185","Light_Level":"2884.13098237","Smoke_Level":"31585.7142857","Nitrogen_Dioxide":"19312.3209169","Carbon_Monoxide":"675000.0",}

This plugin was created with the intention of logging sensor data to
splunk. File is in json format with unit names omited.
@argysamo
Copy link

Hey @jkunzelman. I like the idea of logging observations to a file. However, I would like it even more, if you considered the case of .log growing very big (i.e. rendering it inaccessible). I would check the file size, and if it exceeded a certain threshold I would zip it and write observations to a new one.
Thanks for the great contribution.

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