Implemented Synapse Ping as heartbeat for connection between synapse and RMASS Bridge. Also implemented set online action to update RMASS presence
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
name = "Synapse Wake"
|
||||
name = "Synapse Ping"
|
||||
|
||||
kind = "action"
|
||||
|
||||
alias = "synapseping"
|
||||
alias = "pingsynapse"
|
||||
|
||||
showstatus = True
|
||||
|
||||
sleeptime = 15
|
||||
|
||||
isrequest = True
|
||||
|
||||
method = "POST"
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
name = "Set RMASS Bridge Online"
|
||||
|
||||
kind = "action"
|
||||
|
||||
alias = "setrmassbridgeonline"
|
||||
|
||||
showstatus = True
|
||||
|
||||
#sleeptime = 15
|
||||
|
||||
isrequest = True
|
||||
|
||||
method = "PUT"
|
||||
|
||||
path = [
|
||||
"https://loxthelion.com/_matrix/client/v3/presence/@rmass_bridge:loxthelion.com/status",
|
||||
]
|
||||
|
||||
headers = {
|
||||
"Authorization": {
|
||||
"os": "AS_TOKEN",
|
||||
"prefix": "Bearer ",
|
||||
},
|
||||
"Content-Type": "application/json",
|
||||
}
|
||||
|
||||
keys = [
|
||||
{
|
||||
"keytitle": "presence",
|
||||
"keyvalue": "online",
|
||||
},
|
||||
{
|
||||
"keytitle": "status_msg",
|
||||
"keyvalue": "RMASS Bridge Connected",
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user