> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trurec.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# After-hours activity

> Get an alert when there's someone on site while it's closed, such as overnight or at weekends. You set your opening hours, day by day.

*Tell me when there's activity on site when there shouldn't be.*

You tell TruRec AI your opening hours, day by day. It watches every other hour of the week, and alerts you when a person is in view while you're closed.

## Good for

* Warehouses, yards and loading docks overnight
* Offices and stores after closing
* Corridors and locked rooms at weekends

## Set it up

**1. Set your opening hours**

For **When is "after hours" at this site?**, keep **Whenever we're closed**. Then, under **When are you open?**, set the opening and closing time for each day. It starts at 09:00 to 17:00 on weekdays, with Saturday and Sunday closed.

* **Tap a day to mark it closed.** A closed day is watched all day.
* **Hours that run past midnight are fine,** such as 18:00 to 02:00.
* **Every hour you're closed is watched,** overnight and at weekends. With the default hours, that's Friday 17:00 to Monday 09:00, and 17:00 to 09:00 on weeknights.

The app shows the hours it will watch. If you set every day as open around the clock, it warns you, because nothing would ever alert.

**2. Choose what should count**

Choose **People**. Vehicle detection isn't available yet.

**3. Choose where it matters**

For **Does this only matter in part of the view?**, **Anywhere in view** is usually right for a corridor or a locked room. Choose **Only inside an area I mark** if the camera also sees a public footpath, so people walking past don't set it off. The rest of the view is still sent and analysed. See [Mark an area](https://docs.trurec.ai/use-cases/drawing-zones.md).

**4. Choose how long before an alert**

Under **Fine-tune**, choose how long someone must be in view before TruRec AI alerts you, from 1 to 120 seconds. The default is 5 seconds, which filters out someone walking past the end of a corridor. A shorter time catches more, and sends more alerts. A longer time sends fewer, but can miss someone who's only in view briefly.

**5. Choose how urgent it is**

Someone on site after hours is usually worth knowing about now, so **Urgent** is the default: alerts are emailed to your alert list. Urgency applies to all your after-hours activity jobs together. See [Urgency applies to the whole use case](https://docs.trurec.ai/alerts/notification-routing.md#urgency-applies-to-the-whole-use-case).

![The After-hours activity panel for front-door. Under When is after hours at this site?, Whenever we're closed is chosen. Under When are you open?, Monday to Friday each show 09:00 am to 05:00 pm, and Saturday and Sunday show Closed. Below: We watch Fri 17:00 to Mon 09:00, and Mon–Thu 17:00 to 09:00.](https://mintcdn.com/trurec-ai-public-docs/9VQKp94LpB0n4hkt/images/use-cases/after-hours-opening-hours.png?fit=max\&auto=format\&n=9VQKp94LpB0n4hkt\&q=85\&s=ba71e9966f6b13980b57c801440fc5ba)

The after-hours activity questions: Whenever we're closed, opening hours of 9:00 am to 5:00 pm Monday to Friday with Saturday and Sunday closed, and the hours that will be watched.

## What you'll get

Each alert shows the camera and the time, usually with a short clip. Before you save, you'll see a summary, for example:

> On `warehouse-aisle-3`, you'll be alerted when a person is anywhere in view for more than 5 seconds, whenever you're closed: Fri 17:00 to Mon 09:00, and Mon–Thu 17:00 to 09:00.

## Limits

* It can't tell you who someone is.
* It won't call anyone. Urgent alerts are emailed to your alert list.
* It only detects people. Vehicle detection isn't available yet.
* It can't see through glare or heavy rain, or past a camera that's been knocked out of position.
* **Not validated at night yet.** We haven't finished measuring how well it works. So far it's been tested on daytime indoor scenes. At night, on infrared, or on high-mounted cameras, expect more missed and wrong alerts. That matters here, because after hours is often dark.

## Tips

* **Too many alerts?** Tighten the area first. Then raise the time in view a little at a time.
* **Cleaners or security on a round?** Mark an area that leaves out their usual route, or [acknowledge](https://docs.trurec.ai/alerts/reviewing-and-flagging.md) their alerts as they come in.

See [Reduce false alerts](https://docs.trurec.ai/alerts/tuning-false-positives.md) for more.

> [!NOTE]
>
> **On Enterprise:** use cases are planned with you, so settings and limits can differ from this page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.