[Настройка] onNewMinute

Описание настройки чего либо

Модераторы: immortal, newz20

ErmolenkoM
Сообщения: 560
Зарегистрирован: Ср сен 04, 2013 10:31 am
Откуда: Самара
Благодарил (а): 99 раз
Поблагодарили: 140 раз
Контактная информация:

Re: onNewMinute

Сообщение ErmolenkoM » Вт ноя 19, 2013 1:29 pm

Сейчас тупо дал всему в папке var/www права 777
Попробуй посмотреть права во вложенных папках, и на сами папки.

Код: Выделить всё

Меняем права доступа к файлам
find /var/www/cached/ -type d -exec chmod 777 {} \;
find /var/www/cached/ -type f -exec chmod 666 {} \;
find /var/www/cms/ -type d -exec chmod 777 {} \;
find /var/www/cms/ -type f -exec chmod 666 {} \;

find /var/www/debmes/ -type d -exec chmod 777 {} \;
find /var/www/debmes/ -type f -exec chmod 666 {} \;
find /var/www/modules/ -type d -exec chmod 777 {} \;
find /var/www/modules/ -type f -exec chmod 666 {} \;
find /var/www/templates/ -type d -exec chmod 777 {} \;
find /var/www/templates/ -type f -exec chmod 666 {} \;
find /var/www/objects/ -type d -exec chmod 777 {} \;
find /var/www/objects/ -type f -exec chmod 666 {} \;
find /var/www/rc/ -type d -exec chmod 777 {} \;
find /var/www/rc/ -type f -exec chmod 666 {} \;
find /var/www/saverestore/ -type d -exec chmod 777 {} \;
find /var/www/saverestore/ -type f -exec chmod 666 {} \;
Или отключи НОТИСЫ

Код: Выделить всё

Убираем нотификации:
error_reporting  =  E_ALL & ~E_NOTICE
в ubuntu, как оказалось, это нужно в двух php.ini менять -- один, который /etc/php5/apache2/php.ini (вроде так), а второй /etc/php5/cli/php.ini , потому что первый относится к веб-серверу, а второй к запуску из командной строки.
и выложи ошибки.
Загляни в debmes
Попробуй из терминала запустить главный цикл.
aka msh555
Cubian на Cubietruck, Connect
Toutlemond
Сообщения: 27
Зарегистрирован: Ср дек 05, 2012 10:58 am
Благодарил (а): 0
Поблагодарили: 1 раз

Re: onNewMinute

Сообщение Toutlemond » Ср ноя 27, 2013 12:01 pm

Привет!
Спасибо! Права проверил, все есть. Нотисы отключил!
Заодно перехал с убунты 12.10 на дебиан 7 :lol:
Таймер отныне работает. Незнаю что из этого поспособствовало.
Но вот цикл отваливается раз в 20-40 минут....

запуск цикла выводит следующее(сорри за кучу мусора :-) ) -

Код: Выделить всё

