Skip to content

VigiCrues Binding ​

This binding allows you to get data regarding water flow and water height on major French rivers. These data are made public through OpenDataSoft website.

Supported Things ​

There is exactly one supported Thing type, which represents a river level measurement station. It is identified by the id.

To get your station id:

  1. open https://www.vigicrues.gouv.fr/

  2. Select your region on the France map

  3. Select the station nearest to your location

  4. In the 'Info Station' tab you'll get the id just near the station name (e.g. X9999999299)

Of course, you can add multiple Things, e.g. for getting measures for different locations.

Discovery ​

You can discover stations based upon the system location. Select Vigicrues binding and click scan in order to discover new stations. The first scan will proceed with stations located in a radius of 10 km. This radius will increase by 10 km at each new scan.

Binding Configuration ​

The binding has no configuration options, all configuration is done at Thing level.

Thing Configuration ​

The Thing has a few configuration parameters:

ParameterDescription
idId of the station.
refreshRefresh interval in minutes. Optional, the default value is 30 minutes.

Channels ​

Once created, at first initialization, the Thing will discover its capabilities (available data) using the webservices apis. Channels will be presented depending upon actual available data.

The VigiCrues information that retrieved are made available with these channels:

Channel IDItem TypeDescription
observation-timeDateTimeDate and time of measurement
flowNumber:VolumetricFlowRateVolume of water per time unit
heightNumber:LengthWater height of the river
relative-heightNumber:DimensionlessCurrent water level toward lowest historical flood
relative-flowNumber:DimensionlessCurrent water flow toward lowest historical flood
alert (*)NumberFlooding alert level of the portion related to the station
alert-iconImagePictogram associated to the alert level
short-commentStringDescription of the alert level
commentStringDetailed information regarding the ongoing event

(*) Each alert level is described by a color:

CodeColorDescription
0GreenNo particular vigilance
1YellowBe attentive to the flooding situation
2OrangeBe "very vigilant" in the concerned areas
3RedAbsolute vigilance required

Timeseries ​

Height and flow channel are exposed as timeseries channel. So you can graph historical value using a chart like this one:

doc/graphe.png

yaml
config:
  label: Vigicrues Graphes
  sidebar: true
slots:
  grid:
    - component: oh-chart-grid
      config: {}
  xAxis:
    - component: oh-time-axis
      config:
        gridIndex: 0
  yAxis:
    - component: oh-value-axis
      config:
        gridIndex: 0
        min: "0"
        max: "10"
        name: Height
    - component: oh-value-axis
      config:
        gridIndex: 0
        name: Flow
        min: "0"
        max: "2000"
  series:
    - component: oh-time-series
      config:
        name: Height
        gridIndex: 0
        xAxisIndex: 0
        yAxisIndex: 0
        type: line
        item: Vigicrue_Austerlitz_Height
        markers:
          - avg
          - min
          - max
          - time
        service: influxdb
    - component: oh-time-series
      config:
        name: Flow
        gridIndex: 0
        xAxisIndex: 0
        yAxisIndex: 1
        type: line
        item: Vigicrue_Austerlitz_Flow
        service: influxdb

Full Example ​

vigicrues.things:

dsl
Thing vigicrues:station:poissy "Station Poissy" @ "VigiCrues" [id="H300000201", refresh=30]
Thing vigicrues:station:vernon "Station Vernon" @ "VigiCrues" [id="H320000104", refresh=30]

vigicrues.items:

dsl
Group gVigiCrues "VigiCrues" <flow>
    Number:Length VC_hauteur "Hauteur Eau Poissy [%.2f %unit%]"  <none> (gVigiCrues) {channel="vigicrues:station:poissy:height"}
    Number:VolumetricFlowRate VC_debit "Débit Eau Poissy [%.2f %unit%]" <flow> (gVigiCrues) {channel="vigicrues:station:poissy:flow"}
    DateTime VC_ObservationPTS "Timestamp [%1$tH:%1$tM]" <time> (gVigiCrues) {channel="vigicrues:station:poissy:observation-time" }

vigicrues.sitemap:

dsl
sitemap vigicrues label="VigiCrues" {
    Frame {
        Default item=VC_hauteur
        Default item=VC_debit
        Default item=VC_ObservationPTS
    }
}