{"id":21422376,"url":"https://github.com/hglab01/iobroker-jsonexplorer","last_synced_at":"2025-07-14T08:31:14.728Z","repository":{"id":37055059,"uuid":"327665345","full_name":"HGlab01/ioBroker-jsonExplorer","owner":"HGlab01","description":"Explores a json-object and persistent corresponding states in iobroker.","archived":false,"fork":false,"pushed_at":"2025-07-07T02:42:32.000Z","size":375,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T13:38:36.374Z","etag":null,"topics":["explorer","generic-state-creation","iobroker","json","json-exporer"],"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/HGlab01.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG_OLD.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-07T16:23:13.000Z","updated_at":"2025-03-12T11:59:53.000Z","dependencies_parsed_at":"2024-04-09T17:35:25.053Z","dependency_job_id":"201b177a-8e0e-4952-85eb-034f7e95a09f","html_url":"https://github.com/HGlab01/ioBroker-jsonExplorer","commit_stats":{"total_commits":122,"total_committers":5,"mean_commits":24.4,"dds":0.2622950819672131,"last_synced_commit":"00e3332f024c83d335cb2f0e354385702c8a2bde"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"purl":"pkg:github/HGlab01/ioBroker-jsonExplorer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HGlab01%2FioBroker-jsonExplorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HGlab01%2FioBroker-jsonExplorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HGlab01%2FioBroker-jsonExplorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HGlab01%2FioBroker-jsonExplorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HGlab01","download_url":"https://codeload.github.com/HGlab01/ioBroker-jsonExplorer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HGlab01%2FioBroker-jsonExplorer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265262588,"owners_count":23736422,"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":["explorer","generic-state-creation","iobroker","json","json-exporer"],"created_at":"2024-11-22T20:48:41.172Z","updated_at":"2025-07-14T08:31:14.272Z","avatar_url":"https://github.com/HGlab01.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ioBroker JsonExplorer\n\n\n[![NPM version](http://img.shields.io/npm/v/iobroker-jsonexplorer.svg)](https://www.npmjs.com/package/iobroker-jsonexplorer)\n[![Downloads](https://img.shields.io/npm/dm/iobroker-jsonexplorer)](https://www.npmjs.com/package/iobroker-jsonexplorer)\n[![Known Vulnerabilities](https://snyk.io/test/github/HGlab01/iobroker-jsonexplorer/badge.svg)](https://snyk.io/test/github/HGlab01/iobroker-jsonexplorer)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FHGlab01%2FioBroker-jsonExplorer.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FHGlab01%2FioBroker-jsonExplorer?ref=badge_shield)\n[![Dependency Status](https://status.david-dm.org/gh/hglab01/iobroker-jsonexplorer.svg)](https://david-dm.org/HGlab01/iobroker-jsonexplorer)\n\n\n## How to prepare\nCreate file `/lib/stateAttr.js` in your adapter directory based on template `_template/stateAttr.js`and add  \n* `const jsonExplorer = require('iobroker-jsonexplorer');`\n* `const stateAttr = require(__dirname + '/lib/stateAttr.js'); // Load attribute library`  \nin section \"Load your modules here\"  \nInstall `iobroker-jsonexplorer` by using `npm i iobroker-jsonexplorer`  \n\n\nAdd line `jsonExplorer.init(this, stateAttr);` to the adapter constructor, where \"this\" is your adapter class object.  \n\n## How to use\nCall `await JsonExplorer.TraverseJson(result, parent, replaceName, replaceID);`  \nresult: JSON object to be added as states  \nparent: name of the parent state; null results in root  \nreplaceName: true|false; if true, the description of a channel will be replaced by the name of a leaf-state if available (search for a state with id \"name\")  \nreplaceID: true|false; if true, the description of a channel will be replaced by the id of a leaf-state if available (search for a state with id \"id\")\n\n### Expire management (optional)\nAll states can be monitored and set to NULL if it is not updated in the last run by calling `jsonExplorer.setLastStartTime()` before calling `jsonExplorer.traverseJson()` and `jsonExplorer.checkExpire('*')` after caling `JsonExplorer.TraverseJson()`\n\n### Reference implementation\nhttps://github.com/HGlab01/ioBroker.fuelpricemonitor\n\n## Changelog\n\u003c!--\n    Placeholder for the next version (at the beginning of the line):\n    ### __WORK IN PROGRESS__\n--\u003e\n### 0.1.16 (2024-07-04)\n* (HGlab01) fix \"deleteDevice\" is deprecated and will be removed in js-controller 7\n* (HGlab01) add function deleteObjectsWithNull()\n\n### 0.1.15 (2023-12-11)\n* (HGlab01) fix coding-typo\n\n### 0.1.14 (2023-10-08)\n* (HGlab01) add versionInfo\n* (HGlab01) add modify-methods 'toFloat' and 'toInteger'\n* (DutchmanNL) couple of code improvements\n\n### 0.1.13 (2023-10-03)\n* (HGlab01) fix #113 \"Cannot read properties of undefined (reading 'Warning')\"\n\n### 0.1.12 (2023-07-03)\n* (HGlab01) Improve statename verification\n\n## License\nMIT License\n\nCopyright (c) HGlab01 \u0026 DutchmanNL\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FHGlab01%2FioBroker-jsonExplorer.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FHGlab01%2FioBroker-jsonExplorer?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhglab01%2Fiobroker-jsonexplorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhglab01%2Fiobroker-jsonexplorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhglab01%2Fiobroker-jsonexplorer/lists"}