Skip to content
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

Add support for more models #10

Merged
merged 2 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions contrib/udev/60-itchcraft.rules
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Kamedi’s “heat it” mosquito/insect bite healer
ACTION=="add", ATTRS{idVendor}=="32f9", ATTRS{idProduct}=="0001", DRIVERS=="usb", MODE="0666"
ACTION=="add", ATTRS{idVendor}=="32f9", ATTRS{idProduct}=="0002", DRIVERS=="usb", MODE="0666"
ACTION=="add", ATTRS{idVendor}=="32f9", ATTRS{idProduct}=="0003", DRIVERS=="usb", MODE="0666"
ACTION=="add", ATTRS{idVendor}=="32f9", ATTRS{idProduct}=="0004", DRIVERS=="usb", MODE="0666"
ACTION=="add", ATTRS{idVendor}=="32f9", ATTRS{idProduct}=="0005", DRIVERS=="usb", MODE="0666"
ACTION=="add", ATTRS{idVendor}=="32f9", ATTRS{idProduct}=="0006", DRIVERS=="usb", MODE="0666"
ACTION=="add", ATTRS{idVendor}=="32f9", ATTRS{idProduct}=="fca9", DRIVERS=="usb", MODE="0666"
ACTION=="add", ATTRS{idVendor}=="32f9", ATTRS{idProduct}=="fcba", DRIVERS=="usb", MODE="0666"
86 changes: 83 additions & 3 deletions itchcraft/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,71 @@ def _heat_it_device(
yield HeatItDevice(UsbBulkTransferDevice(usb_device))


_UNTESTED = """\
Itchcraft hasn’t been tested on this model, but I expect it to work just
fine. Your feedback is welcome, so feel free to open a GitHub issue on
https://github.com/claui/itchcraft/issues and share your findings.
Or write to: [email protected]
"""


SUPPORT_STATEMENTS: list[SupportStatement] = [
# Supported bite healers
SupportStatement(
vid=0x32F9, # 13049
pid=0x0001, # 1
vendor_name='Kamedi GmbH',
product_name='heat it',
connection_supplier=_heat_it_device,
comment=_UNTESTED,
),
SupportStatement(
vid=0x32F9, # 13049
pid=0x0002, # 2
vendor_name='Kamedi GmbH',
product_name='heat it',
connection_supplier=_heat_it_device,
comment=_UNTESTED,
),
SupportStatement(
vid=0x32F9, # 13049
pid=0x0003, # 3
vendor_name='Kamedi GmbH',
product_name='heat it',
connection_supplier=_heat_it_device,
comment=_UNTESTED,
),
SupportStatement(
vid=0x32F9, # 13049
pid=0x0004, # 4
vendor_name='Kamedi GmbH',
product_name='heat it',
connection_supplier=_heat_it_device,
comment=_UNTESTED,
),
SupportStatement(
vid=0x32F9, # 13049
pid=0x0005, # 5
vendor_name='Kamedi GmbH',
product_name='heat it',
connection_supplier=_heat_it_device,
comment=_UNTESTED,
),
SupportStatement(
vid=0x32F9, # 13049
pid=0x0006, # 6
vendor_name='Kamedi GmbH',
product_name='heat it',
connection_supplier=_heat_it_device,
comment=_UNTESTED,
),
SupportStatement(
vid=0x32F9, # 13049
pid=0xFCA9, # 64681
vendor_name='Kamedi GmbH',
product_name='heat it',
connection_supplier=_heat_it_device,
comment='Untested but will likely work',
comment=_UNTESTED,
),
SupportStatement(
vid=0x32F9, # 13049
Expand All @@ -72,9 +128,20 @@ def _heat_it_device(
vid=0x10C4, # 4292
pid=0x8C9B, # 35995
vendor_name='Kamedi GmbH',
product_name='heat it',
product_name='heat it (legacy)',
supported=False,
comment='Itchcraft doesn’t work with this legacy model.',
),
SupportStatement(
vid=0x10C4, # 4292
pid=0xEA60, # 60000
vendor_name='mibeTec GmbH',
product_name='bite away® pro',
supported=False,
comment='Untested',
comment="""\
Support for this model is on the roadmap for a future release
of Itchcraft.
""",
),
SupportStatement(
vid=0x10C4, # 4292
Expand All @@ -87,4 +154,17 @@ def _heat_it_device(
Can’t be used as a bite healer unless firmware is installed.
""",
),
SupportStatement(
vid=0x32F9, # 13049
pid=0x0007, # 7
vendor_name='Kamedi GmbH',
product_name='heat it',
supported=False,
comment="""\
Itchcraft is not compatible with this new model. If you’d like
me to add support, please open a GitHub issue on
https://github.com/claui/itchcraft/issues or write to:
[email protected]
""",
),
]