r>
                <td><pre class="tty">db = config_dict['StdArchive']['archive_database']
self.database_dict = config_dict['Databases'][db]
with weewx.archive.Archive.open(self.database_dict) as archive:
    val = archive.getSql("SELECT AVG(windSpeed) FROM archive"
                         " WHERE dateTime&gt;? AND dateTime&lt;=?",
                         (start_ts, end_ts))</pre>
                </td>
                <td><pre class="tty">with self.engine.db_binder.get_manager('wx_binding') as mgr:
    va