You could create such a variable. Say your boolean value is "heater". Then
put in [[Corrections]]

heater_value = 1 if heater else 0


Then plot "heater_value".

If you really want it in the same plot as inside temperature, but you don't
care what the actual value is, you could do something like

    heater_value = 69 if heater else 68

This is assuming US Units. Then you could plot inTemp and heater_value
together.

On Sun, Nov 5, 2023 at 5:12 AM Remy LAVABRE <[email protected]> wrote:

> OK thanks. but would you have an idea about visualizing the on/off state
> on a graph? Is it better to record the values ​​0 and 1 instead of true
> false to ultimately visualize this data in a graph?
> Thank you Tom
>
>
> Le dim. 5 nov. 2023, 12:46, Tom Keffer <[email protected]> a écrit :
>
>> Unfortunately, the plotting library in WeeWX is capable of using only one
>> y-axis scale. A limitation, to be sure.
>>
>> On Sun, Nov 5, 2023 at 1:44 AM Remy Lavabre <[email protected]>
>> wrote:
>>
>>> Good morning,
>>> A "simple" question (apparently): I have a boolean type variable in my
>>> WeeWX database (ON/Off state).
>>> Is it possible to show this state in a diagram? For example, draw the
>>> curve of an indoor temperature and at the same time on the graph the "ON"
>>> or "OFF" state of the Boolean variable?
>>> If yes, how... ?? ;-)
>>> Thank you so much...
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "weewx-user" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/d04ae7c5-7f56-4444-b60c-7cadffda172cn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/d04ae7c5-7f56-4444-b60c-7cadffda172cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/CAPq0zEBJ0LWahM1WGZhMcg9%3DsPtphm0d5qGpJdYf7MCkNpHXKw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEBJ0LWahM1WGZhMcg9%3DsPtphm0d5qGpJdYf7MCkNpHXKw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CADhm9Yea%2B3JRXhxSk-0%2Bi9TCD-VF03GL_cfnHQdGwO0PV%3DFwCg%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CADhm9Yea%2B3JRXhxSk-0%2Bi9TCD-VF03GL_cfnHQdGwO0PV%3DFwCg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEAyi6jKGnx%2B30E4%3DZn2Lq5t3XdumUctTqm2i0qpS3LfPw%40mail.gmail.com.

Reply via email to