I
Working on this part now. I completely see the value and necessity of being able to notify based on tags and other criteria. I've thought through and think I have a good solution for how to create a notification rule builder class, but I can't promise camera-specific topics at the moment. That can definitely come at some point, but it gets a lot more convoluted when you have a bunch of different conditions to notify based on, which also need to go to separate topics.
Would it not work if it were the same topic with the camera name included in the payload? That would be much easier to build around.
I changed code that I thought fixed the TZ conversion, but I guess that's not working properly. Dealing with these timestamps has been an enormous pain throughout the entire app. Is your time zone set to your local region in your docker compose? It seemed to work when I tested it. Are others still seeing wrong times too?
I'll get that aligned at some point, but I'm going to prioritize the other parts mentioned first.
@algertc
From Earlier Post:
1) The payload should be sent like how Blue Iris sends things. For instance { "plate_number":"&PLATE", "Image":"&ALERT_JPEG", "camera":"&NAME", "timestamp":"&ALERT_TIME" } comes across as multiple payloads under one topic and sorts nicely on my home automation system. As it stands I cant tease out the data I want on the single payload.
This is now working great. I have each data point coming across as a sub topic
View attachment 226660
One point that was mentioned before: The time stamp is wrong.
2) Need to be able to bind a camera to a specific broker. I have three LPR cams and I need to send MQTT messages based on which camera is triggering
I did not see this added to the latest revision
3) Need to be able to send notifications based on tags as well as plates. I have some tags with hundreds of plates. Don't want to manually add those in when a single tag can cover it all
Also did not see this added to the latest revision
Thank you for everything you've done so far.
Working on this part now. I completely see the value and necessity of being able to notify based on tags and other criteria. I've thought through and think I have a good solution for how to create a notification rule builder class, but I can't promise camera-specific topics at the moment. That can definitely come at some point, but it gets a lot more convoluted when you have a bunch of different conditions to notify based on, which also need to go to separate topics.
Would it not work if it were the same topic with the camera name included in the payload? That would be much easier to build around.
I changed code that I thought fixed the TZ conversion, but I guess that's not working properly. Dealing with these timestamps has been an enormous pain throughout the entire app. Is your time zone set to your local region in your docker compose? It seemed to work when I tested it. Are others still seeing wrong times too?
I'll get that aligned at some point, but I'm going to prioritize the other parts mentioned first.