#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>
import weewx from weewx.engine import StdService class AddElectricity(StdService): def __init__(self, engine, config_dict): # Initialize my superclass first: super(AddElectricity, self).__init__(engine, config_dict) # Bind to any new archive record events: self.bind(weewx.NEW_ARCHIVE_RECORD, self.new_archive_packet) def new_archive_packet(self, event): (code that downloads the consumption data from the connection to the meter) event.record['electricity'] = retrieved_value
--
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.
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/kQZvc6UpLtA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Did you click the link in Tom's message?? The user guide tells you what needs to be done - perhaps you should seek answers to specific questions relating to the method and steps described in the documentation - or maybe wait until your knowledge of weewx and the system is greater before attempting to customise it. Just a friendly suggestion ....
On Monday, 11 April 2016 18:32:18 UTC+3, Giacomo Querio wrote:It's already 3.5.0 version, but I'm a so basic user that I don't have enough knowledge to add the cloudbase calculations to it....
[[[daycloudbase]]] [[[[cloudbase]]]]
Similarly, you could add weekly/monthly/yearly images to their sections in skin.conf if you wanted
Lastly you'd need to edit your skin .tmpl template file(s) to reference the image(s) you defined so the image shows up when weewx generates the web pages. I edited mine to add cloudbase stuff right under each of the UV references already in the file.
(under the first UV block)
#if $day.cloudbase.has_data
<tr>
<td class="stats_label">Cloud Base</td>
<td class="stats_data">$current.cloudbase</td>
</tr>
#end if
(under the second UV block)
#if $day.cloudbase.has_data
<tr>
<td class="stats_label">
High Cloud Base<br/>
Low Cloud Base
</td>
<td class="stats_data">
$day.cloudbase.max at $day.cloudbase.maxtime<br/>
$day.cloudbase.min at $day.cloudbase.mintime
</td>
</tr>
#end if
(under the third UV block)
#if $day.cloudbase.has_data
<img src="daycloudbase.png" alt="Cloud Base" />
#end if
You can run the reports anytime by cd to /home/weewx and running ./bin/wee_reports if you don't want to wait 5 minutes.
(lastly, if you used the .deb packaged version above, the path would probably be /usr/share/weewx above rather than /home/weewx - see the 'where to find things' in http://www.weewx.com/docs/usersguide.htm#Where_to_find_things)
And of course start weewx.conf when you get done editing, and probably set debug=1 in weewx.conf just in case....