G'day,
I have just been trying this, but get the following error:
/usr/share/weewx/user$ sudo wee_database
Traceback (most recent call last):
File "/usr/bin/wee_database", line 18, in <module>
import user.extensions #@UnusedImport
File "/usr/share/weewx/user/extensions.py", line 21, in <module>
import schemas.wview
ImportError: No module named wview
Does anybody have any insight as to why it can't find the wview module?
Regards,
Christopher
On Sunday, 26 July 2015 08:23:12 UTC+10, mwall wrote:
>
> On Saturday, July 25, 2015 at 4:31:17 PM UTC-4, Josep Montamat wrote:
>>
>> I have also observed that 'appTemp' not included in weewx.sdb
>>
>
> the default weewx configuration uses the wview schema. that schema is
> based on the observations available from a davis vantage weather station.
>
> if you want to use the additional variables such as those from
> StdWXCalculate, you must either (a) extend the schema so that the
> additional variables are saved in the database, (b) wait until the $current
> tag supports LOOP observations, (c) write a search list extension that uses
> the wxformulas that StdWXCalculate uses, or (d) duplicate the wxformulas
> calculations in template calculations.
>
> this is how to do option (a):
>
> 1) extend the schema. the process is described in the weewx customization
> guide. instead of the electricity/power observations, use something like
> this in user/extensions.py:
>
> import schemas.wview
> schema = schemas.wview.schema + [('lightning', 'REAL'),
> ('maxSolarRad', 'REAL'),
> ('cloudbase', 'REAL'),
> ('windrun', 'REAL')]
>
> then refer to it in weewx.conf like this:
>
> [DataBindings]
> [[wx_binding]]
> ...
> schema = user.extensions.schema
>
> 2) follow the instructions in the customization guide for converting the
> database.
>
> 3) use the observations in template files and plots as you would other
> observations.
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.