Skip to content

Dev Features

This section contains small setting options that the majority of users do not change or change very rarely and therefore saved the effort of creating an elaborate settings interface.

All features are only applied at boot. So you have to restart svitrix after modifying.

Create a dev.json in your filemanager.

JSON Properties

The JSON object has the following properties:

KeyTypeDescriptionDefault
hostnamestringChanges the hostname of your svitrix. This is used for App discovery, mDNS etc.uniqeID
ap_timeoutintegerThe timeout in seconds before SVITRIX switches to AP mode if the saved WLAN was not found.15
bootsoundstringUses a custom melodie while booting
matrixintegerChanges the matrix layout (0,1 or 2)0
color_correctionarray of intSets the colorcorrection of the matrix[255,255,255]
color_temperaturearray of intSets the colortemperature of the matrix[255,255,255]
rotate_screenbooleanRotates the screen upside downfalse
mirror_screenbooleanMirrors the screenfalse
temp_dec_placesintegerNumber of decimal places for temperature measurements0
sensor_readingbooleanEnables or disables the reading of the Temp&Hum sensortrue
temp_offsetfloatSets the offset for the internal temperature measurement-9
hum_offsetfloatSets the offset for the internal humidity measurement0
min_brightnessintegerSets minimum brightness level for the Autobrightness control2
max_brightnessintegerSets maximum brightness level for the Autobrightness control. On high levels, this could result in overheating!180
ldr_gammafloatAllows to set the gammacorrection of the brightness control3.0
ldr_factorfloatThis factor is calculated into the raw ldr value wich is 0-10231.0
min_batteryintegerCalibrates the minimum battery measurement by the given raw value. You will get that from the stats api475
max_batteryintegerCalibrates the maximum battery measurement by the given raw value. You will get that from the stats api665
ha_prefixstringSets the prefix for Homassistant discoveryhomeassistant
background_effectstringSets an effect as global background layer-
stats_intervalintegerSets the interval in milliseconds when svitrix should send its stats to HA and MQTT10000
debug_modebooleanEnables serial debug outputs.false
button_callbackstringhttp callback url for button presses.-
new_yearbooleanDisplays fireworks and plays a jingle at newyear.false
swap_buttonsbooleanSwaps the left and right hardware button.false
ldr_on_groundbooleanSets the LDR configuration to LDR-on-ground.false

Example:

json
{
  "temp_dec_places":1,
  "bootsound":true,
  "hum_offset":-2
}