Repository navigation
Add JS 'Utils' object to provide log10() missing on older Qt versions - #6152
Conversation
The Math.log10() function is missing on some setups: see: https://forum.phoscon.de/t/rtcgq11lm-light-level-broken-since-2-17/2104/7 In the Utils object we can add functions to do some basic tasks or provide some math mojo.
|
Hello! |
|
Hi, compiling the plugin is one part of this puzzle. In the changed files list of this PR are also updated However, the next version should arrive during the day, might be easier to just install it :) |
|
I'm sorry, Yes, I've missed those two files. |
|
Tried 2.17.1 now, but same fault as in 2.17.0 (OK in 2.16.1) Phillips HUE Outdoor sensor. |
|
This is not the same issue, but could have a similar root case. Can you please Do the same as described here https://forum.phoscon.de/t/rtcgq11lm-light-level-broken-since-2-17/2104/3?u=swoop ? If you also see an error message while the script is evaluating the lightlevel, please file a seperate bug report. Thanks! |
|
Got the log ... |
|
Lol, you have bypassed the "evil gatekeeper bot " but your issue have nothing to see with this PR Else I don't see something special in the JS code, the file is devices\philips\0400_lightlevel.js, can you try with adding ";" at the end of lines ? Edit: Restarted here #6315 |
The
Math.log10()function is missing on some setups: see: https://forum.phoscon.de/t/rtcgq11lm-light-level-broken-since-2-17/2104/7In the
Utilsobject we can add functions to do some basic tasks or provide some math mojo.Fixes
state/luxnot updated on Xiaomi RTCGQ11LM motion sensor.