Extracting current battery voltage

Is it possible to somehow extract current battery voltage (preferably from AutoPi itself, not OBD2) and use it in “Custom code”? It is being reported to Cloud, but i wanted to use it locally.

You can do that with Custom Code, but it’s easier to call Cloud API directly. Battery voltage is one of the basic metrics available out of the box.