![image alt <](CODE/icons/ipgp/logo_WebObs_C110.png) 

WebObs is an integrated web-based system for data monitoring and networks management. Seismological and volcanological observatories have common needs and often common practical problems for multi disciplinary data monitoring applications. In fact, access to integrated data in real-time and estimation of uncertainties are keys for an efficient interpretation, but instruments variety, heterogeneity of data sampling and acquisition systems lead to difficulties that may hinder crisis management. In the Guadeloupe observatory, we have developed in the last 15 years an operational system that attempts to answer the questions in the context of a pluri-instrumental observatory. Based on a single computer server, open source scripts (with few binaries) and a Web interface, the system proposes:
 
- an extended database for networks management, stations and sensors (maps, station file with log history, technical characteristics, meta-data, photos and associated documents);	
- a web-form interfaces for manual data input/editing and export (like geochemical analysis, some of the deformation measurements, ...);
- routine data processing with dedicated automatic scripts for each technique, production of validated data outputs, static graphs on preset moving time intervals, possible e-mail alarms, sensors and station status based on data validity;	
- in the special case of seismology, a multichannel continuous stripchart associated with EarthWorm/SeisComP acquisition chain, event classification database, automatic shakemap reports, regional catalog with associated hypocenter maps. 	


## Present state and availability

WebObs is presently fully functional and used in a dozen observatories, but the documentation is mostly incomplete. We hope to shortly finish the main user's manual. If you are in a hurry, please contact the project coordinator and we will be happy to help you to install it. 	

## Installation / upgrading	

 To run WebObs you need to install the package which contains a setup script that will set all configuration files. Installing WebObs is not a classical compilation from sources with 'make'. A part of it requires the free Matlab runtime library, because package contains some compiled binaries.	

 Download the latest package file and runtime at [WebObs page](http://www.ipgp.fr/~beaudu/webobs.html).	


### A) Installing WebObs \<version\> from its WebObs-\<version\>.tgz	

You create/choose your WebObs directory within which you will execute the setup process. We suggest /opt/webobs. This directory will contain both	
WebObs code AND WebObs data, and will be the DocumentRoot of the WebObs Apache's Virtual Host.	

setup will prompt you for a Linux WebObs userid (aka WebObs Owner) that it will create. The WebObs userid's group will also be added to Apache's user. See the WebObs user manual if you need to create your own WebObs owner. 	

The system-wide /etc/webobs.d symbolic link will identify your WebObs 'active' (production) installation.	

WebObs comes with pre-defined configuration files and pre-defined data objects as a starting point and for demonstration purposes.	

#### Prerequisities	

Graph processes need Matlab compiler runtime 2011b. Download the installer adapted to your architecture in the WebObs directory, the setup will install it during the C) procedure. Or, place it in any local directory then run:	
 
```sh
unzip MCR_<version>_installer.zip	
sudo ./install -mode silent	
```	

A number of programs and Perl modules are needed to run webobs. During the C) installation procedure, setup will list the missing dependencies that must be installed. Under Debian/Ubuntu, you might install them using the following packages:	

```sh
sudo apt-get install apache2 apache2-utils sqlite3 imagemagick mutt xvfb \
   curl gawk graphviz net-tools libdatetime-perl libdate-calc-perl \
   libcgi-session-perl libdbd-sqlite3-perl libgraphviz-perl libimage-info-perl \
   libtext-multimarkdown-perl libswitch-perl libintl-perl
```

Compiled binaries are using some ISO-8859-1 encoding characters... to get correct display you might install some additional locale. Uncomment `FR_FR ISO-8859-1` and `en_US ISO-8859-1` lines in `/etc/locale.gen`, then:

```sh
sudo locale-gen fr_FR en_US
```	

Also you need to activate CGI module for Apache:

```sh
sudo a2enmod cgid
```	

### B) Upgrading WebObs \<version\> from its WebObs-\<version\>.tgz

The setup process is also used for upgrading an already installed WebObs.

`setup`, when 'upgrading' will activate new WebObs code AND only report the data/configuration differences that it can detect between your customized installation and what the new version would installed from scratch.

It is recommended to stop any WebObs-related processes before upgrading.

