MeteoIODoc 20241221.207bde49

Format

This plugin reads meteorological data from DBO via the RESTful web service. To compile the plugin you need to have the CURL library with its headers present.

Warning
This plugin is for SLF's internal use only!

You can have a look at the stations that are available through this web service on this map. Please keep in mind that some stations might be overlaid on top of each other and will require you to zoom in quite a lot in order to differentiate them!

Keywords

This plugin uses the following keywords:

  • DBO_URL: The URL of the RESTful web service (default: https://pgdata.int.slf.ch)
  • DBO_PROXY: The URL of a SOCKS5 proxy for the connection to go through (optional, specified as {host}:{port} such as localhost:8080, see this for more)
  • STATION#: station code for the given station, prefixed by the network it belongs ot (for example: IMIS::SLF2, by default the network is assumed to be IMIS)
  • DBO_TIMEOUT: timeout (in seconds) for the connection to the server (default: 60s)
  • DBO_DEBUG: print the full requests/answers from the server when something does not work as expected (default: false)
METEO = DBO
STATION1 = WFJ2
STATION2 = SMN::*WFJ1

Picojson

This plugin relies on an embedded version of picojson for reading and parsing JSON data. Picojson is released under a 2-Clause BSD License. Please find here below the full license agreement for picojson:

Copyright 2009-2010 Cybozu Labs, Inc.
Copyright 2011-2014 Kazuho Oku
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.