1
General Discussion / need help with wol api
« on: February 03, 2019, 02:45:52 pm »
hello
please can someone help me with WOL API?
i am able to wake all already defined computers at once with "wakeall" but i have no idea how to wake just one computer from list or with manually defined interface and mac
with getHost i can see from output that correct interface is selected with defined mac and description
....."lan":{"value":"correct interface name","selected":1}....."mac":"correct mac","descr":"my description"}}
many thanks
please can someone help me with WOL API?
i am able to wake all already defined computers at once with "wakeall" but i have no idea how to wake just one computer from list or with manually defined interface and mac
Code: [Select]
curl -XPOST -d '' -k -u "$key":"$secret" "https://$opnsenseIP:port/api/wol/wol/wakeall"
with getHost i can see from output that correct interface is selected with defined mac and description
Code: [Select]
curl -XPOST -d '' -k -u "$key":"$secret" "https://$opnsenseIP:port/api/wol/wol/getHost/$uuid"
getHost output:....."lan":{"value":"correct interface name","selected":1}....."mac":"correct mac","descr":"my description"}}
many thanks