curl -k -u "%key%":"%secret%" https://your-opnsense-server/api/diagnostics/interface/getinterfaceconfig | jq -r ".em1.ipv4[0].ipaddr"