Closed GrandChriss closed 2 years ago
Be sure that the variable you are changing in /etc/comitup.conf is "ap_name" - that's "ap", as in "access point".
That's how looking my config file. 3 n's, but after reboot it showing "comitup-24" (2 n's)... I was also trying to change "ap_name: Nothing" and it still showing as "comitup-24" after reboot. Maybe there is more I can show you to detect this problem? Also, I have a question about HTML page editting, is it possible when comitup already installed in Pi? Where I can find Web interface files?
I'm using: Raspberry Pi Zero W + Debian Buster Raspbian OS Desktop
I solved that problem. Changed ap_name in /usr/share/comitup/comitup/comitup.py file.
I have another question, where I can find command when after reboot checking Wi-Fi and if it's connected it kill's comitup hotspot and web interface? I need to add some command there. Is it possible?
Thank you for this project! It really helps me
If you have a single WiFi interface, the hotspot and web service will automatically be killed once connected upstream.
If there is something else you need to do, see _externalcallback in "man 5 comitup-conf".
Just saw your screen shot. The variable definition is commented out (to show the default). Remove the leading "# ".
I mean, maybe there's possibility to check wifi connection and start command if connected?
Yes, look up _externalcallback.
Maybe you can make a example for me? I tried to get external_callback in txt file, but after reboot file is empty. How to use it correctly? I need to start bash script when wifi Connected.
Thank you so much
Something like:
# cat /usr/local/bin/comitup-callback
#!/bin/bash
if [[ "$1" == "CONNECTED" ]] ; then
...
fi
# chmod 755 /usr/local/bin/comitup-callback
I'm getting callback to logfile.txt, but second bash file don't start. When I execute mm.sh it start's normally. What can be the problem?
Thank you!
Comitup will attempt to drop permissions to that of the script user and group. Make sure that is enough.
Don't assume that the script has a useful associated working directory.
So what I should do? How launch bash script after callback CONNECTED?
Tried this also, nothing happening... Why commands not working?
I don't have any other guidance here.
Hello,
My problem is, that I changing app_name in /etc/comitup.conf file, but AP name still is comitup-xx. I tried to reinstall Comitup, but nothing works, maybe this functions is not available any more?