Configuration files will be updaded and displayed/editabled at the end of the upgrade process to help you apply required changes to configuration/data.


### C) Procedure (for both A) and B) above)

With root privileges, in your target WebObs directory:

1. execute  `tar xf WebObs-<version>.tar.gz`
2. execute  `WebObs-<version>/SETUP/setup`
3. (re)start Apache
4. launch the scheduler and postboard

For Debian/Ubuntu users, here is a way to install permanently active scheduler and postboard:	

```sh
sudo cp /opt/webobs/WebObs-<version>/SETUP/systemd/wo* /etc/systemd/system/
sudo systemctl enable woscheduler.service
sudo systemctl enable wopostboard.service
sudo systemctl start woscheduler.service
sudo systemctl start wopostboard.service
```

### D) Improving basemap database (optional)

WebObs is distributed with ETOPO5 worldwide topographic data, and will automatically download SRTM data for detailed maps. To improve large scale maps resolution, you can download ETOPO1:
 
```sh
curl https://www.ngdc.noaa.gov/mgg/global/relief/ETOPO1/data/bedrock/grid_registered/binary/etopo1_bed_g_i2.zip -o /tmp/etopo.zip
unzip -d /etc/webobs.d/../DATA/DEM/ETOPO /tmp/etopo.zip
```	

and update the ETOPO parameters in the `/etc/webobs.d/WEBOBS.rc` file with the lines:

```	
ETOPO_NAME|etopo1_bed_g_i2	
ETOPO_COPYRIGHT|DEM: ETOPO1 NGDC/NOOA
```	

## Authors	

