Skip to content

Commit

Permalink
Add matplotlib troubleshooting on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuSchopfer committed May 27, 2021
1 parent df9ae31 commit f9eb27d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ This project needs:

See what package your distribution provides for the HIDAPI library.

## MacOS
## macOS

The HIDAPI library may be easily installed on MacOS with Homebrew:
The HIDAPI library may be easily installed on macOS with Homebrew:
```shell
brew install hidapi
```
Expand All @@ -37,6 +37,18 @@ If the script cannot access the device, update your system's udev rules as follo
3. Reload the rules with `sudo udevadm control --reload-rules`
4. Plug your device.

## matplotlib on macOS

If the plotting window does not show up, you may need to configure the matplotlib backend. Edit file `~/.matplotlib/matplotlibrc` and add or edit
```
backend: TkAgg
```

Note that you need the Python Tcl/Tk interface. You can install it with
```shell
brew install python-tk
```

# Credits

Henryk Plötz was the first reverse engineer TFA Dotsmann CO2 monitors. Give a look at [his project](https://hackaday.io/project/5301-reverse-engineering-a-low-cost-usb-co-monitor).

0 comments on commit f9eb27d

Please sign in to comment.