Hello, Christopher

While what you're doing should work, I'd recommend using the more complete
instructions in the section *Add a new type to the archive database
<http://weewx.com/docs/customizing.htm#add_archive_type>*, rather than this
old thread.

See if the module, in fact, exists:

ls /usr/share/weewx/schemas


If it does not, do you recall moving or deleting the module?

I doubt this is the problem, but you can also try an explicit PYTHONPATH:

PYTHONPATH=/usr/share/weewx wee_database


-tk


On Tue, Mar 28, 2017 at 4:52 AM, Christopher McAvaney <
[email protected]> wrote:

> 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.
>

-- 
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.

Reply via email to