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

opk csv #22

Open
rjcorwin opened this issue Apr 2, 2015 · 0 comments
Open

opk csv #22

rjcorwin opened this issue Apr 2, 2015 · 0 comments

Comments

@rjcorwin
Copy link
Contributor

rjcorwin commented Apr 2, 2015

Here is a basic example of a three column CSV with two temperature sensors and a date stamp.

~ $ echo "temp1, temp2, date" >> output.csv
~ $ watch -n8 " \
    ./opk-temper1-cli/pull --path USB_0c45_7401_14200000 >> output.csv; \
    printf ', ' >> output.csv; \
    ./opk-temper1-cli/pull --path USB_0c45_7401_14200000 >> output.csv; \
    printf ', ' >> output.csv; \
    date >> output.csv; \
  ";
~ $ cat output.csv
temp1, temp2, date
29, 28.9375, Thu Apr  2 16:36:12 EDT 2015
28.9375, 28.75, Thu Apr  2 16:36:36 EDT 2015
28.8125, 29.125, Thu Apr  2 16:37:11 EDT 2015
28.8125, 28.75, Thu Apr  2 16:37:31 EDT 2015
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

1 participant