$station_obs_html - index.html.tmpl

62 views
Skip to first unread message

Joachim Puttkammer

unread,
Aug 5, 2020, 8:26:53 AM8/5/20
to weewx-user
To display more sensors on the main page I have added the following lines:

<tbody>
$station_obs_html

   
<tr>
       
<td class='station-observations-label'>$obs.label.dewpoint</td>
       <td>
       <span class="outHumidity">$current.dewpoint</
span><!-- AJAX -->
       
</td>
    </
tr>

   
#if $day.soilMoist1.has_data
   
<tr>
       
<td class='station-observations-label'>Bodenfeuchte</td>
       <td>
       <span class="radiation">$current.soilMoist1</
span><!-- AJAX -->
       
</td>
    </
tr>
   
#end if

</tbody>



Is there a way to display the order of the sensors in the $station_obs_html differently?
Or only through new table entries and deleting $station_obs_html ?

Joachim Puttkammer

unread,
Aug 6, 2020, 8:14:42 AM8/6/20
to weewx-user
done

Pat

unread,
Aug 9, 2020, 2:22:20 PM8/9/20
to weewx-user
In version 1.1+, the way they are ordered in the skin/weewx.conf Extras  station_observations  variable should be how they're ordered on the website. 
Reply all
Reply to author
Forward
0 new messages