How to get current public IP address using UCI?

This should work, but it's too complex to get an IP, isn't it? ubus is a bit easier.