I’m using the example scripts in CommandToNotification using a BME280. I’m trying to keep the temperature in F to two digits, as the script or BME module is producing LONG temperature values. (76.0000000000000000000000001)
Using the configuration below, I’m not getting any rounding on output. The “valueFormat” is directly from your README.md.
{
module: "MMM-ValuesByNotification", // https://github.com/Tom-Hirschberger/MMM-ValuesByNotification
position: "top_bar",
config: {
animationSpeed: 0,
updateInterval: 15,
groups: [
{
items: [
{
notification: "WEATHERLINK",
values: [
{
valueTitle: "Closet",
valueUnit: "°F",
jsonpath: "data.conditions[1].temp_in",
naValue: "0",
},
]
},
]
},
{
items: [
{
notification: "TEMPROOM",
itemTitle: "Room",
values: [
{
valueTitle: "Temp",
valueUnit: "°F",
naValue: "0",
valueFormat: "Number(${value}).toFixed(2)",
jsonpath: "temperature_f",
},
],
},
]
},
]
},
},