Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 2.38 KB

README.md

File metadata and controls

60 lines (37 loc) · 2.38 KB

customjson Build Status

This tool generates the "master" files that are used for the custom_updater and the custom_component_store

For the custom_updater it generates and update these jsonfiles:

For the custom_component_store it generates and updates ludeeus/data/custom-component-store/V1

Install

Require Python version 3.5.3+

python3 -m pip install -U customjson

Example

customjson --token aaabbbccc111222333 --mode component

CLI options

param alias description
--token -T An GitHub access_token with repo permissions.
--push -P Push a new repos.json file to the information repo.
--mode -M Must be card or component.
--version -V Print the installed version.

Add more resources

Components

The easiest way to add additional resources is to reuse the json file used by 'custom_updater' if yo have that.

Examples:

JSONFILES = [
{
'repository': 'pnbruckner/homeassistant-config',
'jsonfile': 'custom_components.json'
},
{
'repository': 'robmarkcole/Hue-sensors-HASS',
'jsonfile': 'custom_updater.json'
}
]

But there are other ways if you look in the /customjson/components/ dir you can see different implementations that give more granular control.

cards

look in the /customjson/cards/ dir to see different implementations


BuyMeCoffee