This is an old revision of the document!
Table of Contents
Eubrewnetuser’s manual
1. Setup and data sending
Each Brewer spectrophotometer communicates with a local PC where the raw data are recorded. For uploading the raw data from the client PC to the Eubrewnet database a set of routines written in python has to be installed on the local PC (or any other computer which has access to the Brewer raw data). When these routines are executed the local (client) PC is connected to the Eubrewnet server. Then, the local brewer files and all relative information (file size, modification date etc.) are listed and compared to the corresponding information for the files that have been already stored in the server. Only the files which are either new or have changed, are transferred from the former to the later. This process is repeated in regular time intervals (prefferably ~15 mins). In sections 1.1 - 1.4, the software installation and application processes are analytically described. A fast installation guide is available in section 1.5.
1.1. Software installation
Before the installation of the software the operator has to communicate with the administrator(eubrewnet@aemet.es) and ensure that his Brewer has been included in theEubrewnet Brewer list. Then, there are two possible methods to install the client software:
1st method(recommended): Install the python interpreter and download the python client
For Windows and Mac, Python 2.7 is recommended while for Linux, the Python Version should come bundled with the Linux distribution. Below is a list of the appropriate interpreters for Windows and Mac.
● Python 2.7 Windows x86 MSI Installer (Windows binary)
● Python 2.7 Windows X86-64 MSI Installer(Windows AMD64 / Intel 64 /X86-64 binary)
● Python 2.7 Mac OS X 64-bit/32-bit x86-64/i386 Installer (for Mac OS X 10.5 and later, if needed)
● Python 2.7 Mac OS X 32-bit i386/PPC Installer(for Mac OS X 10.3 and later, if needed)
● Linux Version should come bundled with your Linux distribution.
You have to be sure that your python interpreter is callable from every path in your system (Open a console and try python, exit() for exit).
Then, client_python.zipshould be downloaded and uncompressed in the system.
2nd method(not fully tested): Download the exe client
In this case, the client_exe.zipshould be downloaded and uncompressed in the client PC system. After unzipping the compressed folder, try:
>python refresh.py -b 086 -i c:\brewer086\data
Though, it is preferable to specify the Brewer id and the input path (as well as any other parameters) in the client.ini file instead of using the -b and -i commands.
As already described, most of the refresh.py options may be configured though command line arguments or client.ini configuration file. Any option specified in command line overrides the option in client.ini. All options are shown when the the command “
./refresh.py -h
Usage: refresh.py [options]
Options:
-h, –help show this help message and exit
-i FILE, –input=FILE
File to process. If the given file is a directory, all
files within will be processed.
-s SERVERS, –servers=SERVERS
Comma separated list of xmlrpc server aliases
-b BREWERID, –brewerid=BREWERID
Brewerid of file/s to process
-c FILE, –config=FILE
Configuration file path
-v, –verbose Verbosity level. The more '-v' the more verbose is the
program.
|
The mandatory options are:
● working_dir :This option must be specified in client.ini. It defines the directory where the local refresh database is stored.
● input: Defines the file which will be processed. If a directory is defined, then all files in the particular directory will be processed.
● brewerid : Brewer identifier.
● servers**: Comma separated list of server aliases. The files are sent to each server in this list.