How to create a variable with the temperature value in RouterOS 7?
[tik] > /system/health/print
Columns: NAME, VALUE, TYPE
# NAME VALUE TYPE
0 voltage 23.8 V
1 temperature 43 C
[tik] > :global temp [/system/health/get 1 value]
[tik] > :put $temp
43
This doesn’t work as expected on script, shouldn’t use print numbers in scripts.
:global temp [/system/health get [find where name=“temperature”] value]
thank you very much