sample2, use env vars instead of hard-coded url and token
the hard-coded token is invalidated :)
This commit is contained in:
parent
9fc66e9e27
commit
c2c61da517
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
import panel
|
import panel
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
|
|
@ -8,8 +9,8 @@ from watt42_viewlib import attach_w42_state
|
||||||
|
|
||||||
panel.extension('echarts', 'ace', 'jsoneditor')
|
panel.extension('echarts', 'ace', 'jsoneditor')
|
||||||
|
|
||||||
SYSTEM_ID = "79476e53-dea6-44fa-976c-eff6260baeb6"
|
SYSTEM_ID = os.environ.get("WATT42_SYSTEM_ID", "invalid-system-id")
|
||||||
API_TOKEN = "d0vA6CsrY69N3JAOGtuZMEb9QpbJWPcoxhxRyBXZn8SIisB3weLKjMZwQRo8c2k9BRDtK0qHYnsvUMnqeO7Xog"
|
API_TOKEN = os.environ.get("WATT42_API_TOKEN", "invalid-api-token")
|
||||||
|
|
||||||
w42_state = panel.rx(None)
|
w42_state = panel.rx(None)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue