Pośpieszyłem się z napisaniem posta skasowałem go a teraz zauważyłem, że odpisałeś. Z pamięci przywracam co pisałem
Udało się uruchomic, ale mam kilka błędów.
Po 1: przy załączeniu np. światła w sypialni przekaźnik klika wiadomo, ale po chwili pojawia się
Warning: file_put_contents(/control/data/timer_3): failed to open stream: Permission denied in /control/config.php on line 87
Warning: Cannot modify header information - headers already sent by (output started at /control/config.php:87) in /control/www/index.php on line 53
Po 2: nie zapisują mi się dane w sensors. Aktualną temp. pokazuje ok. Po wykonaniu skryptu w cronie mam:
php-cgi cron.php
X-Powered-By: PHP/5.4.5
Content-type: text/html
<br />
<b>Warning</b>: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in <b>/control/cron.php</b> on line <b>21</b><br />
<br />
<b>Warning</b>: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in <b>/control/cron.php</b> on line <b>30</b><br />
<br />
<b>Warning</b>: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in <b>/control/cron.php</b> on line <b>31</b><br />
Tutaj też chyba coś nie halo? Czepia się o czas - ale skonfigurowałem wszystko zgodnie z poradnika z LAMP'a.
Dodałem data.timezone na Warszawę.
Edit: ok nie mam już błędów przy wykonywaniu cron.php (brakowało zone_europe). Jednak nadal nie zapisują mi się dane z czujników ;/
Tak więc przekaźniki mam wszystko działa pod pluginem usb relay gargoyle. Plik RelayBoard wyszukałem w WinSCP. Miałem go w katalogu overlay/bin.
Przeniosłem do bin, nadałem chmod 775 i ruszyło. Time zone - jak już wspomniałem brakowało pakietu zone-europe w php - doinstalowałem - działa.
Reboot routera sprawił, że zaczęły pojawiać się dane z sensorów w folderze sensors.
Jednak nadal mam problem - po włączeniu np światło na stronie, przekaźnik klika włącza się i pojawia się błąd
Warning: file_put_contents(/control/data/timer_3): failed to open stream: Permission denied in /control/config.php on line 87
Warning: Cannot modify header information - headers already sent by (output started at /control/config.php:87) in /control/www/index.php on line 53
Tego nie udało mi się pozbyc. Muszę poczekac 15 min zobaczyc czy od kliknie. Nie ma dostępu ale gdzie i dlaczego - tego nie wiem.
Edit - Niestety - odklikiwanie nie działa. Spowodowane chyba jest powyższym błędem.