Hello everyone,
I would like the values displayed as on the modules above, aligned to the right :

I’m bad at css, and I need your help.
Thanks to you
Hello everyone,
I would like the values displayed as on the modules above, aligned to the right :

I’m bad at css, and I need your help.
Thanks to you
Re: MMM-VigiCrues
Bonjour
depuis quelques jours le graphique ne se mets plus à jour.

voici ma conf :
// VIGICRUE
{
module: "MMM-VigiCrues",
position: "top_left",
header: "Vigicrue",
config: {
stationid: "H505012001", // Station identifer (www.vigicrues.gouv.fr)
dataPeriod: 1440,
dataInterval : 30,
alertTable: [
{ "value": 9210, "title": "Crue 2016", "color": "yellow" },
{ "value": 9640, "title": "Crue 2020", "color": "red" },
]
}
},
Que dois-je faire ?
good morning
I don’t mind doing it by hand if you explain to me what I need to change
I come back here, it will be simpler.
My code is:
//INFORMATION HOMEY EUFY
{
module: "MMM-CommandToNotification",
disabled: false,
config: {
updateInterval: 300,
commands: [
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/ETATEUFY",
timeout: 1000,
notifications: [
"ETATEUFY",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CAMSALLE",
timeout: 1000,
notifications: [
"CAMSALLE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CAMPALIER",
timeout: 1000,
notifications: [
"CAMPALIER",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CAMARRIERE",
timeout: 1000,
notifications: [
"CAMARRIERE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CAMGARAGE",
timeout: 1000,
notifications: [
"CAMGARAGE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CAMGAUCHE",
timeout: 1000,
notifications: [
"CAMGAUCHE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CAMAVANT",
timeout: 1000,
notifications: [
"CAMAVANT",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/TEMPSALLE",
timeout: 1000,
notifications: [
"TEMPSALLE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/TEMPBUREAU",
timeout: 1000,
notifications: [
"TEMPBUREAU",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/TEMPCHELENA",
timeout: 1000,
notifications: [
"TEMPCHELENA",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/TEMPCHLOUCA",
timeout: 1000,
notifications: [
"TEMPCHLOUCA",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/TEMPCHALAN",
timeout: 1000,
notifications: [
"TEMPCHALAN",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/TEMPCHPARENT",
timeout: 1000,
notifications: [
"TEMPCHPARENT",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/AUTBATTMEGANE",
timeout: 1000,
notifications: [
"AUTBATTMEGANE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/BATTMEGANE",
timeout: 1000,
notifications: [
"BATTMEGANE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/PLUGMEGANE",
timeout: 1000,
notifications: [
"PLUGMEGANE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CHARGEMEGANE",
timeout: 1000,
notifications: [
"CHARGEMEGANE",
],
},
]
},
},
So I think it launches all requests at the same time, because my server which must answer crashes.
I wanted to split it like this:
//INFORMATION HOMEY EUFY
{
module: "MMM-CommandToNotification",
disabled: false,
config: {
updateInterval: 300,
commands: [
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/ETATEUFY",
timeout: 1000,
notifications: [
"ETATEUFY",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CAMSALLE",
timeout: 1000,
notifications: [
"CAMSALLE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CAMPALIER",
timeout: 1000,
notifications: [
"CAMPALIER",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CAMARRIERE",
timeout: 1000,
notifications: [
"CAMARRIERE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CAMGARAGE",
timeout: 1000,
notifications: [
"CAMGARAGE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CAMGAUCHE",
timeout: 1000,
notifications: [
"CAMGAUCHE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CAMAVANT",
timeout: 1000,
notifications: [
"CAMAVANT",
],
},
]
},
},
and
//INFORMATION HOMEY EUFY
{
module: "MMM-CommandToNotification",
disabled: false,
config: {
updateInterval: 300,
commands: [
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/TEMPSALLE",
timeout: 1000,
notifications: [
"TEMPSALLE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/TEMPBUREAU",
timeout: 1000,
notifications: [
"TEMPBUREAU",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/TEMPCHELENA",
timeout: 1000,
notifications: [
"TEMPCHELENA",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/TEMPCHLOUCA",
timeout: 1000,
notifications: [
"TEMPCHLOUCA",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/TEMPCHALAN",
timeout: 1000,
notifications: [
"TEMPCHALAN",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/TEMPCHPARENT",
timeout: 1000,
notifications: [
"TEMPCHPARENT",
],
},
]
},
},
and :
//INFORMATION HOMEY EUFY
{
module: "MMM-CommandToNotification",
disabled: false,
config: {
updateInterval: 300,
commands: [
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/AUTBATTMEGANE",
timeout: 1000,
notifications: [
"AUTBATTMEGANE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/BATTMEGANE",
timeout: 1000,
notifications: [
"BATTMEGANE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/PLUGMEGANE",
timeout: 1000,
notifications: [
"PLUGMEGANE",
],
},
{
script: "/usr/bin/curl",
args: "-s http://192.168.100.244:3000/CHARGEMEGANE",
timeout: 1000,
notifications: [
"CHARGEMEGANE",
],
},
]
},
},
But it doesn’t work, only the last element appears.
Salut Bugsounet,
je ne sais pas comment est généré la date mais il y a visiblement un problème, nous sommes le mercredi 14 décembre et il est 20h33…et c’est le match :)

Bonne soirée
good evening,
I tested the replace function:
{
module: "MMM-ValuesByNotification",
position: "top_right",
header: "INFORMATION MÉGANE",
config: {
updateInterval: 300,
reuseCount: 100,
addClassesRecursive: true,
valueFormat: "\"${value}\".replace(\"false\",\"Non\").replace(\"true\",\"Oui\")",
groups: [
{
items: [
{
notification: "AUTBATTMEGANE",
itemTitle: "Autonomie ",
values: [
{
valueUnit: " Km",
valueFormat: "Number(${value}).toFixed(2)",
jsonpath: "data",
},
]
},
{
notification: "BATTMEGANE",
itemTitle: "Charge batterie ",
values: [
{
valueUnit: " %",
valueFormat: "Number(${value}).toFixed(2)",
jsonpath: "data",
},
]
},
{
notification: "PLUGMEGANE",
itemTitle: "Voirture branchée ",
classes: "withIcons",
valueFormat: "\"${value}\".replace(\"false\",\"Non\").replace(\"true\",\"Oui\")",
values: [
{
valueFormat: "Number(${value}).toFixed(2)",
jsonpath: "data",
},
]
},
]
},
]
},
},
But unfortunately it doesn’t work.

Would you know why?
Thanks
great, thank you.
Is there a “lexicon” with these commands?
@wishmaster270
Hello
No, not al all.
the returned value will be “false” or “true” and I would like to replace it with “Non” or “Oui” in French.
Hello
sorry to bother you again but is it possible to display an answer following the answer of the request.
example :
The JSON request returns false I would like to display “NON”
@bugsounet super, en fait d anticipé les coupure du lundi le vendredi pour le teletaf.
Merci
@bugsounet
C’est génial. Mais vous n’avez pas répondu à ma question