theironrobin / siglo

GTK app to sync InfiniTime watch with PinePhone
Mozilla Public License 2.0
153 stars 23 forks source link

Is there a way to connect without Bluetooth? #101

Closed CalSch closed 2 years ago

CalSch commented 2 years ago

I am on a Chromebook with Linux on it, but I dont think it can access bluetooth because I get this error every time I run siglo: (Bluetooth is on btw)

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 177, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.bluez': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/share/siglo/siglo/bluetooth.py", line 45, in get_default_adapter
    bus.get_object("org.bluez", "/"), "org.freedesktop.DBus.ObjectManager"
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
    return self.ProxyObjectClass(self, bus_name, object_path,
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 250, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 182, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 277, in start_service_by_name
    return (True, self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/siglo", line 46, in <module>
    main()
  File "/usr/local/bin/siglo", line 29, in main
    d = daemon.daemon()
  File "/usr/local/share/siglo/siglo/daemon.py", line 13, in __init__
    self.manager = InfiniTimeManager()
  File "/usr/local/share/siglo/siglo/bluetooth.py", line 64, in __init__
    self.adapter_name = get_default_adapter()
  File "/usr/local/share/siglo/siglo/bluetooth.py", line 48, in get_default_adapter
    raise BluetoothDisabled
siglo.bluetooth.BluetoothDisabled

Linux does have access to USB ports, so is there a way to connect via USB?

theironrobin commented 2 years ago

no, this is a bluetooth app sorry