curves
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
curves [2022/05/23 21:11] – [Get value from the curve via Lua] emozolyak | curves [2022/05/24 08:50] – [Get value from the curve via Lua] emozolyak | ||
---|---|---|---|
Line 129: | Line 129: | ||
<code lua - Getter> | <code lua - Getter> | ||
include " | include " | ||
- | SAFE_VALUE = 10 | ||
function main (userId) | function main (userId) | ||
- | + | local SAFE_VALUE = 10 | |
- | local t = os.date(" | + | local current_hour |
- | current_hour = tonumber(t.hour) | + | |
- | | + | local y, valueOutOfRange |
- | if curve_status | + | |
+ | if (not valueOutOfRange) | ||
WriteReg(" | WriteReg(" | ||
else | else | ||
WriteReg(" | WriteReg(" | ||
end | end | ||
- | | ||
- | |||
end | end | ||
</ | </ |
curves.txt · Last modified: 2022/05/24 08:52 by emozolyak