Mi Michael,

For now I've disabled "maxSolarRad" but my live gauge and Live charts still 
do not work.
I've restarted weewx with the same issue.

(...)

    [[radiation]]
        [[[radiation]]]
            payload_key = radiation
            #convertFunction = "function(value) { return value / 126.7; }" 
#you can do value conversions if needed
            showMaxMarkPoint = true
            showMinMarkPoint = false
            showAvgMarkLine = false
            lineColor = '#ffcd56'
            decimals = 0
#        [[[maxSolarRad]]]
#            plotType = line  #optional plot type, "line" is default
#            payload_key = maxSolarRad
#            showMaxMarkPoint = false
#            showMinMarkPoint = false
#            showAvgMarkLine = false
#            lineColor = '#ffcd5677'
#            decimals = 0
        [[[UV]]]
            yAxisIndex = 1  #to assign UV to the 2nd yAxis
            plotType = bar  #plot type, "line" is default
            aggregateType = avg
            aggregateInterval = 3600
            payload_key = UV
            showMaxMarkPoint = false
            showMinMarkPoint = false

But I also have this error (not critical) :

Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
Jul 13 09:35:43 weewx4-raspi weewx[9408] DEBUG user.jsonengine: 
JSONGenerator: Cannot decode reading of 'None' for column 'windDir'
(...)

Yves
YMartin.com/meteo

Le jeudi 13 juillet 2023 à 09 h 21 min 45 s UTC-4, [email protected] a 
écrit :

> If I remember correctly, you migrate from a rather old installation that 
> most likely didn't use the extended database schema. My best guess is, that 
> you didn't upgrade your database to  schemas.wview_extended.schema 
> See: https://github.com/weewx/weewx/blob/master/bin/schemas/wview.py => 
> doesn't contain "maxSolarRad" vs. 
> https://github.com/weewx/weewx/blob/master/bin/schemas/wview_extended.py 
> => conains "maxSolarRad"
>
> The skin's configuration is assuming having the extended schema, so now 
> your options are:
>
>    - Not using the predefined Chart
>    - Using the predefined chart without "maxSolarRad", problem here: in 
>    this case I don't know any other solution than removing it in skin .conf. 
>    I'll check an improvement
>    - Migrate to the extended schema, see: 
>    
> https://weewx.com/docs/latest/customizing.htm#transfer_database_using_new_schema
>
>
>
>
> Yves Martin schrieb am Donnerstag, 13. Juli 2023 um 14:14:37 UTC+2:
>
>> Hi,
>>
>> I have this recurent error :
>>
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] DEBUG user.jsonengine: 
>> Generating history for obs_name maxSolarRad and column_name maxSolarRad 
>> with binding None
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine: Caught 
>> unrecoverable exception in generator 'user.jsonengine.JSONGenerator'
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****  'maxSolarRad'
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****  Traceback (most recent call last):
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****    File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****      obj.start()
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****    File "/usr/share/weewx/weewx/reportengine.py", line 385, in start
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****      self.run()
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****    File "/usr/share/weewx/user/jsonengine.py", line 51, in run
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****      self.gen_data()
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****    File "/usr/share/weewx/user/jsonengine.py", line 128, in gen_data
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****      ret, category_history = self.gen_history_data(category, 
>> data_type, live_$
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****    File "/usr/share/weewx/user/jsonengine.py", line 210, in 
>> gen_history_data
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****      db_value_tuple = weewx.units.as_value_tuple(rec, column_name)
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****    File "/usr/share/weewx/weewx/units.py", line 1644, in 
>> as_value_tuple
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****      val = record_dict[obs_type]
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****  KeyError: 'maxSolarRad'
>> Jul 13 08:11:47 weewx4-raspi weewx[7143] ERROR weewx.reportengine:       
>>   ****  Generator terminated
>>
>> Any idea?
>>
>> Yves,
>> YMartin.com/meteo
>>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ed13706e-294e-4b65-9034-3538f1360060n%40googlegroups.com.

Reply via email to