Skip to contentSkip to conversation

API recommendation?

DISCUSSION Bruce Johnson 2 participants 3 messages Oct 29, 2020

lore
Share & tools
lore
#0 lore raw

Does anyone have recommendations for interacting with iwd programmatically? I'm trying to integrate a Python-based web back-end with iwd so that I can set up Wi-Fi client connections, report on available access points, etc. It's easy enough for me to shell out and use iwctl to set parameters, but its output is less than ideal for screen-scraping (which is admittedly a Bad Idea anyway). I've been looking to see if someone has put together an API, and I'm coming up empty. I would hate to try to reinvent the wheel, hence the question.

Thanks!

#1 lore raw

Hi,

Quoted 9 lines · Bruce Johnson

Does anyone have recommendations for interacting with iwd programmatically? I'm trying to integrate a Python-based web back-end with iwd so that I can set up Wi-Fi client connections, report on available access points, etc. It's easy enough for me to shell out and use iwctl to set parameters, but its output is less than ideal for screen-scraping (which is admittedly a Bad Idea anyway). I've been looking to see if someone has put together an API, and I'm coming up empty. I would hate to try to reinvent the wheel, hence the question.

DBus is the intended way to interact with IWD. You can find documentation for various APIs here:

https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/doc

Thanks,
James

Quoted 5 lines

Thanks!
_______________________________________________
iwd mailing list -- iwd(a)lists.01.org
To unsubscribe send an email to iwd-leave(a)lists.01.org