Send alert when camera profile changes?

lk229

n3wb
Joined
Sep 17, 2017
Messages
19
Reaction score
4
I've figured out how to send an alert when the system-wide profile changes (Settings, Profiles, On change) but I can't find a way to send an alert when the profile of an individual camera changes. Is this possible?
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,152
Reaction score
1,256
Location
SF Bay Area
Camera profile change actions are not built in as far I know.

You may need to write a script and run it as a scheduled task every N minutes.
The pseudo code could be like this:
  1. If it does not exist yet, create an empty *.txt file to store the camera's current profile
  2. To the webserver, send JSON command
    jsonCmd:
    [cmd] => camconfig
    [camera] => shortname
  3. From the JSON response string, GET the camera's current profile
  4. Compare the camera's current profile to the saved value in the *.txt file
  5. If changed, send the alert
  6. Save the camera's current profile to the *.txt file
 

lk229

n3wb
Joined
Sep 17, 2017
Messages
19
Reaction score
4
Thanks. I was thinking I'd need to do something similar but was hoping to avoid unnecessary polling. Maybe a future release could include this.
 

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,906
Reaction score
21,282
Thanks. I was thinking I'd need to do something similar but was hoping to avoid unnecessary polling. Maybe a future release could include this.
It wont happen unless you request it...
 

lk229

n3wb
Joined
Sep 17, 2017
Messages
19
Reaction score
4
Is there a specific place that requests are posted or should I just email the developer?
 

lk229

n3wb
Joined
Sep 17, 2017
Messages
19
Reaction score
4
Thank you both for your replies. I've sent a support request.
 
Top