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

Add plaintext to recorded sensor data #35

Open
EliasJRH opened this issue Nov 17, 2024 · 1 comment
Open

Add plaintext to recorded sensor data #35

EliasJRH opened this issue Nov 17, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@EliasJRH
Copy link
Collaborator

We current implement recording of data by writing raw bytes to a .dump file. This could still be useful in some circumstances but we should also log parsed human readable sensor data to some csv file that propulsion can later export to excel.

One possible format could be

timestamp,p1,p2,..,p4,t1,..,t4,tm,et,qd,fv,ig,xv1,...,xv12
0,x,,x,x,,x,x,x,open,open,close
@EliasJRH EliasJRH added the enhancement New feature or request label Nov 17, 2024
@EliasJRH EliasJRH added the good first issue Good for newcomers label Dec 4, 2024
@VorteX254 VorteX254 self-assigned this Feb 8, 2025
@EliasJRH
Copy link
Collaborator Author

One approach could be to use pythons csv.DictWriter class. Since we know that each timestamp will receive a single reading for each sensor, we can have each timestamp be a key in the dictionary and store the values there

https://docs.python.org/3/library/csv.html#csv.DictWriter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants