Blitzortung.org Data Archive
Live Data


Query to get the last strokes

The last calculated impact positions from all regions together up to the current time can be accessed using the following URL.

https://loginname:password@data.blitzortung.org/Data/Protected/last_strikes.php

The last 100,000 entries (with detector positions) / 1,000,000 entries (without detector positions) are taken into account. In order to keep the transfer rate as high as possible, the data is not read from a disk, but from main memory. The returned records are sorted time descending. The following parameters can be used to restrict the output:

the parameter table
parameter output restriction dafault
number=nthe last n entries100
time=tentries after time stamp t (nanoseconds since midnight on January 1, 1970)current time stamp
west=lonentries with a longitude of at least lon (decimal)-180
east=lonentries with longitude of at most lon (decimal)180
north=latentries with a latitude of at most lat (decimal)90
south=latentries with a latitude of at least lat (decimal)-90
sig=0/1entries excluding/including the information of the signals involved0

Example: The following url outputs the last 10 entries from the last 1000000 entries with a longitude between -10.0° and 40.0°, a latitude between 70.0° and 20.0°, and without the information about the signals involved.

https://loginname:password@data.blitzortung.org/Data/Protected/last_strikes.php?number=10&west=-10&east=40&north=70&south=20&sig=0

Each line of the data output contains a JSON encoded variable with the following members.

the members table
column description
timetimestamp in nanoseconds since midnight on January 1, 1970
latlatitude in degrees (decimal)
lonlongitude in degrees (decimal)
altaltitude above sea level in meters
polpolarity, -1 or +1
mdsmaximum deviation range in nanoseconds
scssmallest all-covering sector in degrees, formerly called mcg
(example: 210 degrees = the detectors are in a sector of 150 degrees from the impact location)
statusstatus (optional)
sigarray of signals involved

Each signal of the sig array may have the following members.

the members of the sig array
name description
stastation that has received the signal
timetime difference to the time of the lightning strike in nanoseconds
latlatitude of the detector in degree (decimal)
lonlongitude of the detector in degree (decimal)
altaltitude of the detector above sea level in meters
statusstatus of the signal (bit 1 = polarity negative, bit 2 = polarity positive, bit 3 = signal is used for the computation)
containercontainer in that the stroke has been computed


Embedding Live Vector Maps

Blitzortung.org's live vector map can be easily integrated with a fixed map style on own websites. The following parameters with values 0=false and 1=true define the controls.

the control parameter table
parameter value range default value
interactive0/10
NavigationControl0/11
FullScreenControl0/11
ScaleControl0/11
Advertisment0/11
InfoDiv0/11
Cookies0/11
status0/11

The settings in the menu can be controlled by the following parameters, see the examples:

the menue settings table
parameter value range default value
MapStyle0-20
MapStyleRangeValue0-110
LightningRangeValue0-230
LightningCheckboxChecked0/10
CourseRangeValue0-100
CourseCheckboxChecked0/10
CountingRangeValue0-100
CountingCheckboxChecked0/10
CirclesRangeValue0-100
CirclesCheckboxChecked0/10
SpeedRangeValue0-100
SpeedCheckboxChecked0/10
LinksRangeValue0-100
LinksCheckboxChecked0/10
DetectorsRangeValue0-100
DetectorsCheckboxChecked0/10
CoverageRangeValue0-10
CoverageCheckboxChecked0/10
DayNightRangeValue0/10
DayNightCheckboxChecked0/10
AudioRangeValue0-100
AudioCheckboxChecked0/10
RegionRangeValue0-100
RegionCheckboxChecked0/10

After copying the URL, remove the spaces.

<iframe src="https://map.blitzortung.org/index.php ?interactive=0 &NavigationControl=0 &FullScreenControl=0 &Cookies=0 &InfoDiv=0 &MenuButtonDiv=0 &ScaleControl=0 &LinksCheckboxChecked=1 &LinksRangeValue=10 &MapStyle=2 &MapStyleRangeValue=10 &Advertisment=0#3/40/15" width="480" height="360"></iframe>

<iframe src="https://map.blitzortung.org/index.php ?interactive=0 &NavigationControl=0 &FullScreenControl=0 &Cookies=0 &InfoDiv=0 &MenuButtonDiv=1 &ScaleControl=1 &LinksCheckboxChecked=1 &LinksRangeValue=10 &MapStyle=0 &MapStyleRangeValue=0 &Advertisment=0#5/51.2/10.0" width="500" height="600"></iframe>

<iframe src="https://map.blitzortung.org/index.php ?interactive=0 &NavigationControl=0 &FullScreenControl=0 &Cookies=0 &InfoDiv=1 &MenuButtonDiv=1 &ScaleControl=1 &LinksCheckboxChecked=1 &LinksRangeValue=10 &MapStyle=3 &MapStyleRangeValue=4 &Advertisment=0#5/36.5/135.0" width="800" height="800"></iframe>


PHP Maps

The following PHP program shows an example of how to display simple maps in Mercator projection on web servers with even with limited resources. The script can be used as a template and should be adapted to own needs. Maps in Mercator projection can be created using the map generator from Blitzortung.org. There are two PHP files, a configuration file and the main processing program. The main processing file will be included into the configuration file.

The configuration file:

<?php
//
// username and password from blitzortung.org
//
$username= "xxxxxxxx";
$password= "xxxxxxxx";
//
// the map dounds in decimal degree
//
$map= '../Graphics/Florida_-92.0_-76.0_38.0_24.3.png';
$north= 38.0;
$south= 24.3;
$west= -92.0;
$east= -76.0;
//
// local temporary file
//
$tmp_filename="tmp.json";
//
// time span in seconds
//
$time_span= 7200;
//
// some cities
//
$cities_array= array("33.75;-84.38;Atlanta",
 "30.32;-81.67;Jacksonville",
 "25.78;-80.22;Miami",
 "27.93;-82.45;Tampa",
 "33.52;-86.82;Birmingham",
 "32.3;-90.18;Jackson",
 "29.95;-90.08;New Orleans",
 "34;-81.03;Columbia",
 "35.23;-80.85;Charlotte");
//
// $stations_type: 0 = draw no stations
// $stations_type: 1 = draw stations without city names
// $stations_type: 2 = draw stations with city names
//
$stations_type= 2;
//
// include the main php program
include "main.php";
?>
Florida


Websocket server

Live data can be accessed via websocket servers. However, this is only permitted to a limited extent. Do not access our websocket servers from highly frequented websites or via apps. Please observe our guidelines for handling our data. Demonstration of live data on commercial websites or via apps is not permitted.

Websocket server: