Skip to content

IA7 config settings file

hplato edited this page Sep 15, 2017 · 6 revisions

With Version 1.0.600 IA7 there is support for settings at a per object level. The file is called

ia7_config.json

Currently the following configuration settings are available for IA7 v1.6.100

NOTE: the file needs to be formatted correctly. Missing a bracket or comma will result in an incorrect configuration. Fortunately, MH will log to the print_log if the file is incorrect.

{ 
"prefs" : {
     "header_button" : "yes",            // Display the 'checking' button on the master header
     "state_log_show" : "yes",           // Display an object state log on the state modal dialog box
     "state_log_entries" : "4",          // Number of log entries to display
     "always_double_buttons" : "yes",    // Make all buttons the same size as the collection buttons
     "fp_icon_size" : "32",              // Default size for floorplan icons (32,48,64)
     "fp_state_popovers" : "yes",        // Floorplan Use 'popovers' for icon states instead of the modal dialog
     "substate_percentages" : "20",      // For items with 1-100%, what level to show on the modal dialog
     "disable_current_state" : "yes",    // By default, the current state is disabled on the modal dialog
     "audio_controls" : "no",            // 4.2, (no) show audio controls
     "notifications" : "yes",            // 4.2, (yes) enable notification system
     "speech_default_audio" : "no",      // 4.2, (no) what default notifications should be enabled
     "speech_default_banner" : "yes",    // 4.2, (yes) what default notifications should be enabled
     "floorplan_baseimg_dir" : "/ia7fp", // 5.0, location where floorplan base images are stored
     "floorplan_slider" : "yes",         // 5.0, (no) use a simple slider for floorplan numeric objects
     "state_slider" : "yes",             // 5.0, (yes) use a slider for numeric objects
     "static_tagline" : "no",            // 5.0, (yes) dynamically update
     "stat_refresh" : "120",             // 5.0, (60) update tagline and uptime every 120 seconds
     "rrd_refresh" : "30",               // 5.0, (60) update the rrd graphs every 30 seconds
     "tooltips" : "yes"                  // 5.0, (yes) show tooltips on buttons that has truncated text
     "show_errors" : "yes",              // 5.0, (yes) show the 'something_went_wrong' big red banner if an error occurs
     "use_cookies" : "yes",              // 5.0, (yes) use cookies to store speech and mode option preferences
     "show_weather" : "yes"              // 5.0, (yes) show dynamic weather on the top bar
     },
"state_colors" : {                       // 4.2, color override
     "male" : "default",
     "test" : "blue"
     },
"objects" : {
     "example_object" : {
  	 "disable_current_state" : "no"  // Allow the current state to be selected on the object
         }  	
    },
"clients" : {                         
     "127.0.0.1" : {
  	 "notifications" : "yes"         // 4.2, override settings on a client per IP basis
         }
     }
}
Clone this wiki locally