Two other thoughts:

1. Use a skin that supports charts with multiple y-Axis.
2. I don't know if this is manageable with weewx currently: make the chart 
show a different background color, when the variable is true/false. Just 
like the day/night background.

Remy Lavabre schrieb am Sonntag, 5. November 2023 um 17:20:56 UTC+1:

>
> Thank you Tom for this suggestion which I will follow...
>
> *One last quick question*:
>
> - My boolean variable in the weewx.sdb database is heater -*> OK*
> - For example, I add a "heater_value" variable in the [[Corrections]] 
> section of the weewx.conf file -*> OK*
>
> *My question:* Should I declare the "heater_value" variable elsewhere to 
> be able to use it in the graphics or is that enough?
>
> Thanks Tom for your idea! ;-)
> Le dimanche 5 novembre 2023 à 15:46:15 UTC+1, Tom Keffer a écrit :
>
>> 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/7f945c18-d165-4e48-abbd-afb66fca177an%40googlegroups.com.

Reply via email to