Update installation.md

This commit is contained in:
apt105 2021-04-28 23:47:40 +01:00
parent 8f3fc645b9
commit 7d24236e2d

View file

@ -6,23 +6,31 @@ sidebar_label: Installation
This is a python library for using Meshtastic devices. This small library (and example application) provides an easy API for sending and receiving messages over mesh radios. It also provides access to any of the operations/data available in the device user interface or the Android application. Events are delivered using a publish-subscribe model, and you can subscribe to only the message types you are interested in. This is a python library for using Meshtastic devices. This small library (and example application) provides an easy API for sending and receiving messages over mesh radios. It also provides access to any of the operations/data available in the device user interface or the Android application. Events are delivered using a publish-subscribe model, and you can subscribe to only the message types you are interested in.
[Full documentation](https://meshtastic.github.io/Meshtastic-python) including examples is available. [Full documentation](https://meshtastic.github.io/Meshtastic-python) for the library, including examples, is available.
Installation is easily done through the Python package installer pip (note, you must use pip version 20 or later): Installation is easily done through the Python package installer pip (note, you must use pip version 20 or later):
- check that your computer has the required serial drivers installed - check that your computer has the required serial drivers installed
* Connect your Meshtastic device to your USB port * Connect your Meshtastic device to your USB port
* Use the command * Use the command
``` ```bash
lsusb lsusb
``` ```
* You should see something like `CP210X USB to UART Bridge Controller` * You should see something like `CP210X USB to UART Bridge Controller`
* if not download the drivers from [Silicon Labs](https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers). * if not download the drivers from [Silicon Labs](https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers).
- check that your computer has Python 3 installed. - check that your computer has Python 3 installed.
* * Use the command
- check that your computer has "pip3" installed, if not follow [this guide](https://www.makeuseof.com/tag/install-pip-for-python/). ```bash
- check that pytap2 is installed by pip3. If not, install it: python3 -V
```
* If this does not return a version, install [python](https://www.python.org)
- pip is typically installed if you are using python 3 version >= 3.4
* Check that pip is installed using this command
```bash
pip3 --version
```
* If this does not return a version, install [pip](https://pip.pypa.io/en/stable/installing/)
- install pytap2
```bash ```bash
sudo pip3 install --upgrade pytap2 sudo pip3 install --upgrade pytap2
``` ```