Difference between pages "Stations/de" and "Add-On Services"

From meteoplug
(Difference between pages)
Jump to: navigation, search
 
 
Line 1: Line 1:
<languages /><br />Meteobridge unterstützt eine breite Palette an Wetterstationen, die von Einsteigermodellen bis hin zu semiprofessionellen Station van Davis, Rainwise oder PeetBros reicht.   
+
__NOTOC__
 +
<languages /><translate>
 +
<br />Web server of Meteobridge client, which presents web interface for adminstration to you, can also deliver weather data. There are two URLs defined that can be polled to get most recent sensor data in XML or plain text. Although we don't recommend this for security reasons, you can make that URLs accessible from the Internet by configuring your router appropriately. However, when you want to bring sensor data to one of your own servers in the Internet we recommend to make use of Meteobridge's [[Push Services]], which will not need you to open up your firewall.
 +
   
 +
===Live Data as XML=== <!--T:1-->
 +
By sending the meteobridge a HTTP request like "http://ip-of-meteobridge/cgi-bin/livedataxml.cgi" (where "ip-of-meteobridge" must be replaced by the IP itself) meteobridge returns current weather data in XML notation. Each reply starts witch tag <logger> and ends with </logger> with the sensor data as records with sensor specific tags "THB", "TH", "WIND", "RAIN", "UV", "SOLAR". Example below illustrates the XML format:
  
{| style="background:none" border="1" cellpadding="5" cellspacing="0"
+
<!--T:2-->
|+ align="bottom"|''supported weather stations''
+
<pre><logger>
!colspan="2"|Wetterstation
+
  <THB date="20121227224318" id="thb0" temp="26.0" hum="37" dew="10.2"  
! Beschreibung
+
      press="1008.8" seapress="1010.1" fc="2"/>
|-
+
  <TH date="20130104141909" id="th0" temp="9.1" hum="95" dew="8.3"/>
|<center>[[File:vantage.png]]</center>
+
  <RAIN date="20130104141856" id="rain0" rate="0.0" total="3.0" delta="0.0"/>
|'''Davis''' Vantage Pro2, Pro1 (ausgenommen Firmware A) (*)
+
  <WIND date="20130104141916" id="wind0" dir="109" gust="0.9" wind="2.2" chill="9.1"/>
|Vantage Pro mit Sensoren für Wind, Regen, Luftdruck, UV, Solarstrahlung, Innentemperatur, Außentemperatur. Um die Davis-Stationen mit der Meteobridge zu verbinden, ist ein Davis-Datenlogger (seriell oder USB) erforderlich. Wenn ein serieller Logger verwendet wird, muss dieser auf die Baudrate 19.200 eingestellt werden und man benötigt einen RS232-USB-Konverter mit einem Prolific pl2303 oder FTDI Chipsatz. Dier interne Speicher des Davis Datenloggers wird nicht verwendet.
+
</logger></pre>
|-
+
|<center>[[File:vue.png]]</center>
+
|'''Davis''' Vantage Vue (*)
+
|Vantage Vue mit Sensoren für Wind, Regen, Luftdruck, Innentemperatur, Außentemperatur. Um die Davis-Stationen mit der Meteobridge zu verbinden, ist ein Davis-Datenlogger (seriell oder USB) erforderlich. Wenn ein serieller Logger verwendet wird, muss dieser auf die Baudrate 19.200 eingestellt werden und man benötigt einen RS232-USB-Konverter mit einem Prolific pl2303 oder FTDI Chipsatz. Dier interne Speicher des Davis Datenloggers wird nicht verwendet.
+
|-
+
|<center>[[File:wmr928.png]]</center>
+
|'''Oregon''' WMR968 (US), WMR928 (EU)
+
|Dieses Modell benötigt einen RS232-USB-Konverter (mit einem FTDI oder Prolific pl2303 Chipsatz), um an die Meteobridge angeschlossen werden zu können. UV und Solarstrahlung werden von dieser Station nicht gemessen.
+
|-
+
|<center>[[File:wmr200.png]]</center>
+
|'''Oregon''' WMR200 *
+
|Dieses Modell kann per USB mit der Meteobridge verbunden werden (bei TP-Link Routern mit einem zwischengeschalteten USB 2.0 Hub). Der interne Datenlogger der WMR-200 wird nicht verwendet. Die WMR200 zeigt Probleme beim Berichten der aktuellen Wetterdaten, wenn der interne Datenlogger gefüllt ist. Daher wird empfohlen , dass Datenaufzeichnungsintervall des internen Datenloggers auf ein Maximum (längstes Speicherintervall) einzustellen und dan Speicher von Zeit zu Zeit manuell über die Konsole zu löschen. Neben den Standardsensoren kann die WMR200 auch einen UV-Sensor unterstützen.
+
|-
+
|<center>[[File:wmr100.png]]</center>
+
|'''Oregon''' WMR100, WMR88 *
+
|Dieses Modell kann per USB mit der Meteobridge verbunden werden (bei TP-Link Routern mit einem zwischengeschalteten USB 2.0 Hub). Neben den Standardsensoren kann die WMR200 auch einen UV-Sensor unterstützen.
+
|-
+
|<center>[[File:wmrs200.png]]</center>
+
|'''Oregon''' WMRS200 *
+
|Diese Station ist technisch der WMR100 ähnlich, verfügt aber über keine Anzeige von Messwerten auf der Konsole. Die Station wird über die USB-Verbindung mit Strom versorgt.
+
|-
+
|<center>[[File:te923.png]]</center>
+
|'''Meade''' TE923, TE827, TE821, DV928 *
+
|Diese Station kann per USB mit der Meteobridge verbunden werden (bei TP-Link Routern mit einem zwischengeschalteten USB 2.0 Hub). Meteobridge unterstützt alle aktuellen Hardware-Revisionen, die Live-daten am USB-Port anbieten. Der iinterne Datenlogger der TE923 wird nicht verwendet.
+
|-
+
|<center>[[File:wh1080.png]]</center>
+
|'''Ambient Weather ''' WS1090, WS2080 *
+
|Diese Station von Fine-Offset Electronic kann per USB mit der Meteobridge verbunden werden (bei TP-Link Routern mit einem zwischengeschalteten USB 2.0 Hub). Meteobridge verwendet die Livedaten und greift nicht auf den internen Datenlogger der Station zurück. Wenn ein UV-Sensor vorhanden ist, wird dieser unterstützt.
+
|-
+
|<center>[[File:ultimeter.png]]</center>
+
|'''Peet Bros''' Ultimeter 100, 800, 2100
+
| Ultimeter-Wetterstationen von Peet Bros werdne unterstützt. Die angebotenen Werte für Wind, Regen, Temperatur Feuchte und Luftdruck werden ausgewertet. Die Station muss in einen der Modi "data logging", "packet" oderr "complete record (bevorzugt) versetzt werden und die Datenübertragungsraute muss auf 2.400 Baud eingestellt sein. Die Station benötigt einen RS232-USB-Konverter basierend auf einem Prolific pl2303 oder FTDI Chipsatz.
+
|-
+
|<center>[[File:mk3.png]]</center>
+
|'''RainWise''' MkIII
+
|MkIII weather station from RainWise is supported including wind, rain, pressure, outdoor temperature and humidity. Meteobridge needs Rainwise Computer Interface MKIIICC and a RS232-USB converter (based on pl2303 or FTDI).
+
|-
+
|<center>[[File:ws2300.png]]</center>
+
|'''La Crosse''' WS2300
+
|WS2300 weather station is supported. Warning: WS2300 can deliver sporadic false weather data readings caused by interface problems. WS2300 needs a RS232-USB converter witch pl2303 or FTDI chipset.
+
|-
+
|<center>[[File:ws300.png]]</center>
+
|'''La Crosse / ELV''' WS300PC/444/500 and various clones (WS550/777/888)
+
|WS300 weather station and clones are supported and connected via USB.
+
|}
+
  
