We appreciate the contributions many of you have been able to make towards repairing the storm damage and keeping a roof over our heads. With your help we’ve been able to complete much of the critical work. There is still work to be done to secure the house and your continued support will be a huge help.
Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.
PS, charts doenst have any issues with using the value, with/without escaping or that it has a . or , aka it works with all < what my espected behavior is how it should work..
see img: _2.png
I suspect you are in a location where the decimal separator is a comma?
So i was wondering what is the normal behavior for calculations, because Charts do accept . (dot) and , (comma) values so i was suppriced it wasnt working. Even that the advance.ini has calulations with a . (dot) inside them (but they also not working for me).
So i was wondering what is the normal behavior for calculations, because Charts do accept . (dot) and , (comma) values so i was suppriced it wasnt working. Even that the advance.ini has calulations with a . (dot) inside them (but they also not working for me).
The normal behaviour is that the expression evaluator works correctly with a dot as a decimal separator, hence the inclusion of the temperature calculation in the advanced ini.
It won't work properly if the Windows regional settings uses a comma as a decimal separator. That is the bug.
Ahh, check. And indeed my system is indeed with a , (comma) as decimal simbol...
@coolzero While I work out how to deal with this, there is a work-around:
Add the following section to the ini file before the [items] section
[functions] K2C=%1/10-273,15 [items] ...
This creates a function to do the conversion allowing use of the comma as a decimal separator. %1 is a value passed in to the function.
In the temperature item, replace the temperature calculation with a call to the function.
WMI=interval:10,id:temp,hide-no-result:1,maxrows:1,text:Cpu Temp, set:mbtemp={{K2C:%CurrentTemperature%}}[1.0f]C,\
namespace:root\wmi,query:MSAcpi_ThermalZoneTemperature, hidden:1
This gets around the issue of the comma trashing the expression.
So I've given this some thought. The only solution I can think of is to force the decimal separator to be '.' inside the math functions so that we can distinguish between a floating point value and two values.
