Guralp Systems CMG-DCM build <10,000 User Manual

Page 238

Advertising
background image

Acquisition Modules and Platinum Firmware

Monitoring Operations

Clicking on 'Get data' performs out the selected query. If the selected format is
PNG, extra configurations options are available by clicking 'Configure graph

setup'.

14.4.3.1 Build CURL query

It is possible to schedule environmental data extraction using cron, the system
job-scheduler. When the job is scheduled, the data are extracted from the

server using a set of cURL instructions.

cURL is an open source project for transferring data from a server using a

command line. At a very basic level, all you need to do is type curl at the
command line followed by the output to retrieve. For example:

curl -output test.html www.example.com

would take the contents of the URL www.example.com and output it to the
filename test.html. There are a whole range of arguments you can insert

between the command and the URL. These are all explained in the cURL
manual, available at:

http://curl.haxx.se/docs/manual.html

When you click on 'Build CURL query', Platinum generates a cURL query
based on the options you have selected on the environmental log page. For

example:

curl --output eam3057-2011-03-13T12:40:30Z.txt \
--form-string output=txt \
--form-string start=2011-03-13T12:40:30Z \
--form-string end=2011-03-14T12:40:30Z \
--form-string value='Data Out power/power' \
--form-string value='Data Out power/voltage' \
--form-string action='Get data' \
--digest --user root:rootme \
http://eam3057/cgi-bin/envirolog.cgi

In this example, the device serial number is eam3057. The data are output as

text. The start and end times are 24 hours apart. There are two
environmental values selected. The username and password are set to the

system defaults.

Copying the generated code into ta erminal emulator connected to the EAM

will output the file in the same way that the 'Get data' button does on the
environmental log page.

If the cURL command is to be used for automated scheduled data extraction,
some editing is required. Contact Güralp Systems for assistance on how to

tailor the command for your specific requirements.

14.4.4 Extract MiniSEED records

The MiniSEED compressor, gdi2miniseed, uses a ring buffer to store
miniSEED records after conversion from GDI. The default size of the buffer is

MAN-EAM-0003

238

Issue E - February 2014

Advertising
This manual is related to the following products: