If the data can be exported to something like CSV, it can be plotted using gnuplot into a nice ASCII art.

Data-example (incomplete):

date_trunc;temperature;humidity;oventemperature 2024-06-28 16:25:31;22.5;99.9;27.2 2024-06-28 16:25:43;22.59;99.9;27.2 2024-06-28 16:25:53;22.59;99.9;27.2 2024-06-28 16:26:04;22.59;99.9;27.2 2024-06-28 16:26:15;22.59;99.9;27.2 2024-06-28 16:26:18;22.59;99.9;27.2 2024-06-28 16:26:28;22.59;99.9;27.2 2024-06-28 16:26:39;22.59;99.9;26.5 2024-06-28 16:26:49;22.59;99.9;27 ...

Gnuplot-file for this:

set title "Bedroom\nTemperature BME" set datafile separator ";" # Set virtual terminal size to 120x30 and print to STDOUT set terminal dumb size 120,30 set xlabel "Logtime" set ylabel "Sensorvalue" set xdata time #set timefmt "%Y-%m-%d" #set xrange ["03/21/95":"03/22/95"] set format x "%d.%m\n%H:%M" set timefmt "%Y-%m-%d %H:%M:S" set key autotitle columnhead outside plot "bme.csv" using 1:2 title "Room temp(Celsius)" with lines, \ "dht.csv" using 1:4 title "Oven temp (Celsius)" with lines

"bme.csv" using 1:2 specifies the filename and which two columns to use for a given plotline (first one is always the timestamp in my case). You can use the same file with different columns, or use different files altogether.

Result:

Bedroom + Temperature BME + 28 +------------------------------------------------------------- +-------------------+ | + + + + + + + + # + | Room temp(Celsius) ******* | # # ## #### ## # # # # + # # # # # # | Oven temp (Celsius) ####### 27 |-+ ######################################################## +################ +-| | ############## ##################### # ## ########### # +#### ########### | | ##### ######## ### ################# # ## ########### # +#### ############ | | ## # # # # + # #### ## ### | 26 |-+ + # ## ###+-| | + # # ### | | + # ## | 25 |-+ + ##+-| | + ## | | + # | | + # | 24 |-+ + #+-| | + # | | + # | 23 |-+ + #+-| | + ******** | | ******************************************************** +********** | | + + + + + + + + + | 22 +------------------------------------------------------------- +-------------------+ 28.06 28.06 28.06 28.06 28.06 28.06 28.06 2 +8.06 28.06 28.06 16:15 16:30 16:45 17:00 17:15 17:30 17:45 1 +8:00 18:15 18:30 Logtime


In reply to Re^3: Comparing graph shapes or soft matching. by cavac
in thread Comparing graph shapes or soft matching. by tweetiepooh

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.