SVG-Dashboards/en: различия между версиями

Новая страница: «=== MQTT topic value === The value from the MQTT topic specified in the '''Channel''' field is placed into the '''val''' variable.»
(Новая страница: «Create a new SVG panel: # Go to '''Panels''' → '''List'''. # In the '''SVG panel''' section, click the '''Add'' button '', the binding editor will open. # Click the '''Load SVG''' button and select the SVG image file..»)
(Новая страница: «=== MQTT topic value === The value from the MQTT topic specified in the '''Channel''' field is placed into the '''val''' variable.»)
Метки: правка с мобильного устройства правка из мобильной версии
Строка 74: Строка 74:
The option '''Stretch to full screen''' will fit the panel to the free space.
The option '''Stretch to full screen''' will fit the panel to the free space.


<div lang="ru" dir="ltr" class="mw-content-ltr">
== Syntax ==
== Синтаксис ==
In the '''Value''' fields [[#Link editor | With the Link Editor]] you can compose simple expressions that contain conditions and simple arithmetic operations.  
В полях '''Value''' [[#Редактор связей | Редактора связей]] можно составлять простые выражение, которые содержат условия и простые арифметические операции.
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
=== MQTT topic value ===
=== Значение MQTT-топика ===
The value from the MQTT topic specified in the '''Channel''' field is placed into the '''val''' variable.
Значение из MQTT-топика, который указан в поле '''Канал''' помещается в переменную '''val'''.
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
=== Conditional expressions ===
=== Условные выражения ===
Available operations:
Доступные операции:
* <code>></code> — greater than
* <code>></code> — больше
* <code>>=</code> — greater than or equal to
* <code>>=</code> — больше или равно
* <code><</code> — less than
* <code><</code> — меньше
* <code><=</code> — less than or equal to!N !* <code>==</code> — equals
* <code><=</code> — меньше или равно
* <code>!=</code> — not equal
* <code>==</code> — равно
* <code>!=</code> — не равно
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
Syntax:
Синтаксис:
<syntaxhighlight lang="javascript">  
<syntaxhighlight lang="javascript">
(CONDITION) ? 'VALUE1' : 'VALUE2'
(УСЛОВИЕ) ? 'ЗНАЧЕНИЕ1' : 'ЗНАЧЕНИЕ2'
</syntaxhighlight>
</syntaxhighlight>
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<div lang="ru" dir="ltr" class="mw-content-ltr">