Hi,

I'm not familiar with weewx-purpleair and I am not sure if the stack trace 
you posted is with a manually created database or not, but one suggestion 
if I may. If the weewx-purpleair is supposed to create its own database 
then I would be trying to work through that issue rather than manually 
creating the database. In my experience when weeWX related databases are 
manually created and you subsequently have errors you then need to work out 
if the errors are due to the manually created database having some 
defect/shorfall or is it due to an error in the extension/driver/code you 
are running. You are usually far better to let the weeWX API maintain the 
databases, when things don't work it takes one variable out of the equation.

Gary

On Tuesday, 16 January 2018 13:54:24 UTC+10, jonathan koren wrote:
>
> Apologies for the double post. I accidentally sent the message before I 
> was ready.
>
> Here's the stack trace.
> Traceback (most recent call last):
>   File "/usr/share/weewx/weewx/reportengine.py", line 239, in run
>     obj.start()
>   File "/usr/share/weewx/weewx/reportengine.py", line 273, in start
>     self.run()
>   File "/usr/share/weewx/weewx/imagegenerator.py", line 32, in run
>     self.genImages(self.gen_ts)
>   File "/usr/share/weewx/weewx/imagegenerator.py", line 72, in genImages
>     archive = self.db_binder.get_manager(binding)
>   File "/usr/share/weewx/weewx/manager.py", line 857, in get_manager
>     self.manager_cache[data_binding] = open_manager(manager_dict, 
> initialize)
>   File "/usr/share/weewx/weewx/manager.py", line 1009, in open_manager
>     manager_dict['table_name'])
>   File "/usr/share/weewx/weewx/manager.py", line 104, in open
>     dbmanager = cls(connection, table_name)
>   File "/usr/share/weewx/weewx/manager.py", line 1149, in __init__
>     raise weedb.OperationalError("No day summary schema for table '%s' in 
> database '%s'" % (self.table_name, connection.database_name))
> OperationalError: No day summary schema for table 'archive' in database 
> 'purpleair.sdb'
> Jan 15 19:44:52 raspberrypi wee_reports[14415]: copygenerator: copied 8 
> files to /var/www/html/weewx
>
> It looks likes it's something with the user.purpleair.schema not being 
> passed through correctly or sometthing.
>
> Any suggestions? This is v0.2 release from github.
>
> Thanks.
>
> On Monday, January 15, 2018 at 7:45:10 PM UTC-8, jonathan koren wrote:
>>
>> I just installed my purple air sensor, and am trying out weewx-purpleair, 
>> but I'm having all sorts of problems getting the purpleair.sdb to be 
>> created correctly. 
>>
>> Originally, purpleair.sdb wasn't created, so I created it along with the 
>> archive table, but it still isn't working. It's now complaining about 
>> OperationalError: No day summary schema for table 'archive' in database 
>> 'purpleair.sdb'
>>
>>
>> On Wednesday, January 10, 2018 at 8:14:48 AM UTC-8, Kenneth Baker wrote:
>>>
>>> Hi Daniel, 
>>>
>>> Please give this a try: https://github.com/bakerkj/weewx-purpleair. 
>>>  The 
>>> installation procedure is untested at the moment.  Comments, 
>>> suggestions, new 
>>> feature requests are all welcome. 
>>>
>>> -- Ken 
>>>
>>>
>>> P.S.  Matthew, I modeled this plugin on your cmon extension - Thanks! 
>>>
>>>
>>>
>>>

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