mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-10 01:17:42 +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)
|
[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
|
||||||
|
|
Loading…
Reference in a new issue