User Tools

Site Tools


software:openmonica

This wiki is not maintained! Do not use this when setting up AuScope experiments!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:openmonica [2011/03/23 04:52]
tjhoban
software:openmonica [2020/07/13 01:52] (current)
Warren Hankey
Line 1: Line 1:
 +====== Open MoniCA ======
 +
 +At each Auscope observatory we run the openMoniCA software, as maintained by the ATNF. More can be found out about it at http://​code.google.com/​p/​open-monica/​. We use the latest version, which has the ability to control data points it knows about. This version can be found under AuscopeUtils/​monitoring/​openMonica2. This has not yet been migrated to git.
 +
 +**Configuration and Building**
 +(ON WHICH COMPUTERS DOES SERVER RUN? One on each pcfs machine (also newsmerd, sille and hobart)?\\
 +Configuration of MoniCA is done by editing the files in the config directory under openMonica2. After configuration,​ you need to build the server using the '​ant'​ command, and then rerun MoniCA. The easiest way to do this is with the system service Monica.monica:​
 +
 +ie. to start MoniCA server /​etc/​init.d/​Monica.monica start
 +
 +Currently, each site is configured very similarly, except for some differences which we will list below.
 +
 +The MoniCA server listens to a number of daemons that run on the machine. These are:
 +  * antmon: this queries the antenna state regularly and rapidly. It is controlled by the service Monica.antmon,​ and this creates a socket server listening on port 60000, which MoniCA connects to.
 +  * Rxmon: communicates with the receiver electronics and can list or change the state of the RF switches. It is controlled by the service Monica.Rxmon and this creates a socket server listening on port 60001, which MoniCA connects to.
 +  * IFBox: communicates with the IF Box, and can list or change the state of the attenuator levels and CALs. It is controlled by the service Monica.IFBox and this creates a socket server listening on port 60002, which MoniCA connects to.
 +  * GPIB: communicates to various GPIB devices, allowing monitoring and control of devices like the tick offset counters, and the reference oscillators. It is controlled by the service Monica.gpib and this creates a socket server listening on port 60006, which MoniCA connects to.
 +  * wthke: (only at Katherine) parses a website that describes the weather conditions at the Katherine site. It is controlled by the service Monica.gpib and this creates a socket server listening on port 60007, which MoniCA connects to.
 +  * weather: communicates with the anemometer at each site, allowing monitoring of wind speed and direction, and wind stow triggers. It is controlled by the service Monica.weather and this creates a socket server listening on port 6008, which MoniCA connects to.
 +
 +At Hobart, MoniCA also connects to the MET3 sensor in the same way as the field system, and the site temperature,​ pressure and humidity comes from that sensor.
 +
 +**Updating monitor points**
 +If the response from a monitor point changes (e.g, if additional variables are returned) Monica will ignore these until it is recompiled with the correct monitor-points.txt settings. For the servers (pcfshb, etc), the relevant file is ''/​usr2/​AuscopeUtils/​monitoring/​openMonica2/​config/​monitor-points.txt''​. The format of the lines is fairly clear (described in detail [[http://​code.google.com/​p/​open-monica/​wiki/​MonitorPointsFileFormat|here]]). For additional returned variables, use the current configuration as a guide. Once the ''​monitor-points.txt''​ file is correct, run the follwing commands to generate a new open-monica.jar file
 +
 +''/​etc/​init.d/​Monica.monica stop''​\\
 +''​cd /​usr2/​AuscopeUtils/​monitoring/​openMonica2/''​\\
 +''​ant''​
 +
 +If there are no reported errors, restart the monica server with ''/​etc/​init.d/​Monica.monica start''​. From here on, the new variables will be logged into the Monica database.  ​
 +
 +To be able to monitor the new variables, you will also need to edit the monitor points on ops-serv2. The relevant file on ops-serv2 is ''/​usr2/​AuscopeUtils/​monitoring/​oMonica/​config.pcfshb/​monitor-points.txt''​. Stop any processes using open-monica.jar & rebuild it with 
 +
 +''​cd /​usr2/​AuscopeUtils/​monitoring/​oMonica/''​\\
 +''​ant''​
 +
 +It should rebuild 4 jar files and exit cleanly. Start the Monica client & check that you can monitor the new variables. ​
 +====== Below this line is the old information ======
 +
 ====== Open MoniCA ====== ====== Open MoniCA ======
 Documentation for the "open MoniCA"​ software, as maintained by the ATNF. Documentation for the "open MoniCA"​ software, as maintained by the ATNF.
/home/www/auscope/opswiki/data/attic/software/openmonica.1300855976.txt.gz · Last modified: 2011/10/26 06:37 (external edit)