Radiation

Kismet collects environmental radiation data from supported Geiger counters, such as the Radiacode and Radview.

Never rely on radiation data presented by Kismet for personal safety.

Radiation sensors

DESC

Radiation data from Geiger counter datasources, such as the Radiacode and Radview.

Count and dose history is kept as RRD (round robin database) records, reporting the past 60 seconds, the past hour per minute, and the past day per hour; see the RRD documentation. After 2026-10-R1, the energy spectrum of a sensor which sends one is read from the spectrum endpoint.

Radiation data is also logged to the kismetdb log as RADIATION snapshots, and sent to the eventbus as RADIATION events.

ROLES
readonly
URI
/radiation/sensors/all_sensors.json
/radiation/sensors/all_sensors.ekjson
/radiation/sensors/all_sensors.prettyjson
METHODS
GET POST
JSON
PARAMETERS

This endpoint takes additional parameters by using a `POST` request and supplying a JSON document or json form variable.

You can find more information about API parameters here.

fields field simplification OPTIONAL

Kismet can reduce the amount of information being processed and returned by an API by simplifying the fields to only return the data needed by the caller.

You can read more about the field simplification API and how to use it here.

RETURN

JSON object keyed by datasource UUID, of sensor records:

FieldContent
radiation.sensor.typeSensor type, Radview or Radiacode
radiation.sensor.datasourceDatasource record
radiation.sensor.cps_rrdRRD of counts per second
radiation.sensor.usv_rrdRRD of dose rate, in microsieverts per hour, for sensors which report it
radiation.sensor.cps_errStatistical error of the count rate, percent, for sensors which report it
radiation.sensor.usv_errStatistical error of the dose rate, percent, for sensors which report it
radiation.sensor.dose_totalAccumulated dose the sensor has counted, microsieverts
radiation.sensor.dose_total_durationTime the accumulated dose covers, seconds
radiation.sensor.temperatureSensor temperature, Celsius
radiation.sensor.batterySensor battery charge, percent
radiation.sensor.last_status_timeTime of the last dose, temperature, and battery report; 0 if the sensor sends none
radiation.sensor.spectrum_channelsNumber of spectrum channels; 0 if the sensor sends no spectrum
radiation.sensor.spectrum_timeTime of the last spectrum update
radiation.sensor.spectrum_session_durationCounting time in the spectrum since Kismet started, seconds
radiation.sensor.spectrum_session_totalTotal counts in the spectrum since Kismet started

The cps_err and later fields, other than the RRDs, are after 2026-10-R1; before it, sensor records had radiation.sensor.aggregate_spectrum, aggregate_spectrum_start, and aggregate_spectrum_end instead.

RESPONSES
200
Success

Radiation sensor spectrum

DESC

After 2026-10-R1, the gamma energy spectrum of one radiation sensor, in several windows:

  • radiation.spectrum.device: the spectrum the sensor has accumulated itself (Radiacode),
  • radiation.spectrum.session: counted since Kismet started tracking the sensor,
  • radiation.spectrum.hour: counted over the past hour,
  • radiation.spectrum.minutes: with minutes=1, a list of the per-minute spectra over the past hour, oldest first.

A window is left out when the sensor has sent nothing for it. Each finished minute is also logged to the kismetdb log as a RADIATION_SPECTRUM snapshot, with the GPS location when there is a fix.

ROLES
readonly
URI
/radiation/sensors/by-uuid/{UUID}/spectrum.json
/radiation/sensors/by-uuid/{UUID}/spectrum.ekjson
/radiation/sensors/by-uuid/{UUID}/spectrum.prettyjson
METHODS
GET POST
URI
PARAMETERS
UUID string REQUIRED

Datasource UUID of the radiation sensor

POST
PARAMETERS
minutes string OPTIONAL

1 or true adds the spectrum of each of the past 60 minutes.

JSON
PARAMETERS

This endpoint takes additional parameters by using a `POST` request and supplying a JSON document or json form variable.

You can find more information about API parameters here.

fields field simplification OPTIONAL

Kismet can reduce the amount of information being processed and returned by an API by simplifying the fields to only return the data needed by the caller.

You can read more about the field simplification API and how to use it here.

RETURN

JSON object with the sensor UUID in radiation.spectrum.sensor, and a spectrum record for each window:

FieldContent
radiation.spectrum.windowdevice, session, hour, or minute
radiation.spectrum.channelsNumber of channels
radiation.spectrum.calibrationEnergy calibration [a0, a1, a2]: channel n is a0 + a1*n + a2*n^2 keV; empty if unknown
radiation.spectrum.start_timeStart of the window
radiation.spectrum.end_timeEnd of the window
radiation.spectrum.durationCounting time in the window, seconds
radiation.spectrum.totalTotal counts in the window
radiation.spectrum.countsCounts per channel
RESPONSES
200
Success
500
Invalid UUID, or no radiation sensor with that UUID

Radiation sensor track

DESC
The readings of one radiation sensor at the GPS locations where they were taken, as the web UI’s Radiation dose map overlay draws them. Readings within 10 meters and 60 seconds of the last point are merged into it; each sensor keeps its last 4000 points.
ROLES
readonly
ADDED
API added after 2026-10-R1
URI
/radiation/sensors/by-uuid/{UUID}/track.json
/radiation/sensors/by-uuid/{UUID}/track.ekjson
/radiation/sensors/by-uuid/{UUID}/track.prettyjson
METHODS
GET POST
URI
PARAMETERS
UUID string REQUIRED

Datasource UUID of the radiation sensor

POST
PARAMETERS
since number OPTIONAL

Leave out points last updated before this time, in seconds since the epoch.

RETURN

JSON list of points, oldest first, each a list of numbers:

IndexContent
0Time of the first reading in the point
1Time of the last reading in the point
2Longitude
3Latitude
4Average count rate, counts per second
5Average dose rate, uSv/h; -1 for sensors which report no dose rate
6Highest dose rate, uSv/h; -1 for sensors which report no dose rate
7Number of readings merged into the point
RESPONSES
200
Success
500
Invalid UUID or since, or no radiation sensor with that UUID