Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team

Question
deanrparry 19
How to use HTTP POST to push a new variable value to fibaro?
HC2 = Net.FHttp("192.168.0.8",80);
HC2:setBasicAuthentication("admin", "admin");
local payload = '{"id": 2, "tracking": 60}';
response ,status, errorCode = HC2:PUT("/api/users", payload);
if tonumber(status) == 200 then
fibaro:debug("GPS was set to = 60");
fibaro:setGlobal("DEAN", "HOME");
else
fibaro:debug("Status = "..status);
fibaro:debug("Error code = "..errorCode);
end
if fibaro can push it surely tasker can?
below is what i want to send via tasker http post...
curl --request PUT 'http://admin:[email protected]:80/api/globalVariables' \
--data 'name=DEAN&value=HOME'
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.