-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor features #161
Comments
Yes, a socks5 proxy can be added. Will be done in a few days. The installation is strange. So that will need some extra testing. And therefore I need to buy a Pi Zero W. Because on a Pi3, the installation is looking fine. But I will look into it probably next week. Euh, the idea is that the Pi does not need to be rebooted at all. The memory leak is fixed and I can just run it for weeks without issues. So that should not be needed. Else I have to figure this out. But I am thinking that this should not be needed anymore. |
Proxy support added. To enable it follow the steps below:
Valid proxy servers are:
Where user and pass is optional. More information: http://docs.python-requests.org/en/latest/user/advanced/#proxies |
In web-interface field "Proxy" after save and refresh: [object Object] or empty. UPD:
UPD2:
|
Hmm, for me socks5 does not work either. But I can also use https for it. So I changed socks5:// just to https:// and it does work for me. Used my own proxy. If that does not help you, I am not sure if it will work. Because I use simple HTTPS connections to Telegram servers. Unfortunately the Telegram Bot does lock the system during startup. But that should not take much time. If it does, there is a connections problem. Als the output of the telegram proxy bot socks on the notification page is also fixed. Also changed the installer script so that it will keep the output clean. That it will not work in 1 run, could be caused by network problems. I have run this script 20+ times now, and always it does the job the first time. Do a |
Mail notification do not work due to missing authentication (username and password). Also I guess [email protected] is not valid? That should be a valid mail address |
Ok, now i use socks5://telegram:[email protected]:1080(wonderful, if "blah-blah" is unavaliable then random change to asdf_random_letters.tgvpnproxy... :D)
But web-interface very long loading or unavaliable and i restart TerrariumPi:
And telegram again don't work and i dont know how i can help you =( Mail: P.S. Valid only proxy and token, because it's "public" proxy from gigantic pool and uses only for telegram many countries, and token is test bot where i every day revoke them :) |
Hmm, this is getting somewhat complicated. I have changed some code in the development branch to tackle this. I do get the feeling that when you use Telegram proxy, also the weather data is trying to use the same proxy, what does not work and not what should happen. So I have changed the code so that every request has explicit proxy settings. Either for Telegram the socks/https proxy, and all other requests none. This way I hope to make sure that the proxy settings is not affecting other parts of the software. When the Telegram try to connect it blocks the rest of the software. This cannot be changed. That means when the proxy does not work, it will hold everything. This is now tried three times, and then it stops and continue with the other parts of the software. This is only thing I can do right now. So, make sure your proxy is working, else it will lock up the software. |
Nice improvements !
Zero W was loaded faster, but telegram bot does not worked :(
Now i use |
Hmmm, I just did a test using socks5h://telegram:[email protected]:1080 and seems to work. So add a 'h' to it. This changes the DNS behavior and I think will solve it for you. |
Does the change to socks5h change the behavior? |
Sorry, i cant check this in 5 days :(
You can close this issue and if they need i reopen issue :)
|
Ah that is ok.... I will leave it open then... |
Nope :(
Use |
Then I am currently out of options. But in #161 (comment) it shows messages trough Telegram. How did you fix that? Could it be that a max amount of connections per IP is used at the VPN? |
I dont know 😞
Nope, this gigantic pool and last data they has over 15 millions connections from several countries. |
I meant max devices per home IP. If you use it on your pc, mobile, etc.. could it be that you are limited based on your home ip? |
No, its unlimited connections. |
I have trying to get this to work for a couple of hours. But socks proxies does not want to work. I have no clue :( |
Can't leave it to rest... So I was looking at: https://www.sslproxies.org/ And used a server in CZ. And that seems to work for me: https://185.142.208.197:41258 Not sure how long those proxy will be running. But a generic HTTP/HTTPS proxy could also help in stead of a socks5. Your Pi and Mobile/Desktop does not need to use the same proxy server. As long all devices reach telegram.... |
@BashSer I am closing this now, as the proxy option is hard to fix and test with socks proxies. And I think this is not needed for the mass. I do understand your problem with Telegram and Russia. But then I would like to say try to find some HTTP(S) based proxies. |
Good day @theyosh !
You did great job ! 👍 🥇
Is it possible to add SOCKS5 or MTP proxy to telegram options ?
In several countries government blocks telegram and peoples use different ways for bypass this.
In time where was "memory leak" (3.4.2 ?) i need reboot RPi every three-five days, may be add "watchdog/timer" where RPi reboot automatically once in week for example ?
Thank you !
P.S. In last setup on RPi zero W:
The text was updated successfully, but these errors were encountered: