Pegelonline/map_tips.py
2025-09-28 11:47:43 +02:00

56 lines
1.8 KiB
Python

BASEMAP_MAP_TIPS = "[% \"NAM\" %] [% if(\"ZNM\" != '', ' / ' || \"ZNM\", '') %]"
STATIONS_MAP_TIPS = "\
<h1>[% \"shortname\" %]</h1>\
<table>\
<tr>\
<th style='text-align: left'>Nummer:</th>\
<td>#[% \"number\" %]</td>\
</tr>\
<tr>\
<th style='text-align: left'>Behörde:</th>\
<td>[% \"agency\" %]</td>\
</tr>\
<tr>\
<th style='text-align: left'>Gewässer:</th>\
<td>[% \"water\" %]</td>\
</tr>\
<tr>\
<th style='text-align: left'>Kilometer:</th>\
<td>[% \"km\" %] km</td>\
</tr>\
</table>"
WATERLEVELS_MAP_TIPS = "\
<h1>[% \"shortname\" %]</h1>\
<table>\
<tr>\
<th style='text-align: left'>Nummer:</th>\
<td>#[% \"number\" %]</td>\
</tr>\
<tr>\
<th style='text-align: left'>Behörde:</th>\
<td>[% \"agency\" %]</td>\
</tr>\
<tr>\
<th style='text-align: left'>Gewässer:</th>\
<td>[% \"water\" %]</td>\
</tr>\
<tr>\
<th style='text-align: left'>Zeitstempel:</th>\
<td>[% \"timestamp\" %]</td>\
</tr>\
<tr>\
<th style='text-align: left'>Aktueller Pegel:</th>\
<td>[% \"value\" %] [% \"unit\" %]</td>\
</tr>\
<tr>\
<th style='text-align: left'>MNW, MHW:</th>\
<td>[% \"stateMnwMhw\" %]</td>\
</tr>\
<tr>\
<th style='text-align: left'>NSW, HSW:</th>\
<td>[% \"stateNswHsw\" %]</td>\
</tr>\
</table>"