LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-19-2016, 02:23 PM   #1
znode
LQ Newbie
 
Registered: Oct 2016
Posts: 3

Rep: Reputation: Disabled
Graphing csv data


Hi all,

I have a little data logger running an embedded version of Linux. It logs energy data from my solar inverters and saves them in a gzipped .csv file. Previously, those files were pushed out to a third party server which would display them in a nice graphed dashboard to be used as a kiosk. That company is no longer in business so what I would like to do is process that raw data myself. I am comfortable in a Linux environment but by no means an expert.

What is the best way to do this?
I thought about pushing that data into a database and then using something like grafana to visualize it? But that seems a little over my head.

Any ideas are appreciated.
 
Old 10-19-2016, 03:50 PM   #2
BobKay
Member
 
Registered: Jul 2014
Posts: 39

Rep: Reputation: Disabled
Quote:
Originally Posted by znode View Post
Hi all,

I have a little data logger running an embedded version of Linux. It logs energy data from my solar inverters and saves them in a gzipped .csv file. Previously, those files were pushed out to a third party server which would display them in a nice graphed dashboard to be used as a kiosk. That company is no longer in business so what I would like to do is process that raw data myself. I am comfortable in a Linux environment but by no means an expert.

What is the best way to do this?
I thought about pushing that data into a database and then using something like grafana to visualize it? But that seems a little over my head.

Any ideas are appreciated.
Perhaps take a look at gnuplot?
 
Old 10-20-2016, 05:45 AM   #3
janas03
LQ Newbie
 
Registered: Apr 2008
Location: Warsaw, Poland
Distribution: Slackware64 14.2
Posts: 29

Rep: Reputation: 4
I used R (https://www.r-project.org/) for that kind of tasks. You can read csv into data frame and then operate on it. For large csv files use data.table package and for advanced graphing ggplot2. The spectrum of available diagrams is quite wide and they can be saved as jpg, png, pdf etc. You can automate the whole task and write Rscript.
 
2 members found this post helpful.
Old 10-20-2016, 08:08 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,474

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
RRDTool and rrdgraph perhaps?
 
2 members found this post helpful.
Old 10-20-2016, 08:09 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by TenTenths View Post
RRDTool and rrdgraph perhaps?
+1 for this. VERY useful for generating graphs, without a huge database and a ton of overhead.
 
Old 10-21-2016, 02:35 PM   #6
znode
LQ Newbie
 
Registered: Oct 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for all your suggestions. So far I have the data being consolidated, formatted, and then loaded into a MySQL database. Just need to figure out how to graph it now. I've tried out your recommendation and have also played around with pandas a little, but still looking for that perfect solution.
 
Old 10-21-2016, 04:08 PM   #7
znode
LQ Newbie
 
Registered: Oct 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
How would I import my data(.csv or .txt) in to the rrd? And I would need to convert all my timestamps in to seconds since 1970 correct?
 
  


Reply

Tags
convert, csv, embedded


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rickshaw graphing with live data szboardstretcher Programming 3 09-18-2013 08:00 PM
graphing data from mysql database fancylad Linux - Software 1 01-08-2009 12:49 AM
Need help on writing data to csv file tucs_123 Linux - Newbie 12 12-29-2008 03:42 AM
C/C++ solution to get CSV data into Oracle? marthesh Linux - Newbie 5 07-09-2008 08:24 AM
help extracting data from csv file willinusf Linux - General 10 10-27-2006 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration