You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chrisz (https://github.com/chrisz/pyhusmow) has created a Pyton script to control the Automower with the unofficial API. Anyone who have tried to use the same API for LUA?
The text was updated successfully, but these errors were encountered:
So, you start the husmow in server mode on one of your computers at home (my test VM, running Ubuntu 16 LTS, IP address 192.168.4.70):
sudo apt-get install python3 virtualenv jq
virtualenv -p python3 husmow_venv
source husmow_venv/bin/activate
pip3 install pyhusmow
husmow --login MYEMAIL --password MYPASSWORD --log-level INFO --save status
#--- start the server, listening to all IP addresses on the server
husmow server --address 0.0.0.0
Example LUA
local HUSQVARNA = net.HTTPClient();
local url = "http://192.168.4.70:1234/status";
--================================================
-- Start
--================================================
fibaro:debug("#==========================");
local trigger = fibaro:getSourceTrigger()
fibaro:debug("Trigger['type']: " .. trigger['type']);
fibaro:debug("Set up the url: " .. url);
res = HUSQVARNA:request(
url,{
options = {
method = "GET",
},
success = function(resp)
if resp.status == 200 then
fibaro:debug("It went well: " .. resp.status);
fibaro:debug(message);
print(resp.data);
else
fibaro:debug("REST error: " .. resp.status);
print (resp.data);
end
end
});
fibaro:debug("end");
Chrisz (https://github.com/chrisz/pyhusmow) has created a Pyton script to control the Automower with the unofficial API. Anyone who have tried to use the same API for LUA?
The text was updated successfully, but these errors were encountered: