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

Export Sensor Data (again) #361

Closed
dansmith65 opened this issue Feb 13, 2017 · 6 comments
Closed

Export Sensor Data (again) #361

dansmith65 opened this issue Feb 13, 2017 · 6 comments
Assignees
Milestone

Comments

@dansmith65
Copy link

Apparently this feature was implemented in version 0.0.2-alpha5 via #6, then dropped from 0.0.3 versions.

This is an important feature for me. Here's my use-case:
I'm replacing the control system in my espresso machine with my own arduino-based system. To fine-tune the system I'd like to collect data while brewing an espresso, then export/save that data so I can compare it to future brew's with different control system configuration. This comparison would require the original data (not aggregated) and may occur months apart. I would likely want to view two or more sensor's data on one chart to easily compare them.

This saving of original data, then comparing with other data set's is not a feature I would ever expect from mycontroller.org, which is why I think the data should be able to be exported.

In the above mentioned use-case there could easily be 10 or more reading's taken every second so it would be nice if the process could be somewhat automated. Ideally I could, for example, configure a script to export data from a list of pre-defined sensors for the last 2 hours. So when I want to collect data from a recent test I just have to run the script.

@njbuch
Copy link

njbuch commented Feb 13, 2017

I love that use-case!

@jkandasa
Copy link
Member

jkandasa commented Feb 14, 2017

@dansmith65 Sure, I will implement this feature.

If you do not want aggregated data, then you need to change data retention settings. By default, MyController holds raw data only one minute. After that, it will be aggregated.
image

I will give a REST API to export requested sensor variable history data in zipped CSV format.

@jkandasa jkandasa self-assigned this Feb 14, 2017
@jkandasa jkandasa added this to the 0.0.3.Final milestone Feb 14, 2017
@dansmith65
Copy link
Author

Thanks for taking this on @jkandasa; I really appreciate it!

I did find/adjust the data retention settings.

@jkandasa jkandasa modified the milestones: 0.0.3.Final, 1.1.0.Final Oct 10, 2017
@jkandasa jkandasa removed this from the 1.1.0.Final milestone Dec 15, 2017
@danielefrigo
Copy link

@jkandasa did you have a chance to think about this export data API?
different idea for more or less the same use case: is it possible to define a simple csv as an external server, i.e. simply append new data to a file?

@jkandasa
Copy link
Member

@danielefrigo good idea. I will check the possibilities

@jkandasa jkandasa added this to the 1.5.0 milestone Jan 23, 2019
jkandasa added a commit that referenced this issue Oct 10, 2019
@jkandasa
Copy link
Member

I have added an export feature on 1.5.0 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants