c-klinger / MMM-JsonValue

Extension module for the Magic Mirror allows you to show information from any JSON on your mirror using an HTTP Request to an REST API
MIT License
11 stars 5 forks source link
iot json magicmirror magicmirror2 rest smarthome

Magic Mirror Module: JSON Value

This extension module for the Magic Mirror allows you to show information from any JSON on your mirror using an HTTP Request to an REST API. The module supports multiple instances to e.g. display values from different sources.

Screenshot

json_values.png

Installation

Additional Configuration

Custom HTTP Headers

You can add custom HTTP Headers to the configuration of each widget, this might be useful for cache control or authentification:

{
    module: "MMM-JsonValue",
    position: "top_left",
    config: {
        //...
        headers: {'Authorization': 'Bearer SecretToken'}
        //...
    }
 },

Update

Update this module by navigating into its folder on the command line and using git pull:

cd ~/MagicMirror/modules/MMM-JsonValue # adapt directory if you are using a different one
git pull
npm install # install (new) dependencies