load env vars directly
Browse files- gui_control.py +5 -1
- key_request.py +8 -1
gui_control.py
CHANGED
|
@@ -1,9 +1,13 @@
|
|
| 1 |
def show():
|
| 2 |
# note to self you can check for empty with if statement st.image(image,
|
| 3 |
# caption='PIL Image', use_column_width=True)
|
|
|
|
| 4 |
import streamlit as st
|
| 5 |
from microscope_demo_client import MicroscopeDemo
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
port = 8883
|
| 9 |
microscopes = [
|
|
|
|
| 1 |
def show():
|
| 2 |
# note to self you can check for empty with if statement st.image(image,
|
| 3 |
# caption='PIL Image', use_column_width=True)
|
| 4 |
+
from os import environ
|
| 5 |
import streamlit as st
|
| 6 |
from microscope_demo_client import MicroscopeDemo
|
| 7 |
+
|
| 8 |
+
# from my_secrets import HIVEMQ_BROKER
|
| 9 |
+
|
| 10 |
+
HIVEMQ_BROKER = environ["HIVEMQ_BROKER"]
|
| 11 |
|
| 12 |
port = 8883
|
| 13 |
microscopes = [
|
key_request.py
CHANGED
|
@@ -3,9 +3,16 @@ def show():
|
|
| 3 |
import time
|
| 4 |
|
| 5 |
# import pymongo.mongo_client
|
|
|
|
| 6 |
import requests
|
| 7 |
import streamlit as st
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
from pymongo.mongo_client import MongoClient
|
| 10 |
|
| 11 |
# SET UP ON DATABASE you need to make a variable for the time called the
|
|
|
|
| 3 |
import time
|
| 4 |
|
| 5 |
# import pymongo.mongo_client
|
| 6 |
+
from os import environ
|
| 7 |
import requests
|
| 8 |
import streamlit as st
|
| 9 |
+
|
| 10 |
+
MONGODB_URI = environ["MONGODB_URI"]
|
| 11 |
+
|
| 12 |
+
HIVEMQ_BASE_URL = environ["HIVEMQ_BASE_URL"]
|
| 13 |
+
HIVEMQ_API_TOKEN = environ["HIVEMQ_API_TOKEN"]
|
| 14 |
+
HIVEMQ_BROKER = environ["HIVEMQ_BROKER"]
|
| 15 |
+
|
| 16 |
from pymongo.mongo_client import MongoClient
|
| 17 |
|
| 18 |
# SET UP ON DATABASE you need to make a variable for the time called the
|