$ ./sshcycle.sh
CONNECTED TO DB
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
Running startup maintenance
admin_users ...OK
app_quotes ...OK
btdevices ...OK
calendar_categories ...OK
calendar_events ...OK
classes ...OK
collections ...OK
commands ...OK
elements ...OK
elm_states ...OK
events ...OK
gpsactions ...OK
gpsdevices ...OK
gpslocations ...OK
gpslog ...OK
history ...OK
jobs ...OK
layouts ...OK
locations ...OK
media_favorites ...OK
methods ...OK
mqtt ...OK
newsletter ...OK
objects ...OK
owdevices ...OK
owdisplays ...OK
owproperties ...OK
patterns ...OK
phistory ...OK
pinghosts ...OK
prod_categories ...OK
product_categories ...OK
product_codes ...OK
product_log ...OK
products ...OK
project_modules ...OK
properties ...OK
pvalues ...OK
readit_channels ...OK
readit_urls ...OK
rss_channels ...OK
rss_items ...OK
safe_execs ...OK
scenes ...OK
script_categories ...OK
scripts ...OK
security_rules ...OK
settings ...OK
shoplist ...OK
shopping_list_items ...OK
shoutrooms ...OK
shouts ...OK
snmpdevices ...OK
snmpproperties ...OK
tdwiki ...OK
terminals ...OK
usbdevices ...OK
userlog ...OK
users ...OK
watchfolders ...OK
webvars ...OK
zwave_devices ...OK
zwave_properties ...OK
PHP Strict Standards:  Declaration of objects::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::install() should be compatible with module::install($parent_name = '') in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/objects/objects.class.php on line 609
Starting ./scripts/cycle_snmp.php ... OK
Starting ./scripts/cycle_watchfolders.php ... OK
Starting ./scripts/cycle_ping.php ... OK
Starting ./scripts/cycle_main.php ... OK
Starting ./scripts/cycle_skype.php ... OK
Starting ./scripts/cycle_states.php ... OK
Starting ./scripts/cycle_onewire_starred.php ... OK
Starting ./scripts/cycle_X101_skype.php ... OK
Starting ./scripts/cycle_onewire.php ... OK
Starting ./scripts/cycle_zwave.php ... OK
Starting ./scripts/cycle_bluetooth.php ... OK
Starting ./scripts/cycle_scheduler.php ... OK
Starting ./scripts/cycle_execs.php ... OK
Starting ./scripts/cycle_rss.php ... OK
Starting ./scripts/cycle_webvars.php ... OK
ALL CYCLES STARTED
PHP Strict Standards:  Only variables should be passed by reference in /var/www/lib/threads.php on line 71
PHP Strict Standards:  Only variables should be passed by reference in /var/www/lib/threads.php on line 71
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of pinghosts::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/pinghosts/pinghosts.class.php on line 374
PHP Strict Standards:  Declaration of objects::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of snmpdevices::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/snmpdevices/snmpdevices.class.php on line 385
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of objects::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of objects::install() should be compatible with module::install($parent_name = '') in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of zwave::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/zwave/zwave.class.php on line 712
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of rss_channels::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/rss_channels/rss_channels.class.php on line 352
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of watchfolders::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/watchfolders/watchfolders.class.php on line 353
PHP Strict Standards:  Declaration of objects::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of webvars::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/webvars/webvars.class.php on line 354
PHP Strict Standards:  Declaration of objects::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::install() should be compatible with module::install($parent_name = '') in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::install() should be compatible with module::install($parent_name = '') in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of rss_channels::install() should be compatible with module::install($parent_name = '') in /var/www/modules/rss_channels/rss_channels.class.php on line 352
PHP Strict Standards:  Declaration of rss_channels::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/rss_channels/rss_channels.class.php on line 352
PHP Strict Standards:  Declaration of objects::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::install() should be compatible with module::install($parent_name = '') in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of classes::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/classes/classes.class.php on line 626
PHP Strict Standards:  Declaration of classes::install() should be compatible with module::install($parent_name = '') in /var/www/modules/classes/classes.class.php on line 626
PHP Strict Standards:  Declaration of classes::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/classes/classes.class.php on line 626
PHP Strict Standards:  Declaration of objects::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::install() should be compatible with module::install($parent_name = '') in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::install() should be compatible with module::install($parent_name = '') in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of objects::install() should be compatible with module::install($parent_name = '') in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of classes::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/classes/classes.class.php on line 626
PHP Strict Standards:  Declaration of classes::install() should be compatible with module::install($parent_name = '') in /var/www/modules/classes/classes.class.php on line 626
PHP Strict Standards:  Declaration of classes::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/classes/classes.class.php on line 626
PHP Strict Standards:  Declaration of control_modules::install() should be compatible with module::install($parent_name = '') in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of control_modules::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/control_modules/control_modules.class.php on line 193
PHP Strict Standards:  Declaration of objects::saveParams() should be compatible with module::saveParams($data = 1) in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::install() should be compatible with module::install($parent_name = '') in /var/www/modules/objects/objects.class.php on line 609
PHP Strict Standards:  Declaration of objects::dbInstall() should be compatible with module::dbInstall($data) in /var/www/modules/objects/objects.class.php on line 609
Toutlemond
Сообщения: 27
Зарегистрирован: Ср дек 05, 2012 10:58 am
Благодарил (а): 0
Поблагодарили: 1 раз

