</>JoomCoder
Easy Time Manager — Documentation

Cron — Missing Reports Notifications

The cron feature sends automated email reminders to employees who haven't logged enough hours on working days.

How It Works

  1. The cron checks the last N working days (set by "Notification days count").
  2. For each employee with project assignments, it compares logged hours against the "Number of required hours" threshold.
  3. Days on approved leave are excluded.
  4. Configured weekend days are skipped.
  5. Employees with any days below the threshold receive an email listing those dates.

Prerequisites

In Options > Missing Reports Notifications (see Component Options):

  1. Set Enable notifications to Yes.
  2. Set Number of required hours (e.g. 8 for a standard workday).
  3. Set Notification days count (how many past days to check).
  4. Set Weekends (which days are non-working).
  5. Set Check today's hours to Yes or No.

Cron URL

The component auto-generates a read-only cron URL in the settings:

https://your-site.com/index.php?option=com_easytimemanager&view=cron&salt=XXXXXXXXXX

The salt is a CRC32 hash of your Joomla secret key, which prevents unauthorised triggering.

Setting Up the Cron Job

Web-based cron (cPanel, Plesk, etc.): copy the Cron URL from the settings and schedule it at your interval (e.g. daily at 18:00).

Command line — Joomla CLI:

# Run daily at 18:00
0 18 * * * /usr/bin/php /path/to/your/joomla/cli/joomla.php easytimemanager:cron

Command line — curl/wget with the cron URL:

0 18 * * * curl -s "https://your-site.com/index.php?option=com_easytimemanager&view=cron&salt=XXXXXXXXXX" > /dev/null

Duplicate-Run Protection

Each execution is recorded in the #__tw_notifications table. The cron skips execution if another run started within the last five hours.

Email Content

The notification email includes a greeting with the employee's name and a list of dates where hours were missing or below the threshold. It is sent as plain text from the Joomla site's configured sender address.