Страница 130 из 193

Re: [Модуль] Telegram (telegram)

Добавлено: Вт июл 30, 2019 10:20 am
viktor6
Ребята подскажите где можно найти управление светом через телеграмм с обновлением статуса? Помню где-то было но не могу найти.

Re: [Модуль] Telegram (telegram)

Добавлено: Вт июл 30, 2019 1:05 pm
Logrus
:cry:

Re: [Модуль] Telegram (telegram)

Добавлено: Ср июл 31, 2019 10:33 am
chimik
viktor6 писал(а): Вт июл 30, 2019 10:20 am Ребята подскажите где можно найти управление светом через телеграмм с обновлением статуса? Помню где-то было но не могу найти.
viewtopic.php?f=5&t=2768&start=1230#p102844

Re: [Модуль] Telegram (telegram)

Добавлено: Пт авг 16, 2019 11:59 am
Jon811
Eraser писал(а): Пн июл 29, 2019 8:02 pm
Jon811 писал(а): Пн июл 29, 2019 4:32 pm Кто может подсказать, не силен в линухе. На апельсинке телега через тор сидит. На работе все норм, откликается, все отрабатывает. Домой приношу - тишина. Хотя с компа тор сидит нормально. Как отловить, что ей не нравится?
Надо смотреть настройки тор
Скорее всего другой ip, и не на том интерфейсе открывается порт

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

Aug 16 11:49:37.126 [notice] Tor 0.2.9.14 running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.2g and Zlib 1.2.8.
Aug 16 11:49:37.126 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Aug 16 11:49:37.127 [notice] Read configuration file "/etc/tor/torrc".
Aug 16 11:49:37.139 [notice] Opening Socks listener on 127.0.0.1:9050
Aug 16 11:49:37.000 [notice] Parsing GEOIP IPv4 file /usr/share/tor/geoip.
Aug 16 11:49:38.000 [notice] Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
Aug 16 11:49:38.000 [warn] You are running Tor as root. You don't need to, and you probably shouldn't.
Aug 16 11:49:40.000 [notice] Bootstrapped 0%: Starting
Aug 16 11:49:42.000 [notice] Bootstrapped 5%: Connecting to directory server
Aug 16 11:49:42.000 [notice] Bootstrapped 10%: Finishing handshake with directory server
Aug 16 11:49:42.000 [notice] Bootstrapped 15%: Establishing an encrypted directory connection
Aug 16 11:49:42.000 [notice] Bootstrapped 20%: Asking for networkstatus consensus
Aug 16 11:49:42.000 [notice] Bootstrapped 25%: Loading networkstatus consensus
Aug 16 11:49:43.000 [notice] Bootstrapped 45%: Asking for relay descriptors
Aug 16 11:49:43.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 12/6514, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw = 0% of path bw.)
Aug 16 11:49:43.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 12/6514, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw = 0% of path bw.)
Aug 16 11:49:43.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 12/6514, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw = 0% of path bw.)
Aug 16 11:49:43.000 [notice] Bootstrapped 50%: Loading relay descriptors
Aug 16 11:49:45.000 [notice] Bootstrapped 55%: Loading relay descriptors
Aug 16 11:49:46.000 [notice] Bootstrapped 61%: Loading relay descriptors
Aug 16 11:49:46.000 [notice] Bootstrapped 66%: Loading relay descriptors
Aug 16 11:49:46.000 [notice] Bootstrapped 72%: Loading relay descriptors
Aug 16 11:49:46.000 [notice] Bootstrapped 80%: Connecting to the Tor network
Aug 16 11:49:47.000 [notice] Bootstrapped 90%: Establishing a Tor circuit
Aug 16 11:49:47.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.
Aug 16 11:49:47.000 [notice] Bootstrapped 100%: Done
Вроде все норм открывает, но телега не работает пишет 11:54:39 Error connect or invalid token
Токен перепроверил, он норм.

Re: [Модуль] Telegram (telegram)

Добавлено: Пт авг 16, 2019 12:11 pm
Eraser
Jon811 писал(а): Пт авг 16, 2019 11:59 am
Eraser писал(а): Пн июл 29, 2019 8:02 pm
Jon811 писал(а): Пн июл 29, 2019 4:32 pm Кто может подсказать, не силен в линухе. На апельсинке телега через тор сидит. На работе все норм, откликается, все отрабатывает. Домой приношу - тишина. Хотя с компа тор сидит нормально. Как отловить, что ей не нравится?
Надо смотреть настройки тор
Скорее всего другой ip, и не на том интерфейсе открывается порт

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

