pvWebMonitor Package: pvwatch Module

pvWebMonitor.pvwatch

exception pvWebMonitor.pvwatch.CouldNotParseXml[source]

Bases: exceptions.Exception

Could not parse XML file

exception pvWebMonitor.pvwatch.PvNotRegistered[source]

Bases: exceptions.Exception

pv not in pvdb

class pvWebMonitor.pvwatch.PvWatch(configuration)[source]

Bases: object

Core function of the pvWebMonitor package

To call this code, first define configuration=dict() with terms as defined in read_config.read_xml(), then statements such as:

1
2
 watcher = PvWatch(configuration)
 watcher.start()
EPICS_monitor_receiver(*args, **kws)[source]

Response to an EPICS (PyEpics) monitor on the channel

add_file_pattern(pattern)[source]

add pattern as an additional file extension pattern

Any file with extension matching any of the patterns in self.upload_patterns will copied to the WWW directory, if they are newer.

add_pv(mne, pv, desc, fmt, as_string)[source]

Connect to a EPICS (PyEpics) process variable

buildReport()[source]

build the report

get_pvlist()[source]

get the PVs from the XML file

report()[source]

write the values out to files

The values of the monitored EPICS PVs (the “raw data”) is written to an XML file. This file is then used with one or more XSLT stylesheets to create HTML pages. An overall “home page” (index.html) is created to provide a table of contents of this static web site.

start()[source]

begin receiving PV updates and posting new web content

update_pvdb(pv, raw_value)[source]

log PV value to the cache in pvdb

Parameters:
  • pv (str) – name of EPICS PV
  • raw_value (obj) – could be str, float, int, or …