mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
GitBook: [master] 2 pages modified
This commit is contained in:
parent
c6237c5849
commit
eb0cb4f6b0
1 changed files with 24 additions and 1 deletions
|
@ -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)
|
||||
{% endhint %}
|
||||
|
||||
```bash
|
||||
### 1. Create a virtual env with CBPi
|
||||
|
||||
```bash
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
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
|
||||
|
||||
```python
|
||||
|
|
Loading…
Reference in a new issue