Darstellung lokaler PWS-Daten mit FOSHKplugin auf einem MagicMirror
Verfasst: 21 Nov 2025, 16:44
Hi!
siehe naechsten Beitrag ...
Oliver
siehe naechsten Beitrag ...
Oliver
Der Platz für alle wetterbegeisterten Hobbymeteorologen
https://www.wetterstationsforum.info/
Code: Alles auswählen
[Forward-75]
FWD_ENABLE = True
FWD_CMT = TAGFILE for JsonTable (MMM)
FWD_URL =
FWD_OPTION = config=tag-jsontable.conf
FWD_INTERVAL = 30
FWD_IGNORE =
FWD_TYPE = TAGFILE
FWD_SID =
FWD_PWD =
FWD_EXEC =
Code: Alles auswählen
{
"items": [
{
"name": "runtime",
"value": "[[@runtime]] sec"
},
{
"name": "tempinc",
"value": "[[@tempinc]] °C"
},
{
"name": "humidityin",
"value": "[[@humidityin]] %"
},
{
"name": "tempc",
"value": "[[@tempc]] °C"
},
{
"name": "humidity",
"value": "[[@humidity]] %"
},
{
"name": "baromrelhpa",
"value": "[[@baromrelhpa]] hPa"
},
{
"name": "winddir",
"value": "[[@winddir]] "
},
{
"name": "winddir_text",
"value": "[[@winddir_text]]"
},
{
"name": "windspeedkmh",
"value": "[[@windspeedkmh]] kmh"
},
{
"name": "windgustkmh",
"value": "[[@windgustkmh]] kmh"
},
{
"name": "maxdailygustkmh",
"value": "[[@maxdailygustkmh]] kmh"
},
{
"name": "windgustkmh",
"value": "[[@windgustkmh]] %"
},
{
"name": "solarradiation",
"value": "[[@solarradiation]] W/m²"
},
{
"name": "uv",
"value": "[[@uv]] %"
},
{
"name": "rainratemm",
"value": "[[@rainratemm]] mm/h"
},
{
"name": "eventrainmm",
"value": "[[@eventrainmm]] mm"
},
{
"name": "hourlyrainmm",
"value": "[[@hourlyrainmm]] mm"
},
{
"name": "dailyrainmm",
"value": "[[@dailyrainmm]] mm"
},
{
"name": "weeklyrainmm",
"value": "[[@weeklyrainmm]] mm"
},
{
"name": "monthlyrainmm",
"value": "[[@monthlyrainmm]] mm"
},
{
"name": "yearlyrainmm",
"value": "[[@yearlyrainmm]] mm"
},
{
"name": "temp1c",
"value": "[[@temp1c]] °C"
},
{
"name": "humidity1",
"value": "[[@humidity1]] %"
}
]
}
Code: Alles auswählen
[Tagfile]
infile = tag-jsontable.template # mandatory! - name of the template file with embedded tags (default: "")
outfile = tag-jsontable.json # name of the final output file (default: "")
append = False # determines whether outfile is overwritten or appended in each interval (default: False)
task = save # processing - SAVE for writing a file, GET for sending via http(s)/GET, and POST for sending via http/POST (default: save)
tag = [[@keyname]] # of string is searched for in the infile and replaced with the corresponding value (default: <!-- @keyname -->)
postscript = "" # possibility to specify a bash script to be started after saving the output file but before sending it (default: "")
dtime_format = %d-%m-%y %H:%M # sets output format for values with a date/time - use "%d.%m.%Y %H:%M:%S" for european 24h display - Python like - see https://www.w3schools.com/python/python_datetime.asp (default: %d.%m.%Y %H:%M:%S)
locale_format = "" # defines the language of the names of the weekdays and months - use en_US.utf8 for English terms in dates (default: "")
pre_count = "" # length of the output value - padded with spaces if necessary (default: "")
dec_count = "" # number of decimal places (default: "" = as is)
dec_separator default = . # you may define a comma as a decimal separator (default: .)
Code: Alles auswählen
{
module: 'MMM-JsonTable',
position: 'top_left',
header: 'JsonTable FOSHKplugin',
config: {
url: 'http://ipaddress:port/gettagfile=tag-jsontable.json', // Required
arrayName: 'items' // Optional
}
}
Code: Alles auswählen
[Forward-76]
FWD_ENABLE = True
FWD_CMT = TAGFILE for JsonTable (MMM) 2
FWD_URL =
FWD_OPTION = config=tag-jsontable2.conf
FWD_INTERVAL = 30
FWD_IGNORE =
FWD_TYPE = TAGFILE
FWD_SID =
FWD_PWD =
FWD_EXEC =
Code: Alles auswählen
[Tagfile]
infile = tag-jsontable2.template # mandatory! - name of the template file with embedded tags (default: "")
outfile = tag-jsontable2.json # name of the final output file (default: "")
append = False # determines whether outfile is overwritten or appended in each interval (default: False)
task = save # processing - SAVE for writing a file, GET for sending via http(s)/GET, and POST for sending via http/POST (default: save)
tag = [[@keyname]] # of string is searched for in the infile and replaced with the corresponding value (default: <!-- @keyname -->)
postscript = "" # possibility to specify a bash script to be started after saving the output file but before sending it (default: "")
dtime_format = %H:%M:%S # sets output format for values with a date/time - use "%d.%m.%Y %H:%M:%S" for european 24h display - Python like - see https://www.w3schools.com/python/python_datetime.asp (default: %d.%m.%Y %H:%M:%S)
locale_format = "" # defines the language of the names of the weekdays and months - use en_US.utf8 for English terms in dates (default: "")
pre_count = "" # length of the output value - padded with spaces if necessary (default: "")
dec_count = "" # number of decimal places (default: "" = as is)
dec_separator default = . # you may define a comma as a decimal separator (default: .)
Code: Alles auswählen
{
module: 'MMM-JsonTable',
position: 'top_left',
header: 'JsonTable FOSHKplugin #2',
config: {
url: 'http://ipaddress:port/gettagfile=tag-jsontable2.json', // Required
arrayName: 'items', // Optional
descriptiveRow: '<tr><td>what</td><td>min</td><td>max</td><td>now</td></tr>',
tryFormatDate: false
}
}
Code: Alles auswählen
{
module: 'das erste Modul',
position: 'top_left',
...
config: {
}
}, // hier gehört ein Komma hin!
{
module: 'das erste Modul',
position: 'top_left',
...
config: {
}
} // der letzt Modulblock darf kein Komma haben!