Author Topic: Alerts and URL call  (Read 669 times)

0 Members and 1 Guest are viewing this topic.

Offline fotogw

  • Member
  • *
  • Posts: 5
Alerts and URL call
« on: July 05, 2014, 11:04:47 AM »
Hi all,

Since FW7.1 is available, there is a possibility for alerts like "alert when x lightning within x minutes, closer than  x kilometers".
How can I use this function, and the connected URL call to show that data on my site?

Tobi released this list of parameters:
These are the parameters:

first=[time]
last=[time]
strokes=[count]
strokes_per_min_last=[count]
strokes_per_min_max=[count]
arrival_time=[seconds]
dist_last=[km]
dist_min=[km]
dist_max=[km]
degerees_last=[°]
degrees_mean=[°]
trend_pct=[%]
trend_sec=[seconds]

Any help appreciated!

Gerhard
Blitzortung 711

Offline dfroula

  • Forecaster
  • *****
  • Posts: 551
Re: Alerts and URL call
« Reply #1 on: July 05, 2014, 11:32:13 AM »
This PHP script will display the value of all parameters sent in the alert URL call. Modify path and filename to suit your web server installation:

Code: [Select]
<?php

# Retrieve all possible value names and values from Controller on alert event for testing and save to file.
$file_test fopen("/volume1/web/test.txt","w");
foreach (
$_GET as $key => $value)
{
fwrite($file_test,"$key:  $value\n");
}
fclose($file_test);

?>

Best regards,

Don
WD9DMP