You are not logged in.

#1 2009-07-09 20:53:54

markp1989
Member
Registered: 2008-10-05
Posts: 431

looking for a fast way to make a graph.

Im not sure if this is the correct place to post this but here goes:

I have written a small bash script i use to log the temperatures from lmsensors to a text file. the output looks like this:

DATE-----------------------MHZ-Vcore-core0-core1-Chipset-Fan speed
Thu Jul 9 21:47:34 BST 2009 3300 1.18 52.0° 52.0° 42.0° 1339
Thu Jul 9 21:47:36 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1350
Thu Jul 9 21:47:37 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1350
Thu Jul 9 21:47:38 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1350
Thu Jul 9 21:47:40 BST 2009 3300 1.18 52.0° 52.0° 42.0° 1339
Thu Jul 9 21:47:41 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1339
Thu Jul 9 21:47:43 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1339
Thu Jul 9 21:47:44 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1339
Thu Jul 9 21:47:45 BST 2009 3300 1.18 52.0° 52.0° 42.0° 1339
Thu Jul 9 21:47:47 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1339
Thu Jul 9 21:47:48 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1339
Thu Jul 9 21:47:50 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1339
Thu Jul 9 21:47:51 BST 2009 3300 1.19 52.0° 52.0° 42.0° 1339
Thu Jul 9 21:47:52 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1350
Thu Jul 9 21:47:53 BST 2009 3300 1.18 52.0° 52.0° 42.0° 1328
Thu Jul 9 21:47:55 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1328
Thu Jul 9 21:47:56 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1350
Thu Jul 9 21:47:58 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1350
Thu Jul 9 21:47:59 BST 2009 3300 1.18 52.0° 52.0° 42.0° 1339
Thu Jul 9 21:48:01 BST 2009 3300 1.19 51.0° 51.0° 42.0° 1339
Thu Jul 9 21:48:02 BST 2009 3300 1.19 51.0° 51.0° 42.0° 1339
Thu Jul 9 21:48:03 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1339
Thu Jul 9 21:48:05 BST 2009 3300 1.18 50.0° 50.0° 42.0° 1339
Thu Jul 9 21:48:06 BST 2009 3300 1.18 52.0° 52.0° 42.0° 1339
Thu Jul 9 21:48:08 BST 2009 3300 1.18 52.0° 52.0° 42.0° 1339
Thu Jul 9 21:48:09 BST 2009 3300 1.18 52.0° 52.0° 42.0° 1339
Thu Jul 9 21:48:11 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1339
Thu Jul 9 21:48:12 BST 2009 3300 1.18 51.0° 51.0° 42.0° 1339

what would be a quick way to get a line graph of the temperatures from this text file, i have seen gnuplot, but i dont know how to use it or if its works with this kind of file.

Any pointer will be appreciated, Thanks Markp1989 big_smile

Last edited by markp1989 (2009-07-09 20:56:12)


Desktop: E8400@4ghz - DFI Lanparty JR P45-T2RS - 4gb ddr2 800 - 30gb OCZ Vertex - Geforce 8800 GTS - 2*19" LCD
Server/Media Zotac GeForce 9300-ITX I-E - E5200 - 4gb Ram - 2* ecogreen F2 1.5tb - 1* wd green 500gb - PicoPSU 150xt - rtorrent - xbmc - ipazzport remote - 42" LCD

Offline

#2 2009-07-09 21:14:00

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: looking for a fast way to make a graph.

Ctrl-C Ctrl-V in gnumeric them some column manipulation creates the graph.

Offline

#3 2009-07-09 21:24:52

Xappe
Member
Registered: 2008-05-17
Posts: 105

Re: looking for a fast way to make a graph.

gnuplot can be a beast to master. I recommend xmgrace for graphing.


vanum est vobis ante lucem surgere

Offline

#4 2009-07-09 21:52:37

markp1989
Member
Registered: 2008-10-05
Posts: 431

Re: looking for a fast way to make a graph.

Thansk, gnuplot worked perfectly. i had tried to do the same thing with openoffice calc and it ended up dumping it all in to 1 cell, but this 1 worked first time big_smile


Desktop: E8400@4ghz - DFI Lanparty JR P45-T2RS - 4gb ddr2 800 - 30gb OCZ Vertex - Geforce 8800 GTS - 2*19" LCD
Server/Media Zotac GeForce 9300-ITX I-E - E5200 - 4gb Ram - 2* ecogreen F2 1.5tb - 1* wd green 500gb - PicoPSU 150xt - rtorrent - xbmc - ipazzport remote - 42" LCD

Offline

#5 2009-07-09 21:56:13

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: looking for a fast way to make a graph.

Perl could turn it into a CSV file from the command line, which you can open with any spreadsheet program.

Offline

#6 2009-07-13 18:32:09

playdafunkimuzic
Member
Registered: 2008-10-25
Posts: 220

Re: looking for a fast way to make a graph.

R!

Offline

#7 2009-07-13 20:35:34

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: looking for a fast way to make a graph.

You could just rename the file to lmsensor.csv and then Openoffice Calc would open it as a csv file. I've done this before with text files. 

Just tell Calc to take spaces as cell separators, not commas, in the dialog box that appears during the File>Open sequence.  That will import most of the data correctly.  The date string will be pulled apart into three cells with this method, but the rest of the data will be correct.

Offline

Board footer

Powered by FluxBB