Re: onNewMinute

Сообщение Toutlemond » Пн дек 02, 2013 1:32 pm

Ребят, что у всех стабильно работает в линуксе дни напролет цикл?
ErmolenkoM
Сообщения: 560
Зарегистрирован: Ср сен 04, 2013 10:31 am
Откуда: Самара
Благодарил (а): 99 раз
Поблагодарили: 140 раз
Контактная информация:

Re: onNewMinute

Сообщение ErmolenkoM » Пн дек 02, 2013 5:30 pm

Убунта 12. Цикл работает неделями. Была проблема, но падал только один execs, и то из-за моих кривых рук.
На RPI то же проблемы с циклами исчезли после разначи прав 777 всем файлам
aka msh555
Cubian на Cubietruck, Connect
Toutlemond
Сообщения: 27
Зарегистрирован: Ср дек 05, 2012 10:58 am
Благодарил (а): 0
Поблагодарили: 1 раз

Re: onNewMinute

Сообщение Toutlemond » Вт дек 03, 2013 8:49 pm

занятно... значит падает тоже от моих кривых рук:-)
ибо систему я переношу уже много раз и многое в ней изменено. забекаплю и поставлю завтра с нуля.
спасибо!
immortal
Сообщения: 1138
Зарегистрирован: Вт янв 29, 2013 9:16 am
Откуда: Белозерск
Благодарил (а): 16 раз
Поблагодарили: 400 раз
Контактная информация:

Re: onNewMinute

Сообщение immortal » Вт дек 24, 2013 10:05 pm

хм, вроде два одинаковых сервака на Ubuntu (zentyal 3.3) на одном работает onNewMinute на втором нет

Код: Выделить всё

...
ALL CYCLES STARTED
22:58:33 running cycle_states.php
22:58:33 running cycle_ping.php
22:58:33 running cycle_main.php
22:58:33 running cycle_scheduler.php
22:58:33 running cycle_watchfolders.php
22:58:33 running cycle_execs.php
22:58:33 running cycle_rss.php
Running Bluetooth monitor.22:58:33 running cycle_webvars.php

22:58:33 Closing thread: php -q ./scripts/cycle_onewire.php --params "a:0:{}"
22:58:33 Closing thread: php -q ./scripts/cycle_zwave.php --params "a:0:{}"
22:58:33 Closing thread: DISPLAY=:101 php ./scripts/cycle_X101_skype.php --params "a:0:{}"Checking webvar: http://pogoda.yandex.ru/vologda/

22:58:33 Closing thread: php -q ./scripts/cycle_onewire_starred.php --params "a:0:{}"
22:58:34 Closing thread: php -q ./scripts/cycle_skype.php --params "a:0:{}"
22:58:34 Closing thread: php -q ./scripts/cycle_snmp.php --params "a:0:{}"22:58:34 running cycle_ping.php
22:58:34 running cycle_main.php
22:58:34 running cycle_scheduler.php
22:58:34 running cycle_watchfolders.php
22:58:34 running cycle_execs.php
22:58:34 running cycle_rss.php
Running Bluetooth monitor.22:58:34 running cycle_states.php
22:58:35 running cycle_webvars.php
22:58:35 running cycle_ping.php
22:58:35 running cycle_main.php
22:58:35 running cycle_scheduler.php
22:58:35 running cycle_watchfolders.php
22:58:35 running cycle_rss.php
22:58:35 running cycle_execs.php
Running Bluetooth monitor.22:58:36 running cycle_states.php
22:58:36 running cycle_webvars.php
22:58:36 running cycle_ping.php
22:58:36 running cycle_main.php
22:58:36 running cycle_scheduler.php
22:58:36 running cycle_watchfolders.php
22:58:36 running cycle_rss.php
22:58:36 running cycle_execs.php
Running Bluetooth monitor.22:58:37 running cycle_states.php
...
ну и т.д.

