MCHOSE Web Driver Compatibility Fix

I recently bought an MCHOSE A7 V2 and it didn’t connect to the web driver properly.
I found this repository by Dk000t, which contains instructions for how to get it to communicate with the web interface correctly. Here I adapted it slightly for nixos:

Step 1

Connect your device via USB and run lsusb to see the Vender ID and Product ID.

Step 2

Add an udev rule like this and set the id’s respectively:

services.udev.extraRules = ''
  KERNEL=="hidraw*", ATTRS{idVendor}=="3837", ATTRS{idProduct}=="4018", MODE="0666", TAG+="uaccess"
'';

Step 3

Rebuild and reload udev rules with this as root: udevadm control --reload && udevadm trigger.

Step 4

profit

Disclaimer

All credit goes to Dk000t of course, and I have only tried it with the A7 V2 but it should work with other MCHOSE products as well.
Also you should use a chrome based browser for the web interface.