hass-aarlo
hass-aarlo copied to clipboard
Library Delay of 30 minutes
I have noticed that there is a delay of approximately 30 minutes before a new clip is sent to the library and subsequently downloaded. It's been like this for a long time, i've been using it since February or so and i'm not sure if the library has ever updated on its own.
The 'status' on my lovelace card is updated rightaway and shows recording, and then it goes to recently active and the snapshot is updated right away but my library never has the latest clip... My streaming works fine.
If I restart HA it updates the library right away. I feel like i'm missing something incredibly obvious but i did spend some time looking through the issues and again at the docs before posting :) Thanks for your great work
Here is my config for the relevant sections. I am using alarm though I didn't put it below, and light.
aarlo:
username: !secret arlo_email
password: !secret aarlo_pw
refresh_devices_every: 2
stream_timeout: 120
tfa_host: imap.gmail.com
tfa_username: !secret email
tfa_password: !secret pw
save_media_to: "/config/media/${SN}/${Y}/${m}/${d}/${T}"
save_updates_to: "/config/media_still/${SN}/${Y}/${m}/${d}/${T}"
camera:
- platform: aarlo
sensor:
- platform: aarlo
monitored_conditions:
- total_cameras
- last_capture
- recent_activity
- captured_today
- battery_level
- signal_strength
- temperature
- humidity
- air_quality
switch:
- platform: aarlo
siren: True
all_sirens: True
snapshot: True
doorbell_silence: True
siren_volume: 1
siren_duration: 10
Well this morning it seems to be working fine. I tested on a couple cameras and its loading into the library right away. I think that the problem is more frequent in the evening / night. I wonder if its a date issue. My timestamps are all 4 hours ahead and maybe once the timestamp goes to the next day it causes the problem?
I'll keep an eye on it and report back. If I can get the library working right away all the time then I should be able to feed those clips into an RTSP server so that frigate can analyze the feeds. I opened another issue for frigate #484 where I will record my progress separately on that front.
I didn't have chance to take a look at this so please keep me updated. I'll poke around in the download code and make sure it's nothing obvious at my end.
One thing to do is turn on the debug and look out for mediaupdated
events. They should be happening when a video appears.
hello! question? if you use save media to libary do you still need a subscription from arlo doorbell or can you stop that?
hello! question? if you use save media to libary do you still need a subscription from arlo doorbell or can you stop that?
I don’t have a subscription to any arlo services. But I’m using older arlo pro and pro 2 cameras that included 7 days of cloud storage. I have an audio doorbell as well. Hope that helps you…
ok thanks mayer not right place to ask this kind of questions so thanks for the quick response i thought you also had video doorbell! thanks again
Its been working perfectly, which is great; but it was a problem at one point as I was using the Arlo app and not HA because of this specific issue. Occasionally I was getting some errors logging in after a restart, though I haven't seen that lately. And I just upgraded recently to 7.1.7 as I was running an older version. Anyways I'll keep an eye on it and report back. Cheers and thank you.
Ah ha! So tonight while i was testing my frigate monitor inotify script, it seems that I am experience the media library update problem. RIght now, at 11:33, the last file I have saved in my media, Sept 28 folder was at 7:53:56 - but the timestamp is 23:53:56. Since then I have had a lot of activity, but nothing more has been saved.
I have everything debug on and I am not seeing any media being saved. I have my log but is there anything I need to remove before I post it?
I am also going to try and modify the save location folder structure to a flat structure and see if that helps.
Once I modified the config save location to save_media_to: "/config/media/${SN}/${Y}${m}${d}_${T}" and rebooted it was able to find the files in the library. Now that I think about it the save location is different than my library problem because I noticed the library problem long before I used the save_media...
So it definately seems related to the timestamp issue and the changing of days at 8:00 and having problems finding the new days because it is still the old day... Ill keep an eye on it moving forward as well...
it has happened again tonight. the snapshot of the camera is updated, showing an image from the most recent clip, but when I go into the library it doesn't have any of the videos after 8:00 EST (but my timestamp is +4 hours ahead).
Could it be something with how the library is filtering the videos by date?
I'm working on positng my log now
log files when it finishes recording before 8:00
2021-09-29 23:35:23 DEBUG (ArloEventStream) [pyaarlo] sending cameras/XXXXXXXXXXXX to XXXXXXXXXXXX
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [pyaarlo] back CAMERA got one cameras/XXXXXXXXXXXX
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [pyaarlo] got a stream/recording stop
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [pyaarlo] turning recent ON for back
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:back:recentActivity:True
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Recent Activity back:recentActivity:True
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [pyaarlo] removing streaming activity state
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [pyaarlo] _event::idle::reqs='set()',local='set()',remote='set()'
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXX/activityState=idle
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.switch] callback:back Snapshot:activityState:idle
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:back:activityState:idle
2021-09-29 23:35:23 DEBUG (ArloEventStream) [pyaarlo] sending cameras/XXXXXXXXXXXX to XXXXXXXXXXXX
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [pyaarlo] back CAMERA got one cameras/XXXXXXXXXXXX
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [pyaarlo] recent activity key
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [pyaarlo] turning recent ON for back
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:back:recentActivity:True
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Recent Activity back:recentActivity:True
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXX/motionDetected=False
2021-09-29 23:35:23 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.binary_sensor] callback:Motion back:motionDetected:False
2021-09-29 23:35:24 DEBUG (ArloEventStream) [pyaarlo] sending cameras/XXXXXXXXXXXX to XXXXXXXXXXXX
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] back CAMERA got one cameras/XXXXXXXXXXXX
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] removing streaming activity state
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] _event::idle::reqs='set()',local='set()',remote='set()'
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXX/activityState=idle
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.switch] callback:back Snapshot:activityState:idle
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:back:activityState:idle
2021-09-29 23:35:24 DEBUG (ArloEventStream) [pyaarlo] sending mediaUploadNotification to XXXXXXXXXXXX
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] back CAMERA got one mediaUploadNotification
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXX/mediaObjectCount=4648
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXX/presignedLastImageUrl=https://arlos3-prod-z1.s3.ama
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:back:presignedLastImageUrl:https://arlos3-prod-z1.s3.amazonaws.com/XXXXXXX/XXXX
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] back -> thumbnail changed
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] back -> recording stopped
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] queueing image library update
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] back -> new recording ready
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] turning recent ON for back
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:back:recentActivity:True
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Recent Activity back:recentActivity:True
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] updating image for back
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXX/lastImageSource=capture/09-29 23:35
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:back:lastImageSource:capture/09-29 23:35
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] back capture updated
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXX/lastCapture=09-29 23:35
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Last back:lastCapture:09-29 23:35
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXX/presignedLastImageData=b'\xff\xd8\xff\xfe\x00\x10La
2021-09-29 23:35:24 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:back:presignedLastImageData:b'\xff\xd8\xff\xfe\x00\x10Lavc58.35.100\x00\xff\xdb\x00C\x00\x08\x04\x04\x04\x04
2021-09-29 23:35:25 DEBUG (ArloBackgroundWorker) [pyaarlo] updating image library
2021-09-29 23:35:25 INFO (MainThread) [homeassistant.components.automation.main_lights_on] main lights on: Running automation actions
2021-09-29 23:35:25 INFO (MainThread) [homeassistant.components.automation.main_lights_on] main lights on: Executing step call service
2021-09-29 23:35:26 INFO (MainThread) [homeassistant.components.automation.dim_light] DIm light: Running automation actions
2021-09-29 23:35:26 INFO (MainThread) [homeassistant.components.automation.dim_light] DIm light: Choose at step 1: default: Running automation actions
2021-09-29 23:35:26 INFO (MainThread) [homeassistant.components.automation.dim_light] DIm light: Choose at step 1: default: Choose at step 1: default: Running automation actions
2021-09-29 23:35:26 INFO (MainThread) [homeassistant.components.automation.dim_light] DIm light: Choose at step 1: default: Choose at step 1: default: Choose at step 1: default: Running automation actions
2021-09-29 23:35:26 INFO (MainThread) [homeassistant.components.automation.dim_light] DIm light: Choose at step 1: default: Choose at step 1: default: Choose at step 2: default: Running automation actions
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [pyaarlo] adding snapshot for back
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [pyaarlo] adding XXXXXXXXXXXX:2021-09-29T23:35:04 for back
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [pyaarlo] adding snapshot for garage
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [pyaarlo] adding snapshot for front door
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [pyaarlo] ml:update-count=43
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [pyaarlo] reloading cache for back
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXX/capturedToday=3
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Captured Today back:capturedToday:3
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXX/lastCapture=09-29 23:35
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Last back:lastCapture:09-29 23:35
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:back:mediaUploadNotification:True
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [pyaarlo] snapshot updated for media back
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXX/presignedFullFrameSnapshotUrl=https://arlos3-prod-z
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [pyaarlo] image updated for media back
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXX/presignedLastImageUrl=https://arlos3-prod-z1.arlo.c
2021-09-29 23:35:26 DEBUG (ArloMediaDownloader) [pyaarlo] dowloading for back --> /config/media/XXXXXXXXXXXX/XXXXXXXXXXXX_2021_09_29_23:35:04.mp4
2021-09-29 23:35:26 DEBUG (ArloBackgroundWorker) [pyaarlo] pinging bridgey
log files when finishing recording after 8:00
2021-09-30 01:20:18 DEBUG (ArloEventStream) [pyaarlo] sending cameras/XXXXXXXXXXXXX to XXXXXXXXXXXXX
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] front door CAMERA got one cameras/XXXXXXXXXXXXX
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] got a stream/recording stop
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] turning recent ON for front door
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:front door:recentActivity:True
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Recent Activity front door:recentActivity:True
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] removing streaming activity state
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] _event::idle::reqs='set()',local='set()',remote='set()'
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXXX/activityState=idle
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.switch] callback:front door Snapshot:activityState:idle
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:front door:activityState:idle
2021-09-30 01:20:18 DEBUG (ArloEventStream) [pyaarlo] sending cameras/XXXXXXXXXXXXX to XXXXXXXXXXXXX
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] front door CAMERA got one cameras/XXXXXXXXXXXXX
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] recent activity key
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] turning recent ON for front door
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:front door:recentActivity:True
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Recent Activity front door:recentActivity:True
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXXX/motionDetected=False
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.binary_sensor] callback:Motion front door:motionDetected:False
2021-09-30 01:20:18 DEBUG (ArloEventStream) [pyaarlo] sending mediaUploadNotification to XXXXXXXXXXXXX
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] front door CAMERA got one mediaUploadNotification
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXXX/mediaObjectCount=15214
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXXX/presignedLastImageUrl=https://arlos3-prod-z1.s3.ama
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:front door:presignedLastImageUrl:https://arlos3-prod-z1.s3.amazonaws.com/XXXXXXX/XXXXXXX
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] front door -> thumbnail changed
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] front door -> recording stopped
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] queueing image library update
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] front door -> new recording ready
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] turning recent ON for front door
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:front door:recentActivity:True
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Recent Activity front door:recentActivity:True
2021-09-30 01:20:18 DEBUG (ArloEventStream) [pyaarlo] sending cameras/XXXXXXXXXXXXX to XXXXXXXXXXXXX
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] updating image for front door
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXXX/lastImageSource=capture/09-30 01:20
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:front door:lastImageSource:capture/09-30 01:20
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] front_door capture updated
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXXX/lastCapture=09-30 01:20
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Last front door:lastCapture:09-30 01:20
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXXX/presignedLastImageData=b'\xff\xd8\xff\xfe\x00\x10La
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:front door:presignedLastImageData:b'\xff\xd8\xff\xfe\x00\x10Lavc58.35.100\x00\xff\xdb\x00C\x00\x08\x04\x04\x04\x04
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] front door CAMERA got one cameras/XXXXXXXXXXXXX
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] removing streaming activity state
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] _event::idle::reqs='set()',local='set()',remote='set()'
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXXX/activityState=idle
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.switch] callback:front door Snapshot:activityState:idle
2021-09-30 01:20:18 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:front door:activityState:idle
2021-09-30 01:20:19 DEBUG (ArloBackgroundWorker) [pyaarlo] updating image library
2021-09-30 01:20:20 DEBUG (ArloBackgroundWorker) [pyaarlo] ml:update-count=52
2021-09-30 01:20:20 DEBUG (ArloBackgroundWorker) [pyaarlo] reloading cache for front door
2021-09-30 01:20:20 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXXX/capturedToday=0
2021-09-30 01:20:20 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Captured Today front door:capturedToday:0
2021-09-30 01:20:20 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXXX/lastCapture=09-29 23:32
2021-09-30 01:20:20 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.sensor] callback:Last front door:lastCapture:09-29 23:32
2021-09-30 01:20:20 DEBUG (ArloBackgroundWorker) [custom_components.aarlo.camera] callback:front door:mediaUploadNotification:True
2021-09-30 01:20:20 DEBUG (ArloBackgroundWorker) [pyaarlo] image updated for media front door
2021-09-30 01:20:20 DEBUG (ArloBackgroundWorker) [pyaarlo] set:ArloCamera/XXXXXXXXXXXXX/presignedLastImageUrl=https://arlos3-prod-z1.arlo.c
2021-09-30 01:20:26 DEBUG (ArloBackgroundWorker) [pyaarlo] pinging bridgey
the only thing i can notice that is off is at the end of the second one it has a last capture as 09-29 23:32, which was the last capture before 8:00, but was in reality the 3rd last capture. There was the capture at 9:20, and one shortly before at 9:03.
Good timing, I was just about to ask for some logs.
The code doesn't filter by anything but there is a possibility of something going wrong when it creates a name.
I'll take a look at the debug and maybe add some extra lines if needed.
edit: Are there any tracebacks earlier on? And look for the word ArloMediaDownloader
, it's responsible for doing the actual downloads.
edit2: I might know what the issue is... let me think about it. And you're right, it's a timezone thing.
@georgejung You were right, the problem is the timezone on your device doesn't match the timezone Arlo is using. The timestamps are in the local time the device is using so, in the second trace, it's asking Arlo for tomorrow's clips - the 30th - of which there are none.
Is your home assistant device and Arlo in the same time zone?
edit: Acknowledge you being right!
Nope my HA was on UTC while Arlo was Ottawa time. I upated my env variable in my HA container and restarted, We'll see tonight but I suspect it will do the trick. Thanks
Funny, that's the time I'm on!
I'm going to push a change anyway. I'll grab 2 days of recordings when looking for updates. Looking at the code I realised there is chance we'll miss recordings that end a couple of seconds before midnight.