Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,472 changes: 4,472 additions & 0 deletions app.log

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/camera_gis_system_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}
],
"driver_class": "OPCUAServerDriver",
"driver_config": {
"params": {
"allow_write_regex": ".*_CMD$",
"namespaceurl": "http://openscada-lite/opcua/server"
},
Expand Down
14 changes: 7 additions & 7 deletions config/logging_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,37 @@
"console": {
"class": "logging.StreamHandler",
"formatter": "default",
"level": "DEBUG"
"level": "INFO"
},
"file": {
"class": "logging.FileHandler",
"formatter": "default",
"filename": "app.log",
"level": "DEBUG"
"level": "INFO"
}
},
"root": {
"level": "DEBUG",
"level": "INFO",
"handlers": ["console", "file"]
},
"loggers": {
"openscada_lite.modules.security.service": {
"level": "DEBUG",
"level": "INFO",
"handlers": ["console", "file"],
"propagate": false
},
"openscada_lite.modules.security.controller": {
"level": "DEBUG",
"level": "INFO",
"handlers": ["console", "file"],
"propagate": false
},
"openscada_lite.modules.base.base_controller": {
"level": "DEBUG",
"level": "INFO",
"handlers": ["console", "file"],
"propagate": false
},
"openscada_lite.modules.communication.controller": {
"level": "DEBUG",
"level": "INFO",
"handlers": ["console", "file"],
"propagate": false
}
Expand Down
13 changes: 12 additions & 1 deletion config/security_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@
{
"name": "test_group",
"permissions": [
"security_editor_access"
"security_editor_access",
"datapoint/rawtagupdatemsg",
"save_security_config",
"save_config",
"communication/driverconnectcommand",
"save_config_as",
"alert/clientalertfeedbackmsg",
"alarm/ackalarmmsg",
"animation/animationupdaterequestmsg",
"restart_app",
"command/sendcommandmsg",
"login"
]
}
],
Expand Down
3,840 changes: 3,840 additions & 0 deletions config/svg/0.room.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions config/svg/0.room.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This is the MQTT module.
1. Connect / Disconnect the MQTT Driver
2. Connect the Light 1 or Light 2
3. Check in the Commands tab the status of the commands
4. Click in the Datapoints the status of the datapoints
2 changes: 1 addition & 1 deletion config/svg_system_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@
}
],
"driver_class": "OPCUAServerDriver",
"driver_config": {
"params": {
"allow_write_regex": ".*_CMD$",
"namespaceurl": "http://openscada-lite/opcua/server"
},
Expand Down
99 changes: 98 additions & 1 deletion config/system_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,58 @@
"max": 150,
"min": 100,
"type": "enum"
},
"ON_OFF": {
"default": "OFF",
"type": "enum",
"values": [
"ON",
"OFF",
"TOGGLE"
]
}
},
"drivers": [
{
"name": "TasmotaRelayDriver",
"driver_class": "MQTTTasmotaRelayDriver",
"connection_info": {
"server_name": "TasmotaRelayDriver"
},
"datapoints": [
{ "name": "RELAY_1_STATUS", "type": "ON_OFF" },
{ "name": "RELAY_2_STATUS", "type": "ON_OFF" }
],
"command_datapoints": [
{ "name": "RELAY_1_CMD", "type": "ON_OFF" },
{ "name": "RELAY_2_CMD", "type": "ON_OFF" }
],
"params": {
"host": "orangepizero3",
"port": 1883,
"client_id": "openscada-tasmota-xmas",
"username": "scada",
"password": "dani23",
"device_topic": "xmas",
"relay_mapping": {
"RELAY_1": "POWER1",
"RELAY_2": "POWER2"
},
"subscriptions": [
{
"topic": "stat/xmas/POWER+",
"type": "status"
},
{
"topic": "stat/xmas/RESULT",
"type": "feedback"
}
],
"publish": {
"command": "cmnd/{device}/{power}"
}
}
},
{
"command_datapoints": [],
"connection_info": {
Expand Down Expand Up @@ -123,7 +172,7 @@
}
],
"driver_class": "OPCUAServerDriver",
"driver_config": {
"params": {
"allow_write_regex": ".*_CMD$",
"namespaceurl": "http://openscada-lite/opcua/server"
},
Expand Down Expand Up @@ -1347,6 +1396,29 @@
{
"name": "datapoint"
},
{
"name": "schedule",
"config": {
"schedules": [
{
"schedule_id": "on_mode",
"cron": "0 17 * * *",
"actions": [
"send_command('TasmotaRelayDriver@RELAY_1_CMD', 'ON')",
"send_command('TasmotaRelayDriver@RELAY_2_CMD', 'ON')"
]
},
{
"schedule_id": "off_mode",
"cron": "0 23 * * *",
"actions": [
"send_command('TasmotaRelayDriver@RELAY_1_CMD', 'OFF')",
"send_command('TasmotaRelayDriver@RELAY_2_CMD', 'OFF')"
]
}
]
}
},
{
"name": "alert"
},
Expand Down Expand Up @@ -1522,6 +1594,18 @@
}
}
],
"LIGHTS": [
{
"attribute": "visibility",
"expression": {
"OFF": "hidden",
"ON": "visible"
},
"quality": {
"unknown": "hidden"
}
}
],
"RIGHT_SWITCH_TURN": [
{
"attribute": "visibility",
Expand Down Expand Up @@ -1571,6 +1655,19 @@
}
}
],
"CONNECTOR_ANIMATION": [
{
"attribute": "fill",
"default": "gray",
"expression": {
"ON": "green",
"OFF": "red"
},
"quality": {
"unknown": "gray"
}
}
],
"driver_connection": [
{
"attribute": "fill",
Expand Down
Loading