+
    Mk,  ã                   ón  € R t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIH	t	 ]	! ]
4      P                  4       P                  t]	! R4      t]R,          t^
t^xt^^uttRt]'       d/   ^ RIt]P,                  P/                  ^ ]! ]4      4       ^ RIHtHt R tR tR	 tR
 tR t R t!]"R8X  d
   ]!! 4        R# R# )u3  door_watch.py â€” Project Doorman trigger: when Object Analytics on the front
P4708 reports a NEW person-at-porch (ACC_OptimizedAction) event, announce it on
the Google/Nest speakers. Debounced, quiet-hours gated, pointer-based (survives
restart). Runs autonomously; attracts/rings on the next real visitor.N)ÚPathz;C:\Users\DEMO - JARVIS\AppData\Local\hermes\axis_creds.jsonzdoor_pointer.txtT)ÚannounceÚCLOUDc                  ó    € \         P                  ! \        \        R R7      4      p V R,          R,          pVR,          VR,          VR,          3# )zutf-8)ÚencodingÚcamerasÚcorner_frontÚipÚuserÚpass)ÚjsonÚloadÚopenÚCREDS)ÚjsÚfs     Údoor_watch.pyÚ	cam_credsr      s>   € Ü	�Š”4œ¨Ô0Ó	1€BØ
ˆ9��nÕ%€AØˆT�7�A�f•I˜q �yÐ(Ð(ó    c                 ó  € \         P                  ! R RRRV RV 2RRRV  R2.R	R	R
7      P                  p. p\        P                  ! R4      pVP                  V4       F  w  rgpVP                  RVRVRV/4       K  	  V# )Úcurlz-sz	--anyauthz-uÚ:z
--max-timeÚ20zhttp://z$/axis-cgi/record/list.cgi?&count=120T)Úcapture_outputÚtextzZ<recording[^>]*?recordingid="([^"]*)"[^>]*?eventtrigger="([^"]*)"[^>]*?starttime="([^"]*)"ÚridÚtrigÚt)Ú
subprocessÚrunÚstdoutÚreÚcompileÚfindallÚappend)	r	   ÚuÚpÚoutÚrowsÚre_evr   r   Ústs	   &&&      r   Úfetchr+      s”   € Ü
�.Š.˜& $¨°T¸a¸SÀÀ!À¸:À|ÐUYØ# B 4Ð'KÐLðNà(,°4ô9ç9?¹ð ð €DÜ�JŠJÐtÓu€EØŸ™ sÖ+‰ˆ�2Ø�‰�U˜C ¨¨s°BÐ7Ö8ñ ,à€Kr   c                  óŽ   € \         P                  P                  4       P                  p \        T u;8*  ;'       d
    \
        8  # u # )N)ÚdtÚdatetimeÚnowÚhourÚQUIET_STARTÚ	QUIET_END)Úhs    r   Ú	in_windowr4   %   s1   € Ü
�‰�‰Ó×Ñ€AÜ˜!×'Ô'œiÑ'Ð'Ñ'Ð'r   c                  ó~   €  \        \        4      P                  4       P                  4       #   \         d     R # i ; i)Ú )r   ÚPTRÚreadÚstripÚ	Exception© r   r   Úlast_pointerr<   )   s3   € ðÜ”C‹y�~‰~Ó×%Ñ%Ó'Ð'øÜô Úðús   ‚*- ­<»<c                óâ   € . pV  F=  pVR,          R8w  d   K  VR,          pWA8”  g   K$  VP                  WCR,          34       K?  	  V'       g   VR3# VP                  4        VR,          w  rVVR3# )zINew ACC_OptimizedAction events with starttime > pointer -> announce once.r   ÚACC_OptimizedActionr   r   FTéÿÿÿÿ)r$   Úsort)r(   ÚpointerÚnewÚrr   Úlast_tÚlast_rids   &&     r   Úpoints_to_announcerF   /   so   € à
€CÛˆØˆV�9Ð-Ô-ÙØˆc�FˆØŽ;Ø�J‰J˜˜U�8�}Ö%ñ ÷ Ø˜ˆ~ÐØ‡H�H„JØ˜2•wÑ€FØ�4ˆ<Ðr   c                  ó–  € \        4       w  rpR \        4       R^ /p\        RV ,          RR7         \        WV4      pV'       Ed=   VR ,          '       g>   V Uu. uF  qUR,          R8X  g   K  VR,          NK  	  ppV'       d   \	        V4      VR &   \        WCR ,          4      w  rxWsR ,          8”  d   WsR &   V'       dž   \        4       '       g    \        R\        \        3,          RR7       Mn\        P                  ! 4       VR,          ,
          \        8  d   \        R	RR7       M4\        R
RR7       \        P                  ! 4       VR&   \        \        4       \        \        R4      P                  VR ,          4       \        P"                  ! \$        4       EKp  u upi   \          d   p	\        RT	RR7        Rp	?	L@Rp	?	ii ; i)ÚptrÚlastuc   door_watch up â€” watching %s for people at the front door (cloud voice; my voice pending firewall)T)Úflushr   r>   r   u2   door event outside %02d-%02d window â€” suppressedu&   door event within cooldown â€” skippedu   DOOR VISITOR â€” announcingÚwzpoll error:N)r   r<   Úprintr+   ÚmaxrF   r4   r1   r2   ÚtimeÚCOOLDOWNr   r   r   r7   Úwriter:   ÚsleepÚPOLL)
r	   r%   r&   Ústater(   rC   ÚmtsrH   ÚringÚes
             r   ÚmainrW   >   s`  € Ü‹{�H€Bˆ1Ø”L“N F¨AÐ.€EÜ	Ð
oÐrtÕ
tð  }Aõ  BØ
ð	0Ü˜ “?ˆDßˆtØ˜U—|”|Ù+/ÓV©4 a°Vµ9Ð@UÑ3Uœ6˜1˜SŸ6˜6©4�CÐVßÜ'*¨3£x˜˜e™Ü.¨t¸5µ\ÓB‘	�Ø˜u�Ô%Ø#&˜%‘LßÜ$Ÿ;š;ÜÐRÔVaÔclÐUmÕmÐuyÖzÜŸš› u¨V¥}Õ4´xÔ?ÜÐFÈdÖSäÐ;À4ÕHÜ(,¯	ª	«˜˜f™Ü ¤œÜ”S˜#“×$Ñ$ U¨5¥\Ô2ô 	�
Š
”4×ùò% Wøô  ô 	0Ü�- ¨$×/Ò/ûð	0ús=   ²#F% ÁF% ÁF Á.F Á;AF% Ã CF% Æ F% Æ%GÆ0GÇGÚ__main__)#Ú__doc__r   Úosr!   r   rN   r.   r-   Úpathlibr   Ú__file__ÚresolveÚparentÚBASEr   r7   rR   rO   r1   r2   ÚIMPORTÚsysÚpathÚinsertÚstrÚdoor_announcer   r   r   r+   r4   r<   rF   rW   Ú__name__r;   r   r   Ú<module>rg      s²   ðñI÷ 6× 5× 5Ý áˆHƒ~×ÑÓ×&Ñ&€ÙÐKÓL€ØÐ!Õ!€à
€Ø
€Ø˜BÐ €ˆYØ	€ç	Û�—‘—‘ ¡3 t£9Ô-ß-ò)ò
ò(òòòð: ˆzÔÙ†Fñ r   