load dotenv correct
This commit is contained in:
parent
97e7774622
commit
9cefbc6cb7
1
.gitignore
vendored
1
.gitignore
vendored
@ -132,3 +132,4 @@ cython_debug/
|
||||
.idea/
|
||||
|
||||
config.env
|
||||
.DS_Store
|
||||
|
@ -1,4 +1,7 @@
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
BASE_URL = os.getenv('OPENSPOOLMAN_BASE_URL') # Where will this app be accessible
|
||||
PRINTER_ID = os.getenv('PRINTER_ID') # Printer serial number - Run init_bambulab.py
|
||||
|
@ -3,3 +3,4 @@ requests==2.32.3
|
||||
flask==3.1.0
|
||||
pyopenssl==24.3.0
|
||||
gunicorn==23.0.0
|
||||
python-dotenv
|
@ -13,13 +13,18 @@
|
||||
<div class="card-body">
|
||||
<!-- Tray Sub-Brand and Type -->
|
||||
<div class="small text-muted mb-2">
|
||||
{% if tray_data.tray_type %}
|
||||
{{ tray_data.tray_type }}
|
||||
{% if tray_data.tray_sub_brands %}
|
||||
<br/>
|
||||
{{ tray_data.tray_sub_brands }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
Empty
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if tray_data.tray_type %}
|
||||
<!-- Badge with Dynamic Colors -->
|
||||
<span class="badge d-inline-block p-2"
|
||||
style="background-color: #{{ tray_data.tray_color }};
|
||||
@ -36,6 +41,7 @@
|
||||
<span class="fw-bold">{{ tray_data.remain }}%</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
{% if pick_tray %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user