Apologies, should have included the relevant section of the 
historygenerator , it looks like a IndexError but I dont know how to verify 
why this is the case?, code below:

if aggregate_type in ['max_ge', 'max_le', 'min_le', 'sum_ge']:

                try:
                    threshold_value = 
float(table_options['aggregate_threshold'][0])
                except KeyError:
                    syslog.syslog(syslog.LOG_INFO, "%s: Problem with 
aggregate_threshold. Should be in the format: [value], [units]" %
                                  (os.path.basename(__file__)))
                    return "Could not generate table %s" % table_name

                threshold_units = table_options['aggregate_threshold'][1]

                try:
                    reading = getattr(readingBinder, 
aggregate_type)((threshold_value, threshold_units))
                except IndexError:
                    syslog.syslog(syslog.LOG_INFO, "%s: Problem with 
aggregate_threshold units: %s" % (os.path.basename(__file__),
                                                                            
                           str(threshold_units)))
                    return "Could not generate table %s" % table_name
            else:
                try:
                    reading = getattr(readingBinder, aggregate_type)
                except KeyError:
                    syslog.syslog(syslog.LOG_INFO, "%s: aggregate_type %s 
not found" % (os.path.basename(__file__),
                                                                            
            aggregate_type))
                    return "Could not generate table %s" % table_name


On Tuesday, May 1, 2018 at 7:40:51 PM UTC+1, Muireadach O Connor wrote:
>
> Hi,
>
> I'm trying to make a table which shows the amount of windy days in a 
> particular in the by adding the following in the skin.conf:
>
>  [HistoryReport]
>  
>  [[windy]]
>         obs_type = windGust
>         units = Days
>         aggregate_type = sum_ge
>         aggregate_threshold = 39, km_per_hour
>         minvalues = 0, 6,  12, 18, 24, 30
>         maxvalues = 6, 12, 18, 24, 30, 32
>         colours = "#E0F8E0", "#A9F5A9", "#58FA58", "#2EFE2E", "#41E741", 
> "#01DF01"
>
> However when the template is processed i can see in the syslog - 
>
> *May  1 19:20:16 raspberrypi weewx[399]: manager: Added record 2018-05-01 
> 19:20:00 IST (1525198800) to database 'weewx.sdb'*
> *May  1 19:20:16 raspberrypi weewx[399]: manager: Added record 2018-05-01 
> 19:20:00 IST (1525198800) to daily summary in 'weewx.sdb'*
> *May  1 19:20:19 raspberrypi weewx[399]: engine: Clock error is 0.50 
> seconds (positive is fast)*
> *May  1 19:20:21 raspberrypi weewx[399]: historygenerator.pyc: Problem 
> with aggregate_threshold units: km_per_hour*
> *May  1 19:20:21 raspberrypi weewx[399]: historygenerator.pyc: Generated 7 
> tables in 1.97 seconds*
> *May  1 19:20:25 raspberrypi weewx[399]: cheetahgenerator: Generated 8 
> files for report StandardReport in 5.65 seconds*
> *May  1 19:20:27 raspberrypi weewx[399]: imagegenerator: Generated 11 
> images for StandardReport in 1.94 seconds*
> *May  1 19:20:27 raspberrypi weewx[399]: copygenerator: copied 0 files to 
> /var/weewx/reports*
> *May  1 19:21:26 raspberrypi weewx[399]: cheetahgenerator: Generated 12 
> files for report forecast in 59.17 seconds*
> *May  1 19:21:26 raspberrypi weewx[399]: copygenerator: copied 0 files to 
> /var/weewx/reports/forecast*
> *May  1 19:21:29 raspberrypi weewx[399]: ftpgenerator: ftp'd 32 files in 
> 3.19 seconds*
>
> I'm sure i'm missing something obvious, can anyone help?
>
> Using Weewx 3.8.0 and the "niculskin" , page generated is  at - 
> http://www.loughlinstown.com/history.html
> .
>

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