GitBook: [master] 2 pages modified

This commit is contained in:
manuel 2021-01-26 07:11:58 +00:00 committed by gitbook-bot
parent c6237c5849
commit eb0cb4f6b0
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF

View file

@ -9,13 +9,36 @@ How to create virtual env in Python
[https://docs.python.org/3/tutorial/venv.html](https://docs.python.org/3/tutorial/venv.html) [https://docs.python.org/3/tutorial/venv.html](https://docs.python.org/3/tutorial/venv.html)
{% endhint %} {% endhint %}
```bash ### 1. Create a virtual env with CBPi
```bash
python3 -m venv venv python3 -m venv venv
source venv/bin/activate source venv/bin/activate
python3 -m pip insatll cbpi python3 -m pip insatll cbpi
``` ```
### 2. Create Folder structure
### 3. Add Custom Code
### 4. Test the Code
### 3. Build plugin
### 4. Upload the plugin
### Full Example
[https://github.com/Manuel83/cbpi4-ui-plugin](https://github.com/Manuel83/cbpi4-ui-plugin)
## Sensor ## Sensor
```python ```python