You are not logged in.
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
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
Ctrl-C Ctrl-V in gnumeric them some column manipulation creates the graph.
Offline
gnuplot can be a beast to master. I recommend xmgrace for graphing.
vanum est vobis ante lucem surgere
Offline
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
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
Perl could turn it into a CSV file from the command line, which you can open with any spreadsheet program.
Offline
R!
Offline
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