[BF] Reagiert auch auf Netzevents
This commit is contained in:
parent
a0efb63b99
commit
59bbdbfc5a
@ -44,6 +44,8 @@ namespace Mqtt_SWB_Dashboard {
|
||||
private void Mosquitto_MessageIncomming(Object sender, MqttEventArgs e) {
|
||||
if (Regex.Match(e.Topic, "/flex4grid/VersionControl/LocalGateway/groups/.*").Success) {
|
||||
this.LvcMessages(e);
|
||||
} else if(Regex.Match(e.Topic, "/flex4grid/v1/load_balancing/events/.*").Success) {
|
||||
this.PowerEvents(e);
|
||||
} else if (Regex.Match(e.Topic, "/flex4grid/VersionControl/LocalGateway/hosts/.*/status").Success ||
|
||||
e.Topic == "/flex4grid/VersionControl/LocalGateway/status") {
|
||||
this.RaspiStatus(e);
|
||||
@ -67,6 +69,14 @@ namespace Mqtt_SWB_Dashboard {
|
||||
|
||||
#region Mqtt-Message Parser
|
||||
|
||||
/// <summary>
|
||||
/// Raspberry Powerevents
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
private void PowerEvents(MqttEventArgs e) {
|
||||
// /flex4grid/v1/load_balancing/events/10000000 {"status": 1, "areaId": "1000000", "end": "2017-09-20T18:00:00.0000000000Z", "timestamp": "2017-09-19T08:55:52.237Z", "group_name": "ALL_2017_09_20", "start" :"2017-09-20T17:00:00.0000000000Z", "magnitude": "49", "id":"84"}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// LogMessages eines Raspis
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user