die current.inc der Davis Station hat folgenden Eintrag
Code: Alles auswählen
('weekRain','#ff084a','current','1'),
Im Gegensatz dazu aber in der index.html der Ecowitt Station.
Code: Alles auswählen
('weekRain','#ff084a','current','1'),
Code: Alles auswählen
$week.rain.sum
und wo trage ich diese Zeile ein und evtl. noch weitere ?Werner hat geschrieben: ↑23 Mär 2025 13:10 Um diesen Wert zu bekommen, kann man ihn berechnen.Code: Alles auswählen
$week.rain.sum
Code: Alles auswählen
#elif $x[0] == 'rain'
<tr>
<td class="label"><font color=$color>$obs.label[$x[0]]$ztx</font></td>
<td class="data">$xt</td>
</tr>
<tr>
#set $xt2 = $gettext("Day")
<td class="label"><font color=$color>$obs.label[$x[0]]$ztx $xt2</font></td>
#if 'wx_binding' in $x[2]
#set $xt1 = $day(data_binding=$txt).rain.sum
#else
#set $xt1 = $day.rain.sum
#end if
<td class="data">$xt1</td>
</tr>
#if $ecowitt == 0
<tr>
#set $xt2 = $gettext("Week")
<td class="label"><font color=$color>$obs.label[$x[0]]$ztx $xt2</font></td>
#set $xt1 = $week.rain.sum
<td class="data">$xt1</td>
</tr>
#end if
#elif $x[0] == 'hail'
Code: Alles auswählen
#if $ecowitt == 0
<tr>
#set $xt2 = $gettext("Week")
<td class="label"><font color=$color>$obs.label[$x[0]]$ztx $xt2</font></td>
#set $xt1 = $week.rain.sum
<td class="data">$xt1</td>
</tr>
#end if
Code: Alles auswählen
('weekRain','#027777','wx_binding2, Ecowitt','1'),
Code: Alles auswählen
('weekRain','#027777','wx_binding2, Ecowitt','1'),
oder
('weekRain','','current','1'),
Code: Alles auswählen
('rain','#72b2c4','current','1'),
Code: Alles auswählen
#elif $x[0] == 'rain'
<tr>
<td class="label"><font color=$color>$obs.label[$x[0]]$ztx</font></td>
<td class="data">$xt</td>
</tr>
<tr>
#set $xt2 = $gettext("Day")
<td class="label"><font color=$color>$obs.label[$x[0]]$ztx $xt2</font></td>
#if 'wx_binding' in $x[2]
#set $xt1 = $day(data_binding=$txt).rain.sum
#else
#set $xt1 = $day.rain.sum
#end if
<td class="data">$xt1</td>
</tr>
#if $ecowitt == 0
<tr>
#set $xt2 = $gettext("Week")
<td class="label"><font color=$color>$obs.label[$x[0]]$ztx $xt2</font></td>
#set $xt1 = $week.rain.sum
<td class="data">$xt1</td>
</tr>
#end if
Code: Alles auswählen
#if $ecowitt == 0
<tr>
#set $xt2 = $gettext("Week")
<td class="label"><font color=$color>$obs.label[$x[0]]$ztx $xt2</font></td>
#set $xt1 = $week.rain.sum
<td class="data">$xt1</td>
</tr>
#end if
Code: Alles auswählen
#set $xt1 = $day.rain.sum
Code: Alles auswählen
#set $ecowitt = 0
#for $x in $ecowitt_hw
#if $x in $station.hardware
#set $ecowitt = 1
#end if
#end for
Ja natürlich - da es sich hier um einen erweiterten Seasons-Skin handelt.Würde der Simulator auch eine current.inc akzeptieren bzw. verarbeiten?
Code: Alles auswählen
.
├── __pycache__
├── schemas
│ └── __pycache__
├── user-20240116184139
│ └── installer
│ ├── airlink
│ ├── cmon
│ ├── GTS
│ └── neowx-material
├── user-20241025215137
│ └── installer
│ ├── airlink
│ ├── cmon
│ ├── GTS
│ ├── Meteoservices
│ └── neowx-material
├── weecfg
│ ├── __pycache__
│ └── tests
│ ├── expected
│ └── __pycache__