I am connecting to my Eagle 3 via WiFi, however, the API reports that WiFi is not enabled.
Debug output:
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 10.0.1.186:80
send: b'POST /cgi-bin/post_manager HTTP/1.1\r\nHost: 10.0.1.186\r\nUser-Agent: python-requests/2.33.1\r\nAccept-Encoding: gzip, deflate\r\nAccept: */*\r\nConnection: keep-alive\r\nContent-Type: text/xml\r\nContent-Length: 43\r\nAuthorization: Basic MDBmZjI4OmIzMTRkYTllY2I3ZjE2Yjg=\r\n\r\n'
send: b'<Command><Name>wifi_status</Name></Command>'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-type: text/html
header: Access-Control-Allow-Origin: http://homebase.rainforestautomation.com:8080
header: Access-Control-Allow-Headers: Authorization, Content-Type, Accept
header: Access-Control-Allow-Methods: GET, POST
header: Access-Control-Allow-Credentials: true
header: Access-Control-Max-Age: 86400
header: Content-Length: 379
header: Date: Tue, 14 Apr 2026 18:10:35 GMT
header: Server: lighttpd/1.4.55
DEBUG:urllib3.connectionpool:http://10.0.1.186:80 "POST /cgi-bin/post_manager HTTP/1.1" 200 379
Wifi: disabled
Type: None
SSID: Localnet-n
Encryption: psk2
Encryption details: WPA2 PSK (CCMP)
Channel: 5
IP Address: 10.0.1.186
Here is my code:
import eagle
eagle.localapi.enable_debug_logging()
client = eagle.LocalApi(host='10.0.1.186', username='<cloud id>', password='<long installation code>')
# Get Wifi status information
wifi = client.wifi_status()
print("Wifi:", "enabled" if wifi.enabled else "disabled")
print("Type:", wifi.type)
print("SSID:", wifi.ssid)
print("Encryption:", wifi.encryption)
print("Encryption details:", wifi.encryption_details)
print("Channel:", wifi.channel)
print("IP Address:", wifi.ip_address)
I am connecting to my Eagle 3 via WiFi, however, the API reports that WiFi is not enabled.
Debug output:
Here is my code: