pvWebMonitor Package: read_config Module

read XML configuration file for pvWebMonitor package

pvWebMonitor.read_config.patterns_1_0(*args)[source]

config_1_0 relies on a pre-defined list of file match patterns

pvWebMonitor.read_config.patterns_1_0_1(*args)[source]

config_1_0_1 uses a user-defined list of file match patterns

pvWebMonitor.read_config.read_xml(xml_file)[source]

return the configuration details as a dictionary

Parameters:return – dictionary

the dictionary WILL contain these definitions for use by pvwatch.PvWatch():

dictionary key example (type) description
PVLIST_FILE pvlist.xml PVs to be monitored
LOCAL_WWW_LIVEDATA_DIR ./localwww absolute path to local directory with “web site”
LOG_INTERVAL_S 300 (float) writing messages to log file
REPORT_INTERVAL_S 10 (float) updates to HTML pages
SLEEP_INTERVAL_S 0.1 (float) sleeps at end of main loop
MAINLOOP_COUNTER_TRIGGER 10000 (int) another logging message interval
PATTERNS *.html upload all files that match these patterns