-
Notifications
You must be signed in to change notification settings - Fork 59
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
Wifi reconnect: doesn't work #64
Comments
Hello @balbuze
What is important here, in order to make it work with cron, is to indicate the full path of Then I launch the script with crontab just after my rooter restarts the wifi, every morning at 7:05
The script could be optimized to check the internet connection, but I did not test it:
And, for the record, here is another way of testing the connection, that I found in a forum. This uses
|
hi! SERVER=${serverip} ping -c2 ${SERVER} > /dev/null if [ $? != 0 ] fi |
should be fixed with the last update ver 0.0.8 |
Do you mean commands with the full path? I think it's a good idea. Thank you! I looked at your modifications in https://github.com/balbuze/volumio-plugins/blob/master/plugins/system_controller/wifireconnect/wifireconnect.sh.tmpl I'm not sure which commands should be with the full path:
|
I just installed 0.0.9 on RPI3. It doesn't reconnect either :( |
I reactivated the hotspot, in order to read the logs here: /var/log/volumio.log
They are the only lines concerning wifi or wlan. Is there another log I could share? |
Very weird. I'm using it with a Rpi2 and a usb WiFi dongle. And it reconnects each time I power off/on my router... What is the difference with your settings ? |
I guess you can't plug a screen? |
Hello, I could plug a screen, but not for too long. What we could do, if you're ok with that, is planning a moment when you're available, and chat on Gitter. I'd have a screen plugged and we could investigate further. I'm available for example today before 1pm (UTC+2), or after 4:30 pm. |
sorry but I was at work... I think we are in the same time zone, maybe tomorrow but later.. |
Thanks, tell me when you're available, I'll do my best |
Don't know if I am correct. The "Wifireconnect service" is calling
but this file only containts "empty do not remove". Instead the file "wifireconnect.sh.tmpl" contains the code. Why? |
Okay, I've made some tests. First of all copied wifireconnect.sh.tmpl to wifireconnect.sh and used following content:
After restart of service I powered off my Access Point and Volumio lost connection. After some seconds Access Point was up again and again some seconds later Volumio connected again. |
Tmpl is the template used to create the sh file. A empty sh exists because it keeps the execute mode when it is filled by the plugin with the template. |
Just add your code in tmpl. The plugin will fill the sh when you save it |
Does not work for me. After fresh install with my changes I see following error. Same without changes by me:
Because of the "command not found" message I went this way I described earlier with success. |
well, I uploaded a new version that should fix miscellanous problems. !don't froget to save, evenen if you don't change the setting. It's probably the reason of your empty sh file... |
Yep balbuze that's it. Solved for me now and reconnect is working fine. Thanks a lot! |
good! I close this issue... |
Hello,
Thanks for your plugin, but it doesn't work on my config:
Volumio 2.201, Raspbery Pi3, Wifi with fixed IP, Plugin ver 0.0.7
Steps to reproduce
Any idea?
The text was updated successfully, but these errors were encountered: