This is highly related to W3C Generic Sensor API: https://www.w3.org/TR/generic-sensor/ https://www.ecma-international.org/memento/tc53-m.htm https://www.ecma-international.org/memento/tc53-2018-003.pdf