Spaces:
Sleeping
Sleeping
chore: Update HiveMQ host, username, and password inputs in app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import json
|
| 2 |
import queue
|
| 3 |
-
import threading
|
| 4 |
|
| 5 |
import paho.mqtt.client as mqtt
|
| 6 |
import streamlit as st
|
|
@@ -8,9 +7,17 @@ import streamlit as st
|
|
| 8 |
# Initialize Streamlit app
|
| 9 |
st.title("RGB Command and Sensor Data Panel")
|
| 10 |
|
| 11 |
-
#
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
|
|
|
| 14 |
HIVEMQ_HOST = st.text_input(
|
| 15 |
"Enter your HiveMQ host:",
|
| 16 |
"248cc294c37642359297f75b7b023374.s2.eu.hivemq.cloud",
|
|
|
|
| 1 |
import json
|
| 2 |
import queue
|
|
|
|
| 3 |
|
| 4 |
import paho.mqtt.client as mqtt
|
| 5 |
import streamlit as st
|
|
|
|
| 7 |
# Initialize Streamlit app
|
| 8 |
st.title("RGB Command and Sensor Data Panel")
|
| 9 |
|
| 10 |
+
# Description and context
|
| 11 |
+
st.markdown(
|
| 12 |
+
"""
|
| 13 |
+
This application accesses a public test demo situated in Toronto, ON, Canada (as of 2024-07-27).
|
| 14 |
+
For more context, you can refer to this [Colab notebook](https://colab.research.google.com/github/sparks-baird/self-driving-lab-demo/blob/main/notebooks/4.2-paho-mqtt-colab-sdl-demo-test.ipynb)
|
| 15 |
+
and the [self-driving-lab-demo project](https://github.com/sparks-baird/self-driving-lab-demo).
|
| 16 |
+
You may also be interested in the [Acceleration Consortium's "Hello World" microcourse for self-driving labs](https://ac-microcourses.readthedocs.io/en/latest/courses/hello-world/index.html).
|
| 17 |
+
"""
|
| 18 |
+
)
|
| 19 |
|
| 20 |
+
# MQTT Configuration
|
| 21 |
HIVEMQ_HOST = st.text_input(
|
| 22 |
"Enter your HiveMQ host:",
|
| 23 |
"248cc294c37642359297f75b7b023374.s2.eu.hivemq.cloud",
|