Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,15 +13,18 @@ def fetch_weather_data():
|
|
13 |
# Fetch the weather data
|
14 |
data = fetch_weather_data()
|
15 |
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
18 |
|
19 |
st.header("Realtime Dynamic Dashboard Prototype from Open Meteorological data", divider='rainbow')
|
20 |
col1, col2 = st.columns([1, 1])
|
21 |
with col2:
|
22 |
st.subheader('Intro')
|
23 |
st.caption('This is a live demo of a data integration and exchanges from HKO to CSDI and the end user for the dashboard creation. This dynamic dashboard utilizes almost all the available CSDI weather data (open meteorological data) into a geojson format and fetches to plot and analyze the real-time changes over time. Those dynamic pages will change over time every 1 minute (for the temperature) or every 10 minutes for the wind, relative humidity, and smart lamppost data.')
|
24 |
-
st.caption('The self-deployed API adopted here is
|
25 |
st.subheader('What special')
|
26 |
st.caption('The first ever dynamic and real-time application that fully utilizes the CSDI framework that groups up and releases all the data with the reorganization of the HKO to CSDI and the end-user in a dashboard manner. We have enhanced the CSDI and HKO datasets into more presentable, easier to understand, and interchangeable with the open-source application development. All the services, including the dashboard, frontend, and backend make use of the free and open-source packages.')
|
27 |
st.subheader('Acknowledgement')
|
@@ -43,4 +46,4 @@ with col1:
|
|
43 |
st.experimental_rerun()
|
44 |
|
45 |
st.caption('Disclaimer/ Remarks:')
|
46 |
-
st.caption('The data presented in this application is sourced from the Hong Kong Observatory (HKO) and the Common Spatial Data Infrastructure (CSDI) framework.
|
|
|
13 |
# Fetch the weather data
|
14 |
data = fetch_weather_data()
|
15 |
|
16 |
+
# Get warning message
|
17 |
+
warning_message_en = data.get("Warning_Message_En", "No warning message available")
|
18 |
+
|
19 |
+
# Get typhoon message
|
20 |
+
tc_message_en = data.get("TC_Message_En", "No typhoon message available")
|
21 |
|
22 |
st.header("Realtime Dynamic Dashboard Prototype from Open Meteorological data", divider='rainbow')
|
23 |
col1, col2 = st.columns([1, 1])
|
24 |
with col2:
|
25 |
st.subheader('Intro')
|
26 |
st.caption('This is a live demo of a data integration and exchanges from HKO to CSDI and the end user for the dashboard creation. This dynamic dashboard utilizes almost all the available CSDI weather data (open meteorological data) into a geojson format and fetches to plot and analyze the real-time changes over time. Those dynamic pages will change over time every 1 minute (for the temperature) or every 10 minutes for the wind, relative humidity, and smart lamppost data.')
|
27 |
+
st.caption('The self-deployed API adopted here is https://csdi.vercel.app/weather/temp, this API has already grouped up each of the automatic weather station surveyed profiles in 1 or 10-minute intervals and the user can get the data by fetching the API with different parameters. This backbone is important to make the CSDI data more useable, due to the original data being "redirected" based on data the user cannot get the data directly from CSDI, so we have resolved this issue by deploying an API for the HKO and CSDI usage.')
|
28 |
st.subheader('What special')
|
29 |
st.caption('The first ever dynamic and real-time application that fully utilizes the CSDI framework that groups up and releases all the data with the reorganization of the HKO to CSDI and the end-user in a dashboard manner. We have enhanced the CSDI and HKO datasets into more presentable, easier to understand, and interchangeable with the open-source application development. All the services, including the dashboard, frontend, and backend make use of the free and open-source packages.')
|
30 |
st.subheader('Acknowledgement')
|
|
|
46 |
st.experimental_rerun()
|
47 |
|
48 |
st.caption('Disclaimer/ Remarks:')
|
49 |
+
st.caption('The data presented in this application is sourced from the Hong Kong Observatory (HKO) and the Common Spatial Data Infrastructure (CSDI) framework. Users should note that the data is provided by the respective organizations (HKO and CSDI) and may be subject to updates, revisions, or changes over time. The application does not independently verify the accuracy of the data and relies on the integrity of the original sources.')
|