Jump to content

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


  • 0

For those that did not know .net was in scenes


Question

Posted

.net in scenes if you had not worked it out. Has been there since alpha.

Change for your password this is admin:admin

Please login or register to see this code.

  • Answers 48
  • Created
  • Last Reply

Top Posters For This Question

Recommended Posts

  • 0
Posted

you using that in scene right?

  • 0
Posted

A.Socha,

No, why can't i use it in a VD? It would make more sense to have multiple buttons with different texts.

When is push fixed by Fibaro?

  • 0
Posted
A.Socha,

No, why can't i use it in a VD? It would make more sense to have multiple buttons with different texts.

When is push fixed by Fibaro?

For VD buttons use this:

IP address: 108.59.13.232

Port: 80

Example Alarm message with confrmation send to all registered devices on Pushover:

Please login or register to see this code.

Normal message send to a certain device:

Please login or register to see this code.

Replace and with the API codes you get from the pushover websites, after registering and adding the appilcation. Register every device by installing the app and naming the device in the mobile app.

  • 0
Posted
sj3fk3, Can you please advise. I tried the code in a VD but gets

"[ERROR] 10:25:52: line 6: attempt to index global 'net' (a nil value)"

I have removed all blanks.

It was already possible to do in a VD (see else where in the forum), this is code for a lua scene..

  • 0
Posted

sj3fk3,

Thanks! My wish was to be able to use it in a LUA VD too. Since i don't really "like" pointing to an IP adress that might change, i rather prefer the domain.

  • 0
Posted
sj3fk3,

Thanks! My wish was to be able to use it in a LUA VD too. Since i don't really "like" pointing to an IP adress that might change, i rather prefer the domain.

If you ask me, using a lua scene is much better, that way you can make a general pushmsg script that pushes any desired variable/string.

  • 0
Posted

For VD buttons use this:

IP address: 108.59.13.232

Port: 80

Example Alarm message with confrmation send to all registered devices on Pushover:

 

Please login or register to see this code.

Normal message send to a certain device:

Please login or register to see this code.

Replace and with the API codes you get from the pushover websites, after registering and adding the appilcation. Register every device by installing the app and naming the device in the mobile app.

 

 

Should this still be working?

I cannot make it work with my key and token for some reason. Also tried 162.216.6.175.

  • 0
Posted

This works! Finally I can send pushover mgs via lua! \o/

--[[

%% properties

%% globals

--]]

local selfhttp = net.HTTPClient({timeout=2000})

local msg = "anything you want"

local requestBody='token=entertoken&user=enteruser&message=' ..msg

selfhttp:request('

Please login or register to see this link.

{

options={

headers = selfhttp.controlHeaders,

data = requestBody,

method = 'POST',

timeout = 5000

},

success = function(status)

local result = json.decode(status.data);

print("status");

if result.status then

print("successful");

print("Request: " ..result.request);

else

print ("failed")

end

end,

error = function(error)

print "ERROR"

print(error)

end

})

 

... And could not get that to work either.

 

Got this:

 

[DEBUG] 16:01:34: status

[DEBUG] 16:01:34: successful
[DEBUG] 16:01:34: Request: 084a8d9389e8965c4976a3c501eb61fa
 
... but no push to my registered iPhone.
 
Has anything concerning push or pushover changed recently that stops the code in this thread from working?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...