curves
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
curves [2020/07/31 12:53] – atolstov | curves [2021/09/10 14:33] – [Get value from the curve] atolstov | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{ : | ||
======Curves====== | ======Curves====== | ||
=====Introduction===== | =====Introduction===== | ||
Line 55: | Line 56: | ||
{{ : | {{ : | ||
=====Select a curve to put in register===== | =====Select a curve to put in register===== | ||
- | < | ||
- | |||
To get the value you need: | To get the value you need: | ||
- Have a curve | - Have a curve | ||
Line 136: | Line 135: | ||
<code lua - Getter> | <code lua - Getter> | ||
include " | include " | ||
+ | SAFE_VALUE = 10 | ||
function main (userId) | function main (userId) | ||
Line 142: | Line 142: | ||
current_hour = tonumber(t.hour) | current_hour = tonumber(t.hour) | ||
curve_status, | curve_status, | ||
- | WriteReg(" | + | |
+ | | ||
+ | else | ||
+ | WriteReg(" | ||
+ | end | ||
+ | | ||
end | end |
curves.txt · Last modified: 2022/05/24 08:52 by emozolyak