pv2web_ro Package: read_config Module

read XML configuration file for pv2web_ro package

pv2web_ro.read_config.read_xml(xml_file)[source]

return the configuration details as a dictionary

Parameters:return – dictionary

At minimum, the dictionary should 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