Remark: Stations marked with a "*" still use the old USB 1.x protocol and need a small cheap USB 2.0 hub to be connected to meteobridge. Davis Vantage and Vue do also need the hub when used with Davis weatherlink USB data logger.
+
<!--T:3-->
 +
Each sensor data record has a mandatory "date" and "id" parameter. The other parameters are sensor specific. Meaning of parameters is:
 +
* '''date''': UTC timestamp of reception of sensor data in format "YYYYMMDDhhmmss"
 +
* '''id''': Unique ID of sensor, consists of a sensor type description shortcut followed by a number, which is always "0" in Meteobridge, as additional sensors are not supported
 +
* '''temp''': temperature in degrees Celsius (with one decimal)
 +
* '''hum''': relative humidity in percent (no decimals)
 +
* '''dew''': dew point temperature in degrees Celsius (with one decimal)
 +
* '''press''': station pressure (without altitude correction) in hPa (with one decimal)
 +
* '''seapress''': normalized pressure with altitude correction (also called sea level pressure) in hPa (with one decimal)
 +
* '''fc''': stations forecast code, if provided. As this has low evidence and also largely varies between stations, meteobridge does not recommend to make use of this data.
 +
* '''rate''': measured rain rate in mm per hour (with one decimal).
 +
* '''total''': current value of rain bucket counter, converted to mm (with one decimal).
 +
* '''delta''': additional rain fall in mm since previous readout of this data (with one decimal).
 +
* '''wind''': current average wind speed im m/s (with one decimal).
 +
* '''gust''': curent not avergaed wind speed in m/s (with one decimal).
 +
* '''dir''': wind direction in degrees (0-359, no decimals).
 +
* '''chill''': wind chill temperature in degrees Celsius (with one decimal).
 +
* more to come...
  
Not supported stations are La Crosse 3600, 2800 and the ones from Accurite.
+
===Live Data as Plain Text=== <!--T:4-->
 +
By sending the meteobridge a HTTP request like "http://ip-of-meteobridge/cgi-bin/livedata.cgi" (where "ip-of-meteobridge" must be replaced by the IP itself) meteobridge returns current weather data as plain text. Each reply consists of a series of lines, where each line represnets a sensor. Lines do start with a time stamp and a unique sensor id followed by sensor specific parameters. Example below illustrates the format:
 +
 
 +
