ERDrPC Posted December 24, 2018 Share Posted December 24, 2018 Sorry Everyone I've been on a programming kick in the last 24hrs and trying to upgrade my programming Goals 1. If I have to pre-sleep for a night shift then press button on master key pad to set variable to true then if anyone presses the doorbell then the announcement, T3 camera display and OSD camera display will skip the master. The variable will reset to false at midnight so if there is an emergency and someone presses the doorbell then we get the announcement in all rooms 2. Else If the doorbell is pressed during 6pm and 7am then execute with a lower volume announcement as wife thinks it's too loud 3 Else run the normal doorbell announcement So I've got the keypad button programming and three separate announcements done. I thought I had the doorbird press programing down but I tested with the variable true and the master still executed. I thing I see is that I'm missing coverage if an overeager person presses the doorbell twice as per a different thread, which I will add in once I get my basic programming done. Can anyone point out errors in my logic? Thanks Link to comment Share on other sites More sharing options...
ERDrPC Posted December 24, 2018 Author Share Posted December 24, 2018 I tried to nest the if time is between 6pm and 7am so it and the second else so that they would be on one level below the first else but HE wouldn't let me do it. Do I need stops? The recall takes time so I don't want to prematurely stop during mid-recall Link to comment Share on other sites More sharing options...
ERDrPC Posted December 28, 2018 Author Share Posted December 28, 2018 Family is out for the night so I can test. It seems that the second else is being skipped and the door bell announcement plays twice...once at low volume as expected and then at full volume when invoked after 6pm Link to comment Share on other sites More sharing options...
dcovach Posted December 28, 2018 Share Posted December 28, 2018 If you want to see cameras on tv navigators, there needs to be another camera jump (and camera selected) after the 'control4' command is sent. The delays in between are a good idea. Right now you'll only see the camera jump work on the touch screens Link to comment Share on other sites More sharing options...
ERDrPC Posted December 28, 2018 Author Share Posted December 28, 2018 So here is the updated programming..and it works. I have it broken down by time for low volume then by if exclude master It allows me to see the doorbird camera on the TS and my front door security cameras on the TVs. Note my doorbird is screwed up and I no longer get push notifications of door bell press and cannot use the TS as intercom - hence this workaround to see the camera on the TS at least. Only thing left is to account for the over zealous multiple button presser and screwing up the snapshot. Here is the code Link to comment Share on other sites More sharing options...
sonic30101 Posted December 28, 2018 Share Posted December 28, 2018 You can use a 20 second timer. At the top of the script below the snapshots reset the timer and start it. Then make conditionals for when those snapshots are taken that if the timer is not running to take the snapshot since that would imply someone just pressed the button and the script has not fully completed Link to comment Share on other sites More sharing options...
ERDrPC Posted December 28, 2018 Author Share Posted December 28, 2018 I'm trying to think thru your suggestion (with delays removed) If preventdblpress timer is not running Take Snapshot Reset preventdblpress timer Start preventdblpress timer if time between 6pm and 7pm if varibles dourbell master exclude true I think this will prevent the double snapshot. Will it prevent double announcement say if it is pressed again 15sec after first press? I guess we might want to hear the announcement again but without screwing up the snapshot. Link to comment Share on other sites More sharing options...
ERDrPC Posted January 2, 2019 Author Share Posted January 2, 2019 Is my interpretation correct? Would love some help again if possible Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.