I digged in and came out alive :-) ....
I've come up with quite flexible idea of controlling what is displayed on floorplans for Climate devices (this could be easily extended to all rendering plugins)...
I've done this:
- by default behaviour stays the same as before
- if you add Extra parameters data to certain device, then you can control info displayed on floorplan by its content:
State for Climate devices consists of following parts :
OSD display format for Orbiter floorplan ($1=ON/OFF,$2=HEAT|COOL|FAN_ONLY|AUTO,$3=HIGH|AUTO,$4=SET TEMP ($5=CURRENT TEMP))
for instance: default string value for displaying exactly the same info as it is know is :
'$1/$2/$3/$4 ($5)' - omit quotes!
Climate device has a state consisting of five components: Active($1), Mode($2), FanMode($3),Setpoint($4),ActualTemp($5) and by default everything is displayed on floorplan... Now by changing this string you can easily control/select and add text info to floorplan - few examples :
'Outside ($5)' will display text Outside and then ActualTemp
'$2 ($4)' this is probably the thing for actual thermostat without fan....
OSD string is changed from default - computed :
- only if Extra parameters string exists
- if they exist, $1..$5 are replaced by actual values one by one
- everything else is intact...
I've tried to do this on my 710 system and must admit that now my floorplan is getting more user friendly and informative....
What do you think about solution ?
I also have an idea for further possible replacement of hardcoded states that are displayed on floorplans:
- for instance what if you don't like HEAT/COOL/AUTO, then you could set an replacement for them -something like
'$1/$2/$3/$4 ($5) $3=HEAT|High;COOL|Low' - omit quotes!
That means that when evaluating $3, state of 'HEAT' is replaced by custom 'High'... I think this is not so hard to code, but it's beyond my c++ knowledge, so if anyone can come up with a bit of help it would be welcome.... With this possibility you gain total control of what is displayed on floorplan and you can easily customize things on floorplan...
Thanks in advance,