в чем дело понять не могу
Lubuntu на cubieboard2 + ds9490R
DietPi на Orange Pi PC + 1wire на esp8266 с прошивкой Homes-smart.ru
immortal
Сообщения: 1138
Зарегистрирован: Вт янв 29, 2013 9:16 am
Откуда: Белозерск
Благодарил (а): 16 раз
Поблагодарили: 400 раз
Контактная информация:

Re: onNewMinute

Сообщение immortal » Вт дек 24, 2013 10:51 pm

оказывается проблему решил правкой соnfig.php

поправил директорию где лежит МД и урл, скорее всего урл помог.
Lubuntu на cubieboard2 + ds9490R
DietPi на Orange Pi PC + 1wire на esp8266 с прошивкой Homes-smart.ru
LampGraph
Сообщения: 6
Зарегистрирован: Пт янв 17, 2014 8:02 pm
Откуда: Абакан
Благодарил (а): 0
Поблагодарили: 0

Re: onNewMinute

Сообщение LampGraph » Пн янв 20, 2014 4:42 am

Привет!
такая же хрень как у dark_avenger.
В config.php нашел port и изменил 80 на 8080 (no-ip.com не хочет с 80 портом работать). Все было замечательно пока не начал настраивать VLC. в VLC не нашел как поменять порт web-интерфейса (по-умолчанию там 8080). Временно забил на VLC и продолжил ковырять будильник пока внезапно он не перестал срабатывать. Выяснил что метод onNewMinute не работает. Почитал ветку, попробовал сменить порт обратно на 80 и получил такую же проблему как у dark_avenger:
dark_avenger писал(а):Тоже постигла меня проблема с сабжем... Сделал DebMes($url); в objects.class.php и выяснилось, что система пытается запустить адрес с портом 80. Хотя в панели управления я вижу 81 порт. Изменил в config.php, BASE_URL на http://127.0.0.1:81 и вроде бы вот оно счастье, да новое несчастье постигло ) Теперь он срабатывается дважды. Почему так решил - вставил say(timeNow()); в объект ClockChime, метод onNewMinute и теперь Алиса дважды произносит мне время каждую минуту...
Два вопроса:
1. Почему она говорит дважды?
2. Ничего страшного что я изменил BASE_URL ?
Собственно его первый вопрос актуален) Только Алиса стала говорить не дважды, а трижды!!!
LampGraph
Сообщения: 6
Зарегистрирован: Пт янв 17, 2014 8:02 pm
Откуда: Абакан
Благодарил (а): 0
Поблагодарили: 0

Re: onNewMinute

Сообщение LampGraph » Пн янв 20, 2014 9:13 am

После ребута все заработало...
electric
Сообщения: 309
Зарегистрирован: Вт сен 17, 2013 10:11 pm
Благодарил (а): 3 раза
Поблагодарили: 56 раз

Re: onNewMinute

Сообщение electric » Чт янв 23, 2014 4:14 pm

Ребят, подскажите пожалуйста.
Первый раз поставил систему, разбираюсь (железо обычный ПК с Дебиан).
Вопрос нумер 1.
В "Class: Timer" объект "ClockChime" 2 метода:
1. "onNewMinute"

Код: Выделить всё

  $h=(int)date('G',time());
  $m=date('i',time());
  if (isWeekDay()) {
   }
  if (($h>=8)) {
    if ($m=="00") {
    say(timeNow());
    }
  }
2. "onNewHour"
он пустой...
Так и должно быть, или что то перепутано?
Не очень разбираюсь в php, но в коде "onNewMinute" строчка say(timeNow()) должна сообщать нам время раз в час, так?
Может этот текст должен быть в методе "onNewHour"??

Почитал больше, блин, запутался...
Где прописывается что метод "onNewMinute" вызывается раз в минуту?
Или само название метода "onNewMinute" говорит системе что его надо выполнять раз в минуту? :?
Было: Majordomo v.0.6.0.b на Cubietruck. OS Armbian с переносом на HDD
Стало: ioBroker на Cubietruck OS Armbian + ZigBee Xiaomi + OWFS + BLE.
Ответить