-
the best way (updatable, supporting the install script from https://scriptdu.de (very recommended)):
- the script has a configuration mechanism that saves all configurations (in the Configuration class) to iCloud persistently
- this means the configuration you make can be reused once you install a newer version of this script
- following variables exist in the configuration:
- three variables controll this mechanism:
- configurationFileName = 'purple.json' // change this to an own name e.g. 'configBlack.json' . This name can then be given as a widget parameter in the form 'USE_CONFIG:yourfilename.json' so you don't loose your preferred configuration across script updates (but you will loose it if i have to change the configuration format)
- usePersistedConfiguration = true; // false would mean to use the visible configuration below; true means the state saved in iCloud (or locally) will be used
- overwritePersistedConfig = false; // if you like your configuration, run the script ONCE with this param to true, then it is saved and can be used via 'USE_CONFIG:yourfilename.json' in widget params
- so basically what you need to do is:
- choose a configurationFileName (must end with '.json')
- set overwritePersistedConfig to true
- configure every configuration-variable exactly as you want (including the CREDENTIALS and the URL!)
- run the script once (this creates a json file in icloud, you can always delete it to start from scratch)
- set overwritePersistedConfig to false
- set the widget up with a single parameter in the format 'USE_CONFIG:yourfilename.json'
- as long as overwritePersistedConfig is false, any change to the config won't take any effect because the persisted one is used if usePersistedConfiguration is true
-
another updatable way (but configuration is lost):
- set the widget up with parameter in the format \,,\,,\
- a valid real example: "admin,,mypassword123,,http://192.168.178.33:8581"
- if you have authentication set to non in UI-X then just provide any char. Valid would be e.g. "x,,x,,http://192.168.178.33:8581"
- maybe you need to set usePersistedConfiguration in the config to false to use this older way
- screenshot of an example when setting it up:
-
hard coded way in the script (not recommended): you need to configure
- the URL of the system running the Homebridge Config UI X (the hb-service), including the port e.g. http://192.168.178.33:8581
- username of the administrator of the homebridge-config-ui-x instance (not the actual linux user)
- password of the administrator of the homebridge-config-ui-x instance
- the residual parameter can be tweaked a bit for your needs
- e.g. fileManagerMode, must be set to LOCAL if you do not use iCloud Drive. Default is ICLOUD
- e.g. the systemGuiName, the name of your system running the Homebridge Config UI X (the hb-service)
- e.g. the timeout could be increased if your system does not respond within 2 second
- e.g. set the temperatureUnitConfig to 'FAHRENHEIT' to use °F instead of °C
-
if your homebridge-config-ui-x instance is not reached within the specified timeout (currently 2sec) the following screen is shown: