HTTP event question **solved**

This section covers the Meteobridge PRO units exclusively

Moderator: Mattk

Post Reply
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Fri Feb 01, 2019 10:06 pm

HTTP event question **solved**

Post by mpriest »

Hello ,

I am using this http event url: ... d]kn&gust=[wind0wind-max6=kn.0:--]kn&richting=[wind0dir]

With this php:
$U = $_GET['epoch'];
$wind = $_GET['wind'];
$gust = $_GET['gust'];
$richting = $_GET['richting'];
$values = array($U,$wind, $gust, $richting);
$result = json_encode($values);

The response in the resulting txt file is :

What's wrong ? who knows?

User avatar
Gold Boarder
Gold Boarder
Posts: 287
Joined: Wed Nov 14, 2018 12:48 pm
Location: Conlig, Co. Down, UK

Re: HTTP event question

Post by ConligWX »

the correct way of calling a sensor is:


"converter", "decimals" and "replacement" can be omitted, "sensor" and "type"(selector) are mandatory.

While "sensor" tells what sensor and what piece of information of the sensor to use, "selector" decides data from what time period should be taken into account and "converter" does convert data into measurement units the user likes most. "Decimals" decides about precision the result should be shown in and "replacement" gives the string to be returned when there is no data for defined sensor available.

[wind0dir] should be something like: [wind0dir-act]

Look at "Selectors"

Post Reply