BorowyP commited on
Commit
a89c856
1 Parent(s): cc6bff4
Files changed (7) hide show
  1. Dockerfile +11 -0
  2. HD_Logo.png +0 -0
  3. LFE_Logo.png +0 -0
  4. fnr_logo.png +0 -0
  5. index_page.py +102 -0
  6. projektpartner_label.png +0 -0
  7. requirements.txt +8 -0
Dockerfile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+
7
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
+
9
+ COPY . .
10
+
11
+ CMD ["panel", "serve", "/code/index_page.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
HD_Logo.png ADDED
LFE_Logo.png ADDED
fnr_logo.png ADDED
index_page.py ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Created on Sat Mar 18 14:32:51 2023
4
+
5
+ @author: BorowyP
6
+ """
7
+
8
+ import panel as pn
9
+ pn.extension(sizing_mode="stretch_width")
10
+
11
+ hd_logo = pn.pane.PNG('HD_Logo.png', width=100)
12
+ projektpartner_label = pn.pane.PNG('projektpartner_label.png', width=800)
13
+ einbau_stabe = pn.pane.PNG('einbau_stabe.png', width=800)
14
+ ausbau_stabe = pn.pane.PNG('ausbau_stabe.png', width=800)
15
+
16
+ lfe_logo = pn.pane.PNG('LFE_Logo.png', width=100)
17
+
18
+ fnr_logo = pn.pane.PNG('fnr_logo.png', width=100)
19
+
20
+ einbau_stabe_text = pn.pane.Markdown('#### Das Projekt HolzDeko ordnet sich thematisch in den Komplex der Dekomposition von Holz in Wäldern ein. Ziel ist sowohl die Zersetzungsraten von Hölzern in und auf Waldböden des nordostdeutschen Tieflandes zu bstimmen als auch hieraus Prognosen für die mikroielle Aktivität sowie den Biomasse- und Stoffumsatz in den Ökosystemkompartimenten Boden und bodennaher Bereich abzuleiten.')
21
+
22
+ headline = pn.Row(einbau_stabe, einbau_stabe_text)
23
+
24
+
25
+
26
+ ausbau_stabe_text = pn.pane.Markdown('#### Dieses Dashboard soll einen Überblick über die erhobenen Daten schaffen, als Quelle für Diagramme und Grafiken dienen sowie zum Experimentieren einladen. Viel Spaß beim Ausprobieren :)')
27
+
28
+ baseline = pn.Row(ausbau_stabe, ausbau_stabe_text)
29
+
30
+
31
+
32
+ luft_temp_link_content = '''<a href="https://paulborowy-holzdeko.hf.space/Lufttemperatur" target="_blank">Lufttemperatur</a>'''
33
+
34
+ luft_hum_link_content = '''<a href="https://paulborowy-holzdeko.hf.space/Luftfeuchte" target="_blank">Luftfeuchte</a>'''
35
+
36
+ nied_link_content = '''<a href="https://paulborowy-holzdeko.hf.space/Niederschlag" target="_blank">Niederschlag</a>'''
37
+
38
+ boden_temp_content = '''<a href="https://paulborowy-holzdeko.hf.space/Bodentemperatur" target="_blank">Bodentemperatur</a>'''
39
+
40
+ boden_hum_content = '''<a href="https://paulborowy-holzdeko.hf.space/Bodenfeuchte" target="_blank">Bodenfeuchte</a>'''
41
+
42
+ stahlrahmen_link_content = '''<a href="https://paulborowy-holzdeko.hf.space/Stahlrahmen" target="_blank">Streufall</a>'''
43
+
44
+ hemisfere_link_content = '''<a href="https://paulborowy-holzdeko.hf.space/Hemisfere" target="_blank">Hemisfere</a>'''
45
+
46
+ masseverlust_link_content = '''<a href="https://paulborowy-holzdeko.hf.space/Masseverlust" target="_blank">Masseverlust</a>'''
47
+
48
+
49
+
50
+ luft_temp_link = pn.panel(luft_temp_link_content)
51
+
52
+ luft_hum_link = pn.panel(luft_hum_link_content)
53
+
54
+ nied_link = pn.panel(nied_link_content)
55
+
56
+ boden_temp_link = pn.panel(boden_temp_content)
57
+
58
+ boden_hum_link = pn.panel(boden_hum_content)
59
+
60
+ stahlrahmen_link = pn.panel(stahlrahmen_link_content)
61
+
62
+ hemisfere_link = pn.panel(hemisfere_link_content)
63
+
64
+ masseverlut_link = pn.panel(masseverlust_link_content)
65
+
66
+ link_list = pn.Column(luft_temp_link,
67
+ luft_hum_link,
68
+ nied_link,
69
+ boden_temp_link,
70
+ boden_hum_link,
71
+ stahlrahmen_link,
72
+ hemisfere_link,
73
+ masseverlut_link)
74
+
75
+ template = pn.template.FastListTemplate(
76
+ title='Holzdeko Dashboard',
77
+ sidebar=[hd_logo,
78
+ pn.pane.Markdown("## Inhalt"),
79
+ link_list,
80
+
81
+ lfe_logo,
82
+ fnr_logo
83
+ ],
84
+ main=[projektpartner_label,
85
+ pn.pane.Markdown("## HolzDeko Dashboard"),
86
+ headline,
87
+ baseline
88
+
89
+ ],
90
+ accent_base_color="#00613a",
91
+ header_background="#00613a"
92
+ )
93
+
94
+
95
+
96
+
97
+ template.servable();
98
+
99
+ #print('fertig!')
100
+ # To launch this dashboard as a web server, we can simply run
101
+ # cd C:\Users\BorowyP\Desktop\Dashboard-Preasi\Index_page
102
+ # panel serve 20230317_index_page.ipynb --autoreload
projektpartner_label.png ADDED
requirements.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ panel
2
+
3
+
4
+
5
+
6
+
7
+
8
+