### Project coordination	
* **François Beauducel** - *Project designer and supervisor* - [beaudu](https://github.com/beaudu) - beauducel@ipgp.fr
* **Didier Lafon** - *Software development* - lafon@ipgp.fr

### Contributors	

* **Xavier Béguin** - [XavierBeguin](https://github.com/XavierBeguin) - beguin@ipgp.fr
* **Patrice Boissier** - [PBoissier](https://github.com/PBoissier) - boissier@ipgp.fr	
* **Alexis Bosson** - bosson@ipgp.fr	
* **Didier Mallarino**	
* **Jean-Marie Saurel** - [ovsm-dev](https://github.com/ovsm-dev) - [jmsaurel](https://github.com/jmsaurel) - saurel@ipgp.fr

See also the list of active [contributors](https://github.com/IPGP/webobs/contributors).	

## References	

* Beauducel, F. (2006). Operational monitoring of French volcanoes: Recent advances in Guadeloupe. _Géosciences, Editions BRGM_, n°4, p 64-68, 2006. [Abstract](http://www.ipgp.fr/~beaudu/2006_Beauducel_Geosciences.html)	
* F. Beauducel, A. Bosson, F. Randriamora, C. Anténor-Habazac, A. Lemarchand, J-M Saurel, A. Nercessian, M-P Bouin, J-B de Chabalier, V. Clouard (2010). Recent advances in the Lesser Antilles observatories - Part 2 - WEBOBS: an integrated web-based system for monitoring and networks management. _Paper presented at European Geosciences Union General Assembly, Vienna, 2-7 May 2010._ [Abstract](http://www.ipgp.fr/~beaudu/2010_Beauducel_EGU.html)	

## Copyright	

WebObs - 2012-2019 - Institut de Physique du Globe Paris

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program.  If not, see <http://www.gnu.org/licenses/>.	

----------------------------------------------------------------------------------------------------
Commit logs for WebObs 2.1.3f:

commit 8d7e4d227594f2db9d887af55d625a4028be2464

    last updated for 2.1.3f release

commit 6b6da7bfaefcf08deaec6169bb0780831e22a55d

    improves gnss superproc MODELLING graph
    depending on MODELLING_PLOTBEST and MODELLING_SIGMAS
    - ON: plot and displays best parameter values ± uncertainty
    - OFF: no plot and displays parameter intervals

commit d154b416ef3efe30332f175f04ac6571055626b7

    mc3..pl: modify Events bulletin CSV export format
    Former column "Valid" (0 or 1) is replaced by SC3 information:
    - LocMode: "manual", "automatic" + optional "(confirmed)"
    - LocType: event type ("earthquake", "not locatable", ...)

commit c137cd6f7ad378c9456ae82e35588a9bce800ee7

    new checkbox to hide/display trash events in sefran3 thumbnails

commit d0d58a335970fa6f01430ce599d18dcf0948bb9d

    corrects pdoc in mc3.pl

commit 5af0420d5169e91c8e42d5020606a754ba042e37

    Fix event photo src and href in WebObs::Events
    
    The WebObs::Events::photoStrip subroutine was using '../NODES' as a URI
    in src and href, therefore breaking image display and link in the photos
    of node events (at least if URN_NODES is not /NODES).
    
    The same issue was recently fixed in formUPLOAD.pl by 4d0eebd (related
    to issue #28).

commit 4724ed1928c4087527374b9da905561f160529cd

    Fix compatibility with perl DBI version <= 1.635
    
    Avoid the use of the method $dbh->selectall_array() in order to support
    systems using DBI version older than 1.635, as this convenience method
    was only introduced with this release (on April 2016).

commit 39fe9ab9d4098ff015a42d3a948de763fb0beb00

    update doc and release notes for 2.1.3e

commit 7f8bc3eafc41930828ab896199de30b85a0e8d58

    updates doc for new release 2.1.3e

commit 70b6eb91c726658729580aba727aefb0fcae78b4

    Improve error handling in postCLB.pl
    
    Changed readCfg to have it return an empty array, hash, or undef scalar
    if called with and undef argument, or when reading an empty file.
    
    This allows postCLB.pl to now correctly handle readCfg return value, but
    we had to exit the script in case of error to avoid emptying the
    calibration file.

commit f32454512077e1f83b2a8460629ac47081dda7dc

    Typo correction

commit 6a401b988bdc9c62a791fed6b53aac09dd7d815c

    fix issue #29

commit 0a90563c8aff01a99f5ccf5a33bd32e9fcf29cca

    REGISTRATION_LOGFILE was using non existent ROOT_DATA_DB variable

commit 4d0eebd69aae6e0521cb825952f8c7d82472a69f

    Fix photo src and href in formUPLOAD.pl
    
    formUPLOAD.pl was using '../NODES' as a URI in src and href, therefore
    breaking image display and link (at least if URN_NODES is not /NODES).
    
    This should fix #28.

commit f32923744ac6c0d82ad52e751caf8f15931f9db7

    add a default job in scheduler to cleanup temporary directories

commit a8049ee505fabfed937cbfc542a381f2e04bf074

    Fix format of the release notes
    
    Fix openings of code blocks that where not correctly intrepreted in the
    HTML conversion on github.

commit 61b1930d4137e419015c5c6204340338235427e1

    Add support for sqlite3 < 3.16.0 in database schema comparison
    
    The 'cmpsql' script now also works with sqlite3 version < 3.16.0.
    (This script is used by 'setup' to compare the schemas of an existing
    and a temporary new sqlite3 database and warns the admin about any
    discrepancy.)

commit f16f0ba3fc19c5fcaf9a370e5de082c13716c287

    adds option to GipsyX process to handle Glonass new satellite numbers

commit 781ae474cadc75297780740f92b5d1cd94fdd2e4

    fix issues when creating new GRID or deleting a GRID

commit d3f42126d142b68b40302938b970e40e01c0e49a

    tentative fix for readfmtdata_mc3 fdsnws format issue

commit 6d48b7ca806a03d9f52e3d3f7bf7885f62176bd2

    update doc for new pack 2.1.3c

commit 0b94049e8fc7f357a53b58d93d281dd5c122414b

    update user manual and release notes for release 2.1.3b

commit d7c824af76f451ee003b2dc2faf2836078df8eb8

    additionnal subfunction to plot basic tables in graphs

commit eb16afa8f3301d23b82e41e865e0de592bb964e7

    better temporary path definition for Sefran3

commit 89c7d7a213c117c2ac0048cda7127412fcb4c6ee

    syntax update in superproc gnss

commit 7523104b57f9e9a0a38a80f7e2106fdd675a4583

    fix a minor issue with timestamp in mkgraph.m

commit 929e9789f9e18ae837f06879f5fbeb03e01927d4

    Revert change of temporary directory
    
    Reverted PATH_TMP_WEBOBS to PATH_TMP, as I wrongly thought it was the
    variable taken from WEBOBS.rc: here we use configuration from the
    SEFRAN3 configuration file, where it's indeed PATH_TMP. My bad.

commit 1f1ed8b557084f87edb0202aedaef8722f37b232

    fix issue #27 in sefran3.js (check event seconds)

commit 9a80f53e8e4100f9cf4decbb9dbc68dec189a368

    modifying download orbit so that it downloads orbit ultra each time in case new files are available during the day (only the missing files will be downloaded)

commit 4fd3d5f21bc930c3a583eebf93cd95c0b1cc09f5

    adding realtime processing option

commit b369c0e30b7893956718960445eb8eaeeb209e2b

    Better handling of 'lastevent' to display the latest b3
    
    When using the 'lastevent' value to show the B3 of the latest event,
    showOUTG.pl was not displaying the date correctly on the page.
    
    This commit slightly change the way showOUTG.pl handles this 'lastevent'
    case.
    
    As a reminder, using 'g=lastevent' will still show all the B3 reports of
    the latest event (or the B3 itself if there is only one, as usual).
      e.g.: /cgi-bin/showOUTG.pl?grid=PROC.MY_B3_PROC&ts=events&g=lastevent
    and using 'g=lastevent/b3' will force the correct display of the very
    last B3 :
      e.g.: /cgi-bin/showOUTG.pl?grid=PROC.MY_B3_PROC&ts=events&g=lastevent/b3
    (this was previously possible using 'g=lastevent////b3', which still works)

commit 8fa2ffe0639c8fe2a05efc3ec7144fd87514ae42

    fix an issue with smartplot.m (introduced in last commit)

commit cabe922eb78d22f4462a2c5735045736add0f8f0

    Typo fix

commit aaf9f2ef515b098e85074e938cba3a13bde6162d

    fix a minor issue in smartplot.m

commit 298c0bce71e600839f1a74f45f6d07b9543948d6

    some minor modifications on gnss_run_gipsyx and gnss_run_gipsyx.rc template

commit 995e5f4eddb1902bd6ef3a43a8507ac92cb4852f

    updates user manual for next release 2.1.3a

commit 157baf4e04c01354abda7ca5a1376a9356e2d86b

    more improvements for multiple sources in gnss superproc

commit a4f9a2ed773a46b8e4586670c8dcaafeb97b9a49

    minor improvement and verbosity of gnss shells

commit 329529612792fe51ccd5796b7538703e30139599

    bug fix in split.m for cell of string use

commit bbebbf3f470f18d4a078142e3ff5f65b75dfd217

    correction of an error left on previous commit

commit 1979bae562fbdb8de82b57ba128ac5876feb6b68

    adding the local orbit option, uploading the download_orbit script

commit f85ac8a72c8b7bf1cf433a1391e533f3ddce6e8c

    prepares gnss_run_gipsyx.rc template for next commit

commit 32374213e37be3f055ff29980530b9339e192356

    Re-add index and trigger comparison in cmpsql
    
    The new comparison method based on SQLite pragmas forgot to check
    indexes and triggers. This commit re-introduces these comparisons, based
    on pragmas.

commit d50b393e82b96a93ec7b64ca34a184251a6cb07c

    Improve reliability of database schema comparison
    
    Use SQLite table_info pragma instead of ".schema" to improve the
    reliability of schema comparison, as the output of ".schema" may differ
    for equivalent schemas.

commit cd750ec0652d1165e7932f7594b39459c86460d6

    Use a random directory name for database schema comparison in setup
    
    Use a random name for the temporary directory used by cmpsql to compare
    the database schemas to avoid deleting an existing directory.

commit b32234931437795fbb9fc62ab77572dc89fa717b

    adding lockfile option

commit d3202a0e471a7fb3c015fedf34a3f7bf55d50503

    adding the -d and -s options

commit ec5d28c40a5dcf4562ca132540c2b2576d61bc98

    update release notes for v2.1.3 publication

----------------------------------------------------------------------------------------------------