<!--T:5-->
 +
<pre>20130104142614 thb0 26.9 38 11.4 1020.4 1021.7 2
 +
20130104142610 rain0 0.0 3.0 0.0
 +
20130104142636 th0 9.1 95 8.3
 +
20130104142652 wind0 160 2.2 1.8 8.0</pre>
 +
</translate>
 +
 
 +
===Data via Socket Connection===
 +
Methods introduced above do need HTTP authentification like all elements of Meteobridge web interface. A look at the script "livedataxml.cgi" shows that this just reads data from socket 5557, gives it a suitable HTTP header and returns that to the requesting browser:
 +
 
 +
<pre>#!/bin/sh
 +
echo -ne "Content-type: text/xml; charset=UTF-8\n\n"
 +
nc 127.0.0.1 5557 2>/dev/null
 +
</pre>
 +
 
 +
Therefore, reading data from socket 5557 is equivalent to calling "livedataxml.cgi" and socket 5556 reports same data as delivered by "livedata.cgi".

Revision as of 09:53, 20 April 2013


Web server of Meteobridge client, which presents web interface for adminstration to you, can also deliver weather data. There are two URLs defined that can be polled to get most recent sensor data in XML or plain text. Although we don't recommend this for security reasons, you can make that URLs accessible from the Internet by configuring your router appropriately. However, when you want to bring sensor data to one of your own servers in the Internet we recommend to make use of Meteobridge's Push Services, which will not need you to open up your firewall.

Live Data as XML

By sending the meteobridge a HTTP request like "http://ip-of-meteobridge/cgi-bin/livedataxml.cgi" (where "ip-of-meteobridge" must be replaced by the IP itself) meteobridge returns current weather data in XML notation. Each reply starts witch tag <logger> and ends with </logger> with the sensor data as records with sensor specific tags "THB", "TH", "WIND", "RAIN", "UV", "SOLAR". Example below illustrates the XML format:

<logger>
  <THB date="20121227224318" id="thb0" temp="26.0" hum="37" dew="10.2" 
       press="1008.8" seapress="1010.1" fc="2"/>
  <TH date="20130104141909" id="th0" temp="9.1" hum="95" dew="8.3"/>
  <RAIN date="20130104141856" id="rain0" rate="0.0" total="3.0" delta="0.0"/>
  <WIND date="20130104141916" id="wind0" dir="109" gust="0.9" wind="2.2" chill="9.1"/>
</logger>

Each sensor data record has a mandatory "date" and "id" parameter. The other parameters are sensor specific. Meaning of parameters is:

  • date: UTC timestamp of reception of sensor data in format "YYYYMMDDhhmmss"
  • id: Unique ID of sensor, consists of a sensor type description shortcut followed by a number, which is always "0" in Meteobridge, as additional sensors are not supported
  • temp: temperature in degrees Celsius (with one decimal)
  • hum: relative humidity in percent (no decimals)
  • dew: dew point temperature in degrees Celsius (with one decimal)
  • press: station pressure (without altitude correction) in hPa (with one decimal)
  • seapress: normalized pressure with altitude correction (also called sea level pressure) in hPa (with one decimal)
  • fc: stations forecast code, if provided. As this has low evidence and also largely varies between stations, meteobridge does not recommend to make use of this data.
  • rate: measured rain rate in mm per hour (with one decimal).
  • total: current value of rain bucket counter, converted to mm (with one decimal).
  • delta: additional rain fall in mm since previous readout of this data (with one decimal).
  • wind: current average wind speed im m/s (with one decimal).
  • gust: curent not avergaed wind speed in m/s (with one decimal).
  • dir: wind direction in degrees (0-359, no decimals).
  • chill: wind chill temperature in degrees Celsius (with one decimal).
  • more to come...

Live Data as Plain Text

By sending the meteobridge a HTTP request like "http://ip-of-meteobridge/cgi-bin/livedata.cgi" (where "ip-of-meteobridge" must be replaced by the IP itself) meteobridge returns current weather data as plain text. Each reply consists of a series of lines, where each line represnets a sensor. Lines do start with a time stamp and a unique sensor id followed by sensor specific parameters. Example below illustrates the format:

20130104142614 thb0 26.9 38 11.4 1020.4 1021.7 2
20130104142610 rain0 0.0 3.0 0.0
20130104142636 th0 9.1 95 8.3
20130104142652 wind0 160 2.2 1.8 8.0

Data via Socket Connection

Methods introduced above do need HTTP authentification like all elements of Meteobridge web interface. A look at the script "livedataxml.cgi" shows that this just reads data from socket 5557, gives it a suitable HTTP header and returns that to the requesting browser:

#!/bin/sh
echo -ne "Content-type: text/xml; charset=UTF-8\n\n"
nc 127.0.0.1 5557 2>/dev/null

Therefore, reading data from socket 5557 is equivalent to calling "livedataxml.cgi" and socket 5556 reports same data as delivered by "livedata.cgi".