{"id":21482044,"url":"https://github.com/c-klinger/mmm-jsonvalue","last_synced_at":"2025-07-15T12:33:55.642Z","repository":{"id":43125909,"uuid":"332232300","full_name":"c-klinger/MMM-JsonValue","owner":"c-klinger","description":"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","archived":false,"fork":false,"pushed_at":"2022-03-16T21:40:23.000Z","size":40,"stargazers_count":7,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-03-06T21:18:05.894Z","etag":null,"topics":["iot","json","magicmirror","magicmirror2","rest","smarthome"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-klinger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-23T14:41:04.000Z","updated_at":"2022-12-22T10:39:25.000Z","dependencies_parsed_at":"2022-09-06T19:12:37.171Z","dependency_job_id":null,"html_url":"https://github.com/c-klinger/MMM-JsonValue","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-klinger%2FMMM-JsonValue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-klinger%2FMMM-JsonValue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-klinger%2FMMM-JsonValue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-klinger%2FMMM-JsonValue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-klinger","download_url":"https://codeload.github.com/c-klinger/MMM-JsonValue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226043409,"owners_count":17564827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iot","json","magicmirror","magicmirror2","rest","smarthome"],"created_at":"2024-11-23T12:29:41.345Z","updated_at":"2024-11-23T12:29:41.935Z","avatar_url":"https://github.com/c-klinger.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magic Mirror Module: JSON Value\n\nThis extension module for the [Magic Mirror](https://github.com/MichMich/MagicMirror) 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.\n\n## Screenshot\n![json_values.png](https://github.com/c-klinger/MMM-JsonValue/raw/main/doc/json_values.png)\n\n## Installation\n\n- (1) Clone this repository in your `modules` folder, and install dependencies:\n```bash\ncd ~/MagicMirror/modules # adapt directory if you are using a different one\ngit clone https://github.com/c-klinger/MMM-JsonValue.git\ncd MMM-JsonValue\nnpm install\n```\n\n- (2) Add the module to your `config/config.js` file. The default configuration displays a random quote using [quotable.io](http://quotable.io/).\n```js\n{\n\tmodule: \"MMM-JsonValue\",\n\tposition: \"top_left\",\n\tconfig: {\n\t\tapiBase: 'https://api.quotable.io/random',\n\t\tmethod: \"GET\",\n\n\t\ttitle: \"MM API TEST\", // Widget Title, set to null if not needed\n\t\ticon: \"fa-quote-right\", // Font Awesome icon, displayed before any text, set to null if not needed\n\t\tprefix: \"Quote: \\\"\", // Text displayed before the value, can be a blank String \"\"\n\t\tsuffix: \"\\\" (from https://api.quotable.io/random)\", // Text displayed after the value, can be a blank String \"\"\n\t\tjsonPath: \"$.content\", // value in the json to display, the module use https://github.com/dchester/jsonpath for parsing. Note: if $ is not the first character in your path, it will be added for backward-compatibility reason.\n\n\t\trefreshInterval: 1000 * 60, // refresh every minute\n\t\t//skipPadding: true, // yo can un-comment this line if you want to display a related value below; using a second instance.\n\t}\n },\n```\n\n## Additional Configuration\n\n### Custom HTTP Headers\nYou can add custom HTTP Headers to the configuration of each widget, this might be useful for cache control or authentification:\n```js\n{\n\tmodule: \"MMM-JsonValue\",\n\tposition: \"top_left\",\n\tconfig: {\n\t\t//...\n\t\theaders: {'Authorization': 'Bearer SecretToken'}\n\t\t//...\n\t}\n },\n```\n\n## Update\n\nUpdate this module by navigating into its folder on the command line and using `git pull`:\n\n```bash\ncd ~/MagicMirror/modules/MMM-JsonValue # adapt directory if you are using a different one\ngit pull\nnpm install # install (new) dependencies\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-klinger%2Fmmm-jsonvalue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-klinger%2Fmmm-jsonvalue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-klinger%2Fmmm-jsonvalue/lists"}