Re: [Модуль] Google Location
Добавлено: Чт апр 11, 2019 11:22 pm
У меня чтото так и не получилось настроить. Скачал cookies залил на сервер прописал путь, а в ответ тишина.
SPOILERSPOILER_SHOW
Тут уже данные пошли, разбор сломалсяviktor6 писал(а): Чт апр 11, 2019 11:22 pm У меня чтото так и не получилось настроить. Скачал cookies залил на сервер прописал путь, а в ответ тишина.
Код: Выделить всё
Array ( [url] => https://www.google.com/maps/preview/locationsharing/read?authuser=0&hl=ru&gl=ru&pb= [content_type] => [http_code] => 0 [header_size] => 0 [request_size] => 0 [filetime] => -1 [ssl_verify_result] => 20 [redirect_count] => 0 [total_time] => 0.062 [namelookup_time] => 0.031 [connect_time] => 0.031 [pretransfer_time] => 0 [size_upload] => 0 [size_download] => 0 [speed_download] => 0 [speed_upload] => 0 [download_content_length] => -1 [upload_content_length] => -1 [starttransfer_time] => 0 [redirect_time] => 0 [redirect_url] => [primary_ip] => 173.194.44.82 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 192.168.1.7 [local_port] => 58462 )можно попробовать отключить проверкуxor писал(а): Чт апр 11, 2019 11:50 pm обидно, что тупо по ссылке https://www.google.com/maps/preview/loc ... &gl=ru&pb=
данные возвращаютсяиз модуля не выходит(SPOILERSPOILER_SHOW2019-04-11_23-39-11.png
скриптом если выводить
$info = curl_getinfo($ch);
print_r( $info);ошибка [ssl_verify_result] => 20Код: Выделить всё
Array ( [url] => https://www.google.com/maps/preview/locationsharing/read?authuser=0&hl=ru&gl=ru&pb= [content_type] => [http_code] => 0 [header_size] => 0 [request_size] => 0 [filetime] => -1 [ssl_verify_result] => 20 [redirect_count] => 0 [total_time] => 0.062 [namelookup_time] => 0.031 [connect_time] => 0.031 [pretransfer_time] => 0 [size_upload] => 0 [size_download] => 0 [speed_download] => 0 [speed_upload] => 0 [download_content_length] => -1 [upload_content_length] => -1 [starttransfer_time] => 0 [redirect_time] => 0 [redirect_url] => [primary_ip] => 173.194.44.82 [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 192.168.1.7 [local_port] => 58462 )
CURLINFO_SSL_VERIFYRESULT - Результат проверки SSL-сертификата, запрошенной с помощью установки параметра CURLOPT_SSL_VERIFYPEER
Код: Выделить всё
curl_setopt($ch, CURLOPT_TIMEOUT, 3);
curl_setopt($ch, CURLOPT_HEADER, 1);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$response = curl_exec($ch);
$info = curl_getinfo($ch);да тут уже данные, но данные с юникодом, исправлю разборviktor6 писал(а): Чт апр 11, 2019 11:22 pm У меня чтото так и не получилось настроить. Скачал cookies залил на сервер прописал путь, а в ответ тишина.SPOILERSPOILER_SHOWКод: Выделить всё
22:28:02 Exception: Error json data : [null,null,"0ahUKEwj72fr54sjhAhUww8QBHUG4DHEQ8ZABCAE","QpWvXPuwAbCGk74PwfCyiAc",null,null,"GkkAHrX0pqmYtwsnVo353+L7iHb5Fj\/tUTo921Md7pA1pJzItDyuD4sm+D0+BWkIkN1eIXXTqqOF4doxdeJCCGw4DvMB0L\/b4laj",1800,1555010882545,[null,[null,[null,32.5645125,46.6524246],1555010308299,16,"\u043f\u0440\u043e\u0441\u043f\u0435\u043a\u0442 \u0411\u0443\u0434\u0456\u0432\u0435\u043b\u044c\u043d\u0438\u043a\u0456\u0432, 26, \u0425\u0435\u0440\u0441\u043e\u043d, \u0425\u0435\u0440\u0441\u043e\u043d\u0441\u044c\u043a\u0430 \u043e\u0431\u043b\u0430\u0441\u0442\u044c, \u0423\u043a\u0440\u0430\u0438\u043d\u0430, 73009",null,"UA",10800000],"IJC51eW_rbKK8wE"]] in /var/www/html/modules/google_location/google_location.class.php:290 Stack trace: #0 /var/www/html/modules/google_location/google_location.class.php(228): google_location->getLocationData() #1 /var/www/html/modules/google_location/google_location.class.php(187): google_location->getLocation() #2 /var/www/html/modules/google_location/google_location.class.php(183): google_location->updateLocation() #3 /var/www/html/lib/hooks.inc.php(146): google_location->processSubscription('MINUTELY', Array) #4 /var/www/html/objects/index.php(175): processSubscriptions('MINUTELY', Array) #5 {main} 22:28:02 Location data : Connection successful, reponse : 200 22:26:02 Exception: Error json data : [null,null,"0ahUKEwjkyNrA4sjhAhU54aYKHTjTBs8Q8ZABCAE","yZSvXKTAOrnCmwW4ppv4DA",null,null,"GkkAHrX0pj7ucrL1aHZhhRSiXhsLZmcgAR2DhZlPawyflKEbFkxRKHI0k0RxXASJfJC1Z494zI4YcswwyTLY\/GhMjc8UY8JBwgEw",1800,1555010762457,[null,[null,[null,32.5645125,46.6524246],1555010308299,16,"\u043f\u0440\u043e\u0441\u043f\u0435\u043a\u0442 \u0411\u0443\u0434\u0456\u0432\u0435\u043b\u044c\u043d\u0438\u043a\u0456\u0432, 26, \u0425\u0435\u0440\u0441\u043e\u043d, \u0425\u0435\u0440\u0441\u043e\u043d\u0441\u044c\u043a\u0430 \u043e\u0431\u043b\u0430\u0441\u0442\u044c, \u0423\u043a\u0440\u0430\u0438\u043d\u0430, 73009",null,"UA",10800000],"IJC51eW_rbKK8wE"]] in /var/www/html/modules/google_location/google_location.class.php:290 Stack trace: #0 /var/www/html/modules/google_location/google_location.class.php(228): google_location->getLocationData() #1 /var/www/html/modules/google_location/google_location.class.php(187): google_location->getLocation() #2 /var/www/html/modules/google_location/google_location.class.php(183): google_location->updateLocation() #3 /var/www/html/lib/hooks.inc.php(146): google_location->processSubscription('MINUTELY', Array) #4 /var/www/html/objects/index.php(175): processSubscriptions('MINUTELY', Array) #5 {main} 22:26:02 Location data : Connection successful, reponse : 200
Код: Выделить всё
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);//
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);//устройство автоматом создается в gps модуле, при пересылке данных, и вот там все привязки можно настроитьxor писал(а): Пт апр 12, 2019 12:46 am А для связи с gps модулем и юзерами мдм, наверное, нужно какие-то фейковые устройства заводить в gps модуле?
устройства - это значение в поле id_user?
Да, обновления Алиса качает. погоду получает. Доступ в интернет напрямую через роутер, ограничений нет.Eraser писал(а): Чт апр 11, 2019 3:20 pmинтернет на сервере доступен?Pr0gra2Mer писал(а): Чт апр 11, 2019 2:53 pmxor писал(а): Чт апр 11, 2019 2:50 pmИ в дебуге выбрать Файл лога с именем, напоминающим название модуляPr0gra2Mer писал(а):Логи посмотреть Xray -> Debug?Eraser писал(а): Чт апр 11, 2019 2:24 pmесли debug галку поставить, что в логе пишет?Pr0gra2Mer писал(а): Чт апр 11, 2019 2:16 pm Странно, не получает местоположение. Хотя куки выгрузил. Файл обновляется при нажатии "Get locations".
Правда у меня под Окнами Алиса.
Отправлено с моего Redmi 4X через TapatalkКод: Выделить всё
17:52:00 Exception: Error connection : 0 => {"http_code":""} in C:\_majordomo\htdocs\modules\google_location\google_location.class.php:282 Stack trace: #0 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(228): google_location->getLocationData() #1 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(187): google_location->getLocation() #2 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(183): google_location->updateLocation() #3 C:\_majordomo\htdocs\lib\hooks.inc.php(146): google_location->processSubscription('MINUTELY', Array) #4 C:\_majordomo\htdocs\objects\index.php(175): processSubscriptions('MINUTELY', Array) #5 {main} 17:52:00 Location data : Connection successful, reponse : 0 17:50:00 Exception: Error connection : 0 => {"http_code":""} in C:\_majordomo\htdocs\modules\google_location\google_location.class.php:282 Stack trace: #0 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(228): google_location->getLocationData() #1 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(187): google_location->getLocation() #2 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(183): google_location->updateLocation() #3 C:\_majordomo\htdocs\lib\hooks.inc.php(146): google_location->processSubscription('MINUTELY', Array) #4 C:\_majordomo\htdocs\objects\index.php(175): processSubscriptions('MINUTELY', Array) #5 {main} 17:50:00 Location data : Connection successful, reponse : 0 17:48:01 Exception: Error connection : 0 => {"http_code":""} in C:\_majordomo\htdocs\modules\google_location\google_location.class.php:282 Stack trace: #0 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(228): google_location->getLocationData() #1 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(187): google_location->getLocation() #2 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(183): google_location->updateLocation() #3 C:\_majordomo\htdocs\lib\hooks.inc.php(146): google_location->processSubscription('MINUTELY', Array) #4 C:\_majordomo\htdocs\objects\index.php(175): processSubscriptions('MINUTELY', Array) #5 {main} 17:48:01 Location data : Connection successful, reponse : 0 17:46:00 Exception: Error connection : 0 => {"http_code":""} in C:\_majordomo\htdocs\modules\google_location\google_location.class.php:282 Stack trace: #0 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(228): google_location->getLocationData() #1 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(187): google_location->getLocation() #2 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(183): google_location->updateLocation() #3 C:\_majordomo\htdocs\lib\hooks.inc.php(146): google_location->processSubscription('MINUTELY', Array) #4 C:\_majordomo\htdocs\objects\index.php(175): processSubscriptions('MINUTELY', Array) #5 {main} 17:46:00 Location data : Connection successful, reponse : 0 #0 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(228): google_location->getLocationData() #1 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(187): google_location->getLocation() #2 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(148): google_location->updateLocation() #3 C:\_majordomo\htdocs\modules\google_location\google_location.class.php(88): google_location->admin(Array) #4 C:\_majordomo\htdocs\lib\jTemplate.class.php(713) : eval()'d code(8): google_location->run() #5 C:\_majordomo\htdocs\lib\jTemplate.class.php(713): eval() #6 C:\_majordomo\htdocs\lib\jTemplate.class.php(195): jTemplate->parseModules('<!DOCTYPE html>...', Array, './templates/') #7 C:\_majordomo\htdocs\lib\jTemplate.class.php(109): jTemplate->parse('<!DOCTYPE html>...', Array, './templates/') #8 C:\_majordomo\htdocs\lib\parser.class.php(93): jTemplate->__construct('./templates/pan...', Array, Object(panel)) #9 C:\_majordomo\htdocs\lib\parser.class.php(63): parser->jtemplate_parse('./templates/pan...', Array) #10 C:\_majordomo\htdocs\modules\panel.class.php(192): parser->__construct('./templates/pan...', Array, Object(panel)) #11 C:\_majordomo\htdocs\admin.php(34): panel->run() #12 {main}
залил обновлениеPr0gra2Mer писал(а): Пт апр 12, 2019 9:03 am Да, обновления Алиса качает. погоду получает. Доступ в интернет напрямую через роутер, ограничений нет.