Aug 16 11:49:37.126 [notice] Tor 0.2.9.14 running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.2g and Zlib 1.2.8.
Aug 16 11:49:37.126 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Aug 16 11:49:37.127 [notice] Read configuration file "/etc/tor/torrc".
Aug 16 11:49:37.139 [notice] Opening Socks listener on 127.0.0.1:9050
Aug 16 11:49:37.000 [notice] Parsing GEOIP IPv4 file /usr/share/tor/geoip.
Aug 16 11:49:38.000 [notice] Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
Aug 16 11:49:38.000 [warn] You are running Tor as root. You don't need to, and you probably shouldn't.
Aug 16 11:49:40.000 [notice] Bootstrapped 0%: Starting
Aug 16 11:49:42.000 [notice] Bootstrapped 5%: Connecting to directory server
Aug 16 11:49:42.000 [notice] Bootstrapped 10%: Finishing handshake with directory server
Aug 16 11:49:42.000 [notice] Bootstrapped 15%: Establishing an encrypted directory connection
Aug 16 11:49:42.000 [notice] Bootstrapped 20%: Asking for networkstatus consensus
Aug 16 11:49:42.000 [notice] Bootstrapped 25%: Loading networkstatus consensus
Aug 16 11:49:43.000 [notice] Bootstrapped 45%: Asking for relay descriptors
Aug 16 11:49:43.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 12/6514, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw = 0% of path bw.)
Aug 16 11:49:43.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 12/6514, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw = 0% of path bw.)
Aug 16 11:49:43.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 12/6514, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw = 0% of path bw.)
Aug 16 11:49:43.000 [notice] Bootstrapped 50%: Loading relay descriptors
Aug 16 11:49:45.000 [notice] Bootstrapped 55%: Loading relay descriptors
Aug 16 11:49:46.000 [notice] Bootstrapped 61%: Loading relay descriptors
Aug 16 11:49:46.000 [notice] Bootstrapped 66%: Loading relay descriptors
Aug 16 11:49:46.000 [notice] Bootstrapped 72%: Loading relay descriptors
Aug 16 11:49:46.000 [notice] Bootstrapped 80%: Connecting to the Tor network
Aug 16 11:49:47.000 [notice] Bootstrapped 90%: Establishing a Tor circuit
Aug 16 11:49:47.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.
Aug 16 11:49:47.000 [notice] Bootstrapped 100%: Done
Вроде все норм открывает, но телега не работает пишет 11:54:39 Error connect or invalid token
токен точно верно указан?

Re: [Модуль] Telegram (telegram)

Добавлено: Пт авг 16, 2019 12:18 pm
Jon811
Абсолютно, перезапросил, ввел заново, то же самое. Говорю же: на работе все ок, дома никак. Может как-то логи можно глянуть подключения

Re: [Модуль] Telegram (telegram)

Добавлено: Пн авг 26, 2019 6:38 pm
newz20
и сюда закину кому может пригодится.
Код получения и вывода всех онлайн устройств. Форматирование как в блоге от Xor. Запрос прямо в телеге оформил.
$text ='<code>';
$sql='SELECT TITLE, status FROM pinghosts ORDER BY TITLE';
$recs = SQLSelect($sql);
foreach($recs as $rec)
{
if ($rec['status']==1){$stat=" ".hex2bin('e29c85')." ";}
elseif ($rec['status']==2){$stat=" ".hex2bin('f09f9aab')." ";}
$text .= mb_substr($rec['TITLE']."ТУТ СЪЕДАЕТ 20 ПРОБЕЛОВ ФОРУМ",0,20); // тут основная фишка!
$text .= mb_substr($stat."А ТУТ 5",0,5);
$text .= ''.PHP_EOL;
}
$text .='</code>';
return "$text";

Re: [Модуль] Telegram (telegram)

Добавлено: Пн авг 26, 2019 10:20 pm
viktor6
newz20 писал(а): Пн авг 26, 2019 6:38 pm и сюда закину кому может пригодится.
Код получения и вывода всех онлайн устройств. Форматирование как в блоге от Xor. Запрос прямо в телеге оформил.
$text ='<code>';
$sql='SELECT TITLE, status FROM pinghosts ORDER BY TITLE';
$recs = SQLSelect($sql);
foreach($recs as $rec)
{
if ($rec['status']==1){$stat=" ".hex2bin('e29c85')." ";}
elseif ($rec['status']==2){$stat=" ".hex2bin('f09f9aab')." ";}
$text .= mb_substr($rec['TITLE']."ТУТ СЪЕДАЕТ 20 ПРОБЕЛОВ ФОРУМ",0,20); // тут основная фишка!
$text .= mb_substr($stat."А ТУТ 5",0,5);
$text .= ''.PHP_EOL;
}
$text .='</code>';
return "$text";
шо куда пихать?

Re: [Модуль] Telegram (telegram)

Добавлено: Вт авг 27, 2019 10:03 am
Jon811
Победил свою телегу. При указании типа прокси socks5 на работе все нормально было, а дома ни в какую. Tor говорит что все норм, подключен. Пинги через него идут и айпишник его отличается от основного. Поменял тип прокси на socks5 hostname, и все заработало. Что это такое? чем грозит?

Re: [Модуль] Telegram (telegram)

Добавлено: Чт авг 29, 2019 8:15 am
newz20
viktor6 писал(а): Пн авг 26, 2019 10:20 pm
newz20 писал(а): Пн авг 26, 2019 6:38 pm и сюда закину кому может пригодится.
Код получения и вывода всех онлайн устройств. Форматирование как в блоге от Xor. Запрос прямо в телеге оформил.
$text ='<code>';
$sql='SELECT TITLE, status FROM pinghosts ORDER BY TITLE';
$recs = SQLSelect($sql);
foreach($recs as $rec)
{
if ($rec['status']==1){$stat=" ".hex2bin('e29c85')." ";}
elseif ($rec['status']==2){$stat=" ".hex2bin('f09f9aab')." ";}
$text .= mb_substr($rec['TITLE']."ТУТ СЪЕДАЕТ 20 ПРОБЕЛОВ ФОРУМ",0,20); // тут основная фишка!
$text .= mb_substr($stat."А ТУТ 5",0,5);
$text .= ''.PHP_EOL;
}
$text .='</code>';
return "$text";
шо куда пихать?
Создаешь команду в телеге и пихаешь в код в окошко ниже с кодом.