Adding cloud base to html page

337 views
Skip to first unread message

Weewx user 2015

unread,
Oct 14, 2015, 4:45:08 AM10/14/15
to weewx-user
Hello all,

Ive noticed in the terminal read out from my station that there are some extra measurements that I would like to add to the html page.

I figure if I get help for one than the rest should be self explanatory.

My station also outputs cloud base. Can someone give a rough guide of how to get this on the html page. Tried myself but the page just locked up.

Thanks for the great software Tom!

pterodaktil

unread,
Oct 14, 2015, 5:16:50 AM10/14/15
to weewx-user
I made it  like this

#set $delta_temp = $current.outTemp.raw-$current.dewpoint.raw
#set $cloud_base = int($delta_temp * 122)
#set $cloud_temp = int($delta_temp * -0.227 + $current.dewpoint.raw)
             
<tr>
               
<td class="stats_label">Нижняя граница облаков (оценка)</td>
               
<td class="stats_data">$cloud_base м</td>
             
</tr>



среда, 14 октября 2015 г., 11:45:08 UTC+3 пользователь Weewx user 2015 написал:

Thomas Keffer

unread,
Oct 14, 2015, 5:35:55 AM10/14/15
to weewx-user
User "pterodaktil" showed one way of including cloud base: by doing the calculation directly within the template.

With v3.2.0, cloud base is now routinely calculated by weewx. However, it is not included in the default database. If you follow the directions Adding a new type to the archive database in the Customizing Guide, you can add "cloudbase" to your database, allowing the use of the standard tags $current, $day, $week, etc.

-tk


--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Weewx user 2015

unread,
Oct 14, 2015, 8:10:55 AM10/14/15
to weewx-user
Thank You for both the responses.  Both are very informative!
Reply all
Reply to author
Forward
0 new messages