Description:
Need a MagicMirror² module which is able to display information which is send by a other module like MMM-MQTTbridge or MMM-CommandToNotification?
The information is provided as a simple message or as an JSON-Object?
You want to re-format the message before displaying it or want to select single values within the JSON-Object?
You need more than one instance and do want to style the instances different?
Do you want to style the elements or change displayed icons based on thresholds?
Do you want some elements to only be visible if a certain profile is active?
Then this is the module you need!
BUT i think i created a monster. The configuration can be very tricky!
Screenshots:
![]()
![]()



Download:
Download
[card:Tom-Hirschberger/MMM-ValuesByNotification]
Version 0.1.6
- bumped version of jsonpath-plus library to 10.3.0
Version 0.1.5
- bumped version of jsonpath-plus library to 10.1.0
Version 0.1.4
- it is possible to set the
reuseCounton group level now
Version 0.1.3
- added a postinstall script which creates a copy of the imported JSONPath library cause MagicMirror only imports files with ending
jsand notcjsto fix JSONPath
Version 0.1.2
- bumped jsonpath-plus library to version 10.0.1
- do not log every received notification anymore
- be more verbose if debug is enabled and the value format fails
Version 0.1.1
- Reverted the jsonpath-plus dependency upgrade (used version is 5.1.0 now) cause version 7.2.0 only worked with the newest MagicMirror version (2.24.0)
- fixed a bug which caused empty values to be converted to html and causing a exception in this process
- introduce a
debugconfig flag which causes some more information being printed to console if enabled
Version 0.1.0
- Each time a value is reused the values html elements get two classes added. The one configured with the new config option
reusedClass(default: “reused”) and the config option prefixed by a “-” and the count of reuses. - Updated the jsonpath-plus dependency to version 7.2.0. As this required a change to the import of the module this is a breaking change.
Version 0.0.10
- Introducing a feature to define own functions to transform the values (
valueTransformers). Added a example to values documentation - Changed the way titles, values and units are converted the html elements
- Added a new option called
unitSpaceto prefix the unit with a non-breakable space
Special thanks to @BKeyport for contribution
Version 0.0.9
- fixed a bug which caused selected JSON values with value
0being interpreted as not existing and replaced bynaValue
Version 0.0.8
- fixed a bug which caused values not being formatted if values before format are not of type String
- fixed a bug which caused newline replacement called even if no
valueFormatwas set
Version 0.0.7
- added new option
valueNaPositionswhich defines the positions of title, value, unit and icon of the value elements ifnaValueis used - added support to override
valuePositionsby threshold configurations (will overridevalueNaPositions, too!)
Version 0.0.6
- only the first element of a jsonpath result is used now
- if html is added as value which contains more than one html element they are wrapped in a
spannow
Version 0.0.5
- added support of Iconify icons
- all CSS definitions are now prefixed with the modules main class (MMM-ValuesByNotification)
Version 0.0.4
- fixed handling of new line characters in notifications; new lines will be replaced now before handling the values (default is a single space, see newlineReplacement option)
- fixed classes not bubbling up correctly
- added a flowercare example
Version 0.0.3
- if searching the value with “jsonpath” fails the “naValue” will be set now
- added a new option “formatNaValue” which controls if the naValue should be formatted as the regular are
Version 0.0.2
- Only classes which are added by thresholds are now set to higher (wrapper) elements if “letClassesBubbleUp” is set to “true”
Version 0.0.1
- Display values received as payload of notifications either as String or JSON Object
- Select single values with Jsonpath within the JSON objects
- Re-format the values with javascript functions (see valueFormat option)
- Group the values in items and groups and add titles and/or icons to the wrappers
- Re-order the elements in the wrappers based on position definition strings
- Filter elements based on the current active profile (MMM-ProfileSwitcher)
- Add classes or change icons based on thresholds reached by the values