support.data_logger: fix InfluxDB tag handling.
by whitequark 6 years 5 months
support.data_logger: fix InfluxDB tag handling.

Before this commit, only one tag value was submitted.
ae08add2
applet.sensor.scd30: use support.data_logger.
by whitequark 6 years 5 months
3d2387eb
support.data_logger: implement stdout, CSV and Inf...
by whitequark 6 years 5 months
support.data_logger: implement stdout, CSV and InfluxDB data loggers.
39a6c37a
cli: await all tasks, not just the ones that are d...
by whitequark 6 years 5 months
cli: await all tasks, not just the ones that are done.

When we cancel run_applet(), it continues to run, because it needs
to wait for the USB transfers to get (asynchronously) cancelled.
Restructure the logic so that, when any of the main tasks quits,
they all get cancelled, and then awaited, ignoring the (expected)
cancellation error.
c47a734e
device.hardware: log cancelled USB transfers.
by whitequark 6 years 5 months
76e7e297
device.hardware: short-circuit USB callback during...
by whitequark 6 years 5 months
device.hardware: short-circuit USB callback during shutdown.
1979b661
device.hardware: GlasgowHardwareDevice.{usb→.usb...
by whitequark 6 years 5 months
device.hardware: GlasgowHardwareDevice.{usb→.usb_handle}
431f985c
device.hardware: shut down libusb polling thread.
by whitequark 6 years 5 months
device.hardware: shut down libusb polling thread.

Not doing this can cause a hang at interpreter shutdown because
python-libusb1 calls libusb_close() in __del__, which causes libusb1
to take a lock, which might have been taken by the daemon poller
thread, which might have already been killed (without releasing
the lock) by the time __del__ is called.
4de70043
software: fix build_ext not being called for bdist...
by whitequark 6 years 5 months
software: fix build_ext not being called for bdist_wheel.
c103a8fc
device.hardware: correctly handle asynchronous lib...
by whitequark 6 years 5 months
device.hardware: correctly handle asynchronous libusb cancellation.
765b757e
Report a bug