This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
software:openmonica [2010/12/22 22:43] tjhoban |
software:openmonica [2011/10/26 06:37] 127.0.0.1 external edit |
||
---|---|---|---|
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** | ||
+ | |||
+ | 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. | ||
+ | |||
+ | |||
+ | |||
+ | ====== 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. | ||
+ | |||
+ | Currently the code is maintained at: http://code.google.com/p/open-monica/ | ||
+ | |||
+ | The pcfs_prod git repository contains the oMonica svn repository under AuscopeUtils/monitoring/oMonica. | ||
+ | A simple "svn status" should be enough to test whether there are any updates to "svn update". | ||
+ | Obviously it is suggested that oMonica not be updated casually, and that a careful migration process is followed. | ||
+ | |||
+ | svn is not installed on the pcfs?? machines. oMonica development work has been undertaken on ops-serv2 up to now. | ||
+ | |||
+ | **Building** | ||
+ | |||
+ | In order to build new oMonica .jar files, simply type "ant" in the oMonica directory. | ||
+ | This is necessary after _any_ change to files in the relevant configuration directory (config.ops-serv, config.pcfshb, config.pcfske, config.pcfsyg). | ||
+ | This ant procedure will generate several .jar files, one of which will be appropriate for the location you are building in. | ||
+ | There is no need to move the .jar files anywhere to run them. | ||
+ | |||
+ | **Running** | ||
To start or stop the server code, there should be a script which is invoked like: | To start or stop the server code, there should be a script which is invoked like: | ||
Line 10: | Line 53: | ||
To start a client simply run the script "omc.sh", which is in the ~oper directory on pcfshb. (you will need X forwarding, as it will wish to launch a window). | To start a client simply run the script "omc.sh", which is in the ~oper directory on pcfshb. (you will need X forwarding, as it will wish to launch a window). | ||
More details can be obtained by reading /usr2/AuscopeUtils/monitoring/oMonica/README.sh | More details can be obtained by reading /usr2/AuscopeUtils/monitoring/oMonica/README.sh | ||
+ | |||
+ | Note that you will have a much better experience if you run the client on a server which is "near" to you. So while in Sandy Bay, I would suggest running the ~observer/omc.sh script on ops-serv2. | ||
+ | |||
+ | The first popup relates to selecting a server to read information from. | ||
+ | |||
+ | Once a server has been selected, you will get a Monitor Display with with to view data. | ||
+ | Viewing modes can be accessed through the menu: Setup -> Add Panel -> select. | ||
+ | |||
+ | Two very popular options are Point Table (useful for seeing many points at once) and Time Series (useful for obtaining a historical perspective). |