42 lines
720 B
Python
42 lines
720 B
Python
class implementation_notification_channel_console(interface_notification_channel):
|
|
|
|
'''
|
|
[implementation]
|
|
'''
|
|
def parameters_schema(self):
|
|
return {
|
|
"type": "object",
|
|
"additionalProperties": False,
|
|
"properties": {
|
|
},
|
|
"required": [
|
|
]
|
|
}
|
|
|
|
|
|
'''
|
|
[implementation]
|
|
'''
|
|
def normalize_conf_node(self, node):
|
|
return dict_merge(
|
|
{
|
|
},
|
|
node
|
|
)
|
|
|
|
|
|
'''
|
|
[implementation]
|
|
'''
|
|
def notify(self, parameters, name, data, state, info):
|
|
_sys.stdout.write(
|
|
string_coin(
|
|
"[{{title}}] <{{condition}}> {{info}}\n",
|
|
{
|
|
"title": data["title"],
|
|
"condition": condition_show(state["condition"]),
|
|
"info": _json.dumps(info, indent = "\t", ensure_ascii = False),
|
|
}
|
|
)
|
|
)
|