Closed 9acca9 closed 3 years ago
Comitup-cli will have to be restarted whenever comitup is restarted. It won't help here.
The line in question runs the command "nmcli device show", as root. Can you post the output of that command?
@davesteele HI. Thanks.
I have this from the command. It seems related to my language (spanish).
GENERAL.DEVICE: wlan0
GENERAL.TYPE: wifi
GENERAL.HWADDR: F2:91:0B:50:3D:E7
GENERAL.MTU: 1500
GENERAL.STATE: 20 (no disponible)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
GENERAL.DEVICE: lo
GENERAL.TYPE: loopback
GENERAL.HWADDR: 00:00:00:00:00:00
GENERAL.MTU: 65536
GENERAL.STATE: 10 (sin gesti<F3>n)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
IP4.ADDRESS[1]: 127.0.0.1/8
IP4.GATEWAY: --
IP6.ADDRESS[1]: ::1/128
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = ::1/128, nh = ::, mt = 256
In "general state" probably says "sin gestión" with the ó. How i can fix this? Thanks for your time.
The special character is the problem, but it shouldn't be. The code should handle it. This is just hardware checking code. I'm going to just tolerate the error (a458fbe). If you would like to try this out, edit the file at /usr/share/comitup/comitup/wificheck.py on your system.
The special character is the problem, but it shouldn't be. The code should handle it. This is just hardware checking code. I'm going to just tolerate the error (a458fbe). If you would like to try this out, edit the file at /usr/share/comitup/comitup/wificheck.py on your system.
HI.Thanks. But, how i can edit the file. I mean what i have to write/comment out?? I comment out a lot of code and know in log hi have this.
2021-03-27 13:45:15,055 - comitup - INFO - Setting state to HOTSPOT
2021-03-27 13:45:15,069 - comitup - INFO - Activating hotspot
2021-03-27 13:45:26,108 - comitup - INFO - Starting comitup
2021-03-27 13:45:26,872 - comitup - INFO - Setting state to HOTSPOT
2021-03-27 13:45:26,885 - comitup - INFO - Activating hotspot
2021-03-27 13:46:29,972 - comitup - INFO - Activating hotspot
2021-03-27 13:46:39,686 - comitup - INFO - Starting comitup
2021-03-27 13:46:40,391 - comitup - INFO - Setting state to HOTSPOT
2021-03-27 13:46:40,405 - comitup - INFO - Activating hotspot
2021-03-27 13:46:50,366 - comitup - INFO - Starting comitup
2021-03-27 13:46:51,071 - comitup - INFO - Setting state to HOTSPOT
2021-03-27 13:46:51,085 - comitup - INFO - Activating hotspot
2021-03-27 13:47:01,011 - comitup - INFO - Starting comitup
2021-03-27 13:47:01,711 - comitup - INFO - Setting state to HOTSPOT
2021-03-27 13:47:01,728 - comitup - INFO - Activating hotspot`
sudo comitup -i
version: 1.17
apname: comitup-796
hostnames: comitup-796.local
imode: single
sudo comitup
Traceback (most recent call last):
File "/usr/sbin/comitup", line 11, in <module>
load_entry_point('comitup==1.17', 'console_scripts', 'comitup-cmd')()
File "/usr/share/comitup/comitup/comitup.py", line 122, in main
cdns.state_callback,
File "/usr/share/comitup/comitup/statemgr.py", line 175, in init_state_mgr
conf.ap_password
File "/usr/share/comitup/comitup/states.py", line 332, in init_states
set_state('HOTSPOT')
File "/usr/share/comitup/comitup/states.py", line 265, in set_state
state_info.start_fn()
File "/usr/share/comitup/comitup/states.py", line 54, in wrapper
returnvalue = fn(*args, **kwargs)
File "/usr/share/comitup/comitup/states.py", line 106, in hotspot_start
activate_connection(hs_ssid, 'HOTSPOT')
File "/usr/share/comitup/comitup/states.py", line 281, in activate_connection
path=path)
File "/usr/share/comitup/comitup/nm.py", line 178, in activate_connection_by_ssid
nm.NetworkManager.ActivateConnection(connection, device, path)
File "<string>", line 6, in ActivateConnection
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.NetworkManager.UnknownConnection: Connection 'comitup-796-0000' is not available on device wlan0 because device is not available
Why activating hotspot all the time?? this is already connected to a wifi. Also when i do comitup-cli nothing happend.
mmm, i just see this https://github.com/davesteele/comitup/wiki/Installing-Comitup now is working! Beatiful! Very useful!
ps.:i want to add a "text box" for saving info to a file, save that file in the raspberry pi. What file i need to touch?? Thanks.
If you want to add to the comitup web interface (available only in hotspot mode), it's one of the files in "templates".
HI.Thanks. But, how i can edit the file. I mean what i have to write/comment out??
For anyone else wanting to make this change, just make the first line of wificheck.py device_nm_managed() "return None", with the text indented four spaces.
Hi. First time i try to use your work. Im connect to the raspberry pi zero w throug ssh. I install comit-up. And try to run comitup-cli but nothing happend. What could i try? Thanks.
In the log i have this:
And when trying: