Page 1 of 1

Change gauge click behavior

Posted: Sun 07 Jan 2024 1:10 pm
by Stigian
Hi,

I am fiddling a bit with the gauges. Since I am missing the solar sensor I am rearranging the dashboard. How can I change the click behavior when I press a gauge so it shows the correct report?

Thx in advance

Re: Change gauge click behavior

Posted: Sun 07 Jan 2024 3:11 pm
by AndyKF650
Hi there

The click behaviour is determined in the CutilsCharts.def file with the command "ConnectsTo " The following snip from my file will hopefully show you the way forward. Look at my website to see the endless possibilities with CUtils that I have constructed over the past few years with help from Hans from time to time.

Code: Select all

Chart Overview Title Current Weather Overview  ConnectsTo 17 HAS WINDBARBS ABOVE ZOOM 2
  PLOT Temperature Colour #F44336 zindex 100 
  PLOT DewPoint Colour #2E7D32 zindex 95 
  PLOT Pressure Colour #FF8A65 zindex 90 
  Plot Humidity Colour #00CC00 zindex 85 
  Plot CurrentSolarRad As Area Opacity 0.2 Colour #FFEE58 zindex 80 
  Plot RainFall As Area colour #2196F3 opacity 0.2 zindex 75 
EndChart
INFO " <h1 style="color:Green;font-size:100%;">This presents an overview of recent weather trends <br /> <b> AFK </h1> "

Chart CloudBase Title Daily Cloudbase in Feet ConnectsTo 17
  PLOT CloudBase EVAL [ CloudBase ] Colour #FFB74D zindex 100 Axis free 
  PLOT DewPoint Colour #2E7D32 zindex 95 
  PLOT Pressure Colour #FF8A65 zindex 70 
EndChart 

Chart Humidity Title Relative Humidity and Temperature ConnectsTo 18 19
  PLOT Temperature Colour #F44336 zindex 100 
  PLOT InsideTemp Colour Orange zindex 100 
  Plot Humidity Colour #00CC00
  Plot InsideHumidity Colour #095010
EndChart

Chart Pressure Title Barometric Pressure  ConnectsTo 15
  PLOT Pressure Colour #FF8A65 zindex 90 
EndChart

Chart Rainfall Title Rainfall and Rain Rate  ConnectsTo 1 2 14
  Plot RainFall As Area Colour #2196F3 Opacity 0.2
  Plot RainRate Colour #1565C0
EndChart INFO " <h1 style="color:Blue;font-size:100%;">Just how much rain fell recently <br /> <b>AFK  </h1> "

Re: Change gauge click behavior

Posted: Sun 07 Jan 2024 5:37 pm
by HansR
What @Andy says.
Please also look at the Wiki Dashboard page

Re: Change gauge click behavior

Posted: Mon 08 Jan 2024 5:50 am
by Stigian
Thanks for the tips I am going to look into this :idea: