Satellites photograph the Earth at night every year. We take NASA's yearly picture of the world's night lights and work out how that light spreads into the sky around each town, so each place gets an estimate of how dark its sky is.
It is an estimate, not a measurement: a guide to where the dark places are. On the night, cloud, the Moon, haze, snow and a nearby light all make a difference. Gloaming's Tonight screen weighs those for you.
Sky brightness estimated by Gloaming from NASA Black Marble night lights. An estimate from satellite data, not a measurement. Source: Román, M.O., et al. (2018). NASA's Black Marble nighttime lights product suite. Remote Sensing of Environment 210, 113-143. doi:10.1016/j.rse.2018.03.017