kurzer Überblick:
Werde dann zukünftig als "root" arbeiten um dem ganzem aus dem weg zu gehen.
und Ja die crontab (root) sieht deutlich anders aus. Es gibt also für jeden User eine eigene.
Ich habe den Eintrag als "root" ergänzt.
Starten will die crontab aber offensichtlich nicht.
hier mal die crontab:
Code: Alles auswählen
root@solaranzeige:/var/www/html# crontab -l
# 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
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
MAILTO=""
#@reboot sleep 40 && /solaranzeige/support >/dev/null
@reboot /var/www/html/usb_init.php >/dev/null
* * * * * /var/www/html/regler_auslesen.php >/dev/null
* * * * * /var/www/html/checkreboot.sh >/dev/null
20,50 * * * * /var/www/html/wetterdaten.php >/dev/null
*/30 * * * * /var/www/html/prognose.php >/dev/null
* * * * * /var/www/html/mqtt_prozess.php >/dev/null
55 23 * * * /var/www/html/wartung.php >/dev/null
#* * * * * /var/www/html/wallbox_steuerung.php >/dev/null
#01 */4 * * * /var/www/html/awattar.php >/dev/null
#* * * * * /var/www/html/automation.php >/dev/null
in der dwd_debug.txt steht nach dem Durchlauf den ich in der
prognose.php gestartet habe folgendes:
Code: Alles auswählen
root@solaranzeige:/var/www/html# cat dwd_debug.txt
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): opendata.dwd.de:443
DEBUG:urllib3.connectionpool:https://opendata.dwd.de:443 "GET /weather/local_forecasts/mos/MOSMIX_L/single_stations/10567/kml HTTP/1.1" 301 162
DEBUG:urllib3.connectionpool:https://opendata.dwd.de:443 "GET /weather/local_forecasts/mos/MOSMIX_L/single_stations/10567/kml/ HTTP/1.1" 200 None
DEBUG:root:,GetURLForLatest :DWD Filetimestamp found : 16-Mar-2021-09:51
DEBUG:root:,GetURLForLatest :DWD Filetimestamp found : 1615884660.0
DEBUG:root:,dwdforecast : -BEFORE if- time comparison : 1615884660.0 1534800680.0
DEBUG:root:,dwdforecast : -in if- time comparison : 1615884660.0 1534800680.0
DEBUG:root:,dwdforecast : -File that I extract is zipfile : MOSMIX_L_2021031609_10567.kml
DEBUG:root:,Subroutine dwdforecast -we have used DWD file from time : 1615884660.0 2021-03-16T09:51:00.000Z
DEBUG:root:From dwdforecast - we have found a true commit and have updated the database at the following dwd time : 1615884660.0
ist das so richtig für mich sieht das nach Fehlern aus.