Is there an API (or command line) in Ubuntu to see the available wireless networks, their strength, etc, and connecting to one?
network-manager has a dbus service. You can use any language with dbus binding to talk to it.