Skip to content

graphlist

Pragmatismo edited this page Mar 8, 2023 · 7 revisions

List of Graph Modules

Basic

Line

line_graph

Bar

bar_graph

Histogram

histogram_graph

Day Range

day_range_graph

Overlaid Days

overlaid_days_graph

Averages

averages_graph

With only the daily average shown;

averages_graph

Day Night

A line graph overlaid on the day-night graphic which shows either sunset-sunrise or lamp on / lamp off

day_night_graph

To set the light period to be between 7:00 and 22:00

use_time=lamp
light_on_time_hour=7
light_on_time_min=0
light_off_time_hour=22
light_off_time_min=00

To display use the daily sunset and sunrise times based on global location;

use_time=sun
latitude=51.50
longitude=0.12

Default location is London, UK. To change this you can look up your own latitude and longitude.

For location based sunset/sunrise times this uses the python module suntime which can be installed using;

pip3 install suntime

or using the gui install dialogue.

Cumulative

Adds the sum of all prior values to each data point.

cumulative_graph

(graphing temp like this makes no sense but I didn't have anything that does)

Colourful

Each day is given it's own colour to help see daily patterns.

colorful_graph

Threshold Values

Graphs that show use the extremely low, low, high, extremely high values.

Thresholds Hourly

The count of value readings that are outside the ideal window.

thresholds_hourly_graph

Thresholds Pie

The percentage of values in each threshold window.

thresholds_pie_graph

Median Hour

The values split into hour bins and coloured based on threshold values

median_hour_graph

Multiple Log Graphs

Two Axis

Must have exactly two logs loaded, gives each their own axis. Useful for comparing trends.

twoaxis_graph

Compare

Must have exactly two logs loaded, finds the closest data points and compares the values.

When logs are recording with different durations between values this is will visible in the 'Time Difference Between closest log value' section. The following graph shows ambient air temperature recorded with a BME280 every 1 min compared with the CPU temperature recorded every 15 min.

compare_graph

(Currently you might need to have the more fine grained dataset as the first one loaded)

Log Analysis

Time Difference

calculates the time difference between log entries, useful for check for intermittent sensors.

difference_time_graph

Value Difference

the difference in values between each log entry

difference_values_graph

Rate of Change

This is not a very good graph, it needs reworking but it can be useful in select situations.

It attempts to detect the positive and negative movements in the value and mark the change of the value per hour, the value change per period of change, and the duration of the period of change.

Changed the log_window_size option will help tune results depending on the log size and granularity required.

rate_of_change_graph

Graphical

picture bar

A bar graph using pictures, this takes an image (pic_to_use=flower.png) and divides it into three sections repeating or stretching the middle section to fill the bar. These are set with top_cut_location and bottom_cut_location which are the amount of pixels down from the top.

use_val_set= day average 
             day min
             day max 
             day range
             last

middle_method = repeat
                stretch  

picture_bar_graph

Animation

Icon

Draws a bar on a supplied image, when animated can be overlaid onto a video to provide a graphical display.

ani_icon_1677702121

Set an image with an area to be replaced by the value display bar

pic_to_use=thermometer.png

Located the maximum size of the value bar

bar_bottom_x=62
bar_bottom_y=350
bar_height=334
bar_width=87

The value labels on the image can be set using the 'Y axis Minimum' and 'Y axis Maximum' settings.

Clone this wiki locally