# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/cron_edit.txt installed on Tue Sep 29 09:36:52 2026)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
MAILTO=""
# Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').
# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# 
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# 
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 
# For more information see the manual pages of crontab(5) and cron(8)
# 
# m h  dom mon dow   command

# ========== IoT CRON ЗАДАЧИ ==========

# Можжевельник (каждый час, влажность)
#0 * * * * /usr/bin/php /var/www/html/iot/cron_soil_moisture.php >> /var/log/cron_soil.log 2>&1

# Нагреватель аквариума (каждые 5 минут)
#29.09.2026 отключено: нагрев ведут правила панели 196/197 (проверено вживую). Вернуть - убрать # в начале строки.
#*/20 * * * * /usr/bin/php /var/www/html/iot/cron_fish_heater.php >> /var/log/cron_heater.log 2>&1

# Кормушка (в 9:00, 12:00, 18:00)
0 10 * * * /usr/bin/php /var/www/html/iot/cron_fish_feeder.php >> /var/log/cron_feeder.log 2>&1

# Движение (email раз в час, если было движение)
#0 * * * * /usr/bin/php /var/www/html/iot/cron_motion_hourly.php >> /var/log/cron_motion.log 2>&1

#0 * * * * /usr/bin/php /var/www/html/iot/cron_polivayka.php >> /var/log/cron_polivayka.log 2>&1

#0 10 * * * /usr/bin/php /var/www/html/iot/cron_fish_light.php >> /var/log/fish-light.log 2>&1
#0 20 * * * /usr/bin/php /var/www/html/iot/cron_fish_light.php >> /var/log/fish-light.log 2>&1

#0 7 * * * /usr/bin/php /var/www/html/iot/cron_fish_filter.php >> /var/log/fish-filter.log 2>&1
#0 1 * * * /usr/bin/php /var/www/html/iot/cron_fish_filter.php >> /var/log/fish-filter.log 2>&1

# Проверка push-уведомлений каждую минуту
* * * * * /usr/bin/php /var/www/html/iot/cron_push.php >> /var/log/push_cron.log 2>&1
* * * * * /usr/bin/php /var/www/html/iot/cron_automation_emails.php >> /var/log/cron_automation_emails.log 2>&1

0 10 * * * /usr/local/bin/export_cron.sh

