<commit_before>#!/bin/bash


TOOL_HOME=/home/fzurell/temp_logger
WEB_HOME=/tmp/temp_logger/

cd $TOOL_HOME


/usr/bin/rrdtool graph temp_graph.png \
        -w 785 -h 120 -a PNG \
        --slope-mode \
        --start -4hours --end now \
		--watermark "`date`" \
        --font DEFAULT:7: \
        --vertical-label "temperature (°C)" \
        DEF:temp=climate.rrd:temperature:AVERAGE \
        DEF:tmax=climate.rrd:temperature:MAX \
        DEF:tmin=climate.rrd:temperature:MIN \
        LINE1:temp#ff9900:"temp avg\l" \
        LINE1:tmax#FF0000:"temp max\l" \
        LINE1:tmin#0000FF:"temp min\l" \
        GPRINT:temp:LAST:"                 Cur\:%5.1lf°C" \
        GPRINT:temp:AVERAGE:"Avg\:%5.1lf°C" \
        GPRINT:tmin:MIN:"Min\:%5.1lf°C" \
        GPRINT:tmax:MAX:"Max\:%5.1lf°C\n"




/usr/bin/rrdtool graph pressure_graph.png \
            -w 785 -h 120 -a PNG \
            --slope-mode \
            --start -1days --end now \
            --watermark "`date`" \
            --font DEFAULT:7: \
            --vertical-label "Pressure (hPa)" \
            DEF:pressure=climate.rrd:pressure:MAX \
            LINE1:pressure#0000ff:"pressure " \
            GPRINT:pressure:LAST:"                 Cur\:%5.1lfhPa" \
            GPRINT:pressure:AVERAGE:"Avg\:%5.1lfhPa" \
            GPRINT:pressure:MIN:"Min\:%5.1lfhPa" \<commit_msg>updated the graph generation<commit_after>#!/bin/bash


TOOL_HOME=/home/fzurell/temp_logger
WEB_HOME=/tmp/temp_logger/
RRDFILE=$TOOL_HOME/climate.rrd

# Graph Colors
COLOUR1="#FF9933"
COLOUR2="#0000FF"
COLOUR3="#336699"
COLOUR4="#006600"
COLOUR5="#000000"
TRENDCOLOUR="#FFFF00"

cd $TOOL_HOME


/usr/bin/rrdtool graph temp_graph.png \
        -w 785 -h 120 -a PNG \
        --slope-mode \
        --start -4hours --end now \
		--watermark "`date`" \
        --font DEFAULT:7: \
        --vertical-label "temperature (°C)" \
        DEF:temp=$RRDFILE:temperature:AVERAGE \
		DEF:dht=$RRDFILE:dht22temperature:AVERAGE \
		DEF:dewpoint=$RRDFILE:dewpoint:AVERAGE \
		DEF:humidity=$RRDFILE:humidity:AVERAGE \
        LINE1:temp$COLOR1:"temp \l" \
        LINE1:dht$COLOR2:"temp dht22\l" \
        LINE1:dewpoint$COLOR3:"Dew Point\l" \
		LINE1:humidity$COLOR4:"Humidity in %\l" \
        GPRINT:temp:LAST:"                 Cur\:%5.1lf°C" \
        GPRINT:temp:AVERAGE:"Avg\:%5.1lf°C" \
        GPRINT:tmin:MIN:"Min\:%5.1lf°C" \
        GPRINT:tmax:MAX:"Max\:%5.1lf°C\n"




/usr/bin/rrdtool graph pressure_graph.png \
            -w 785 -h 120 -a PNG \
            --slope-mode \
            --start -4hours --end now \
            --watermark "`date`" \
            --font DEFAULT:7: \
            --vertical-label "Pressure (hPa)" \
            DEF:pressure=$RRDFILE:pressure:MAX \
            LINE1:pressure$COLOR5:"pressure " \
            GPRINT:pressure:LAST:"                 Cur\:%5.1lfhPa" \
            GPRINT:pressure:AVERAGE:"Avg\:%5.1lfhPa" \
            GPRINT:pressure:MIN:"Min\:%5.1lfhPa" \
{'fraction_non_alphanumeric': 0.16395112016293278, 'fraction_numerical': 0.04310930074677529, 'mean_word_length': 1.9529058116232465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4191552', 'n_tokens_mistral': 1254, 'n_tokens_neox': 1107, 'n_words': 150}