I’m trying to follow your reference documentation:
https://community.openhab.org/t/how-to-solve-exec-binding-problems/18131
I have updated my rule a bit to get the results.
rule "Write NordPool energy prices to Influxdb"
when
Item Renew_price changed
then
//executeCommandLine("curl -i -XPOST 'http://192.168.50.30:8086/write?db=openhab_db' --data-binary 'NP_Electricity_price_test value=919 1435362189575692186'",5000)
val results = executeCommandLine("curl@@-i@@-XPOST@@'http://192.168.50.30:8086/write?db=openhab_db'@@--data-binary@@'NP_Electricity_price_test@@value=919@@1435362189575692186'", 1000)
logInfo("NPpriceDB.rules",results)
end
log:
2019-03-24 13:10:31.717 [INFO ] [arthome.model.script.NPpriceDB.rules] - curl: (1) Protocol "'http" not supported or disabled in libcurl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: value=919
curl: (6) Could not resolve host: 1435362189575692186'