I tryed this but it gives me different error.. I thing i will just leave it 
as is and just generate pages every 10 minutes :) 

Jul  5 14:07:38 raspberrypi weewx[13829]: restx: MQTT: Unexpected exception 
of type <type 'exceptions.AttributeError'>
Jul  5 14:07:38 raspberrypi weewx[13829]: *** Traceback (most recent call 
last):
Jul  5 14:07:38 raspberrypi weewx[13829]: ***   File 
"/home/weewx/bin/weewx/restx.py", line 350, in run_loop
Jul  5 14:07:38 raspberrypi weewx[13829]: ***    
 self.process_record(_record, dbmanager)
Jul  5 14:07:38 raspberrypi weewx[13829]: ***   File 
"/home/weewx/bin/user/mqtt.py", line 420, in process_record
Jul  5 14:07:38 raspberrypi weewx[13829]: ***     if 
self.aggregation.find('aggregate') >= 0:
Jul  5 14:07:39 raspberrypi weewx[13829]: *** AttributeError: 'list' object 
has no attribute 'find'




Dne Ĩetrtek, 04. julij 2019 14.39.31 UTC+2 je oseba mwall napisala:
>
>
>
> On Thursday, July 4, 2019 at 8:30:49 AM UTC-4, Tadej Javornik wrote:
>>
>> When i made weewx for the first time I didn change unit sistem I left it 
>> in US so my database is in US format. My webpages that are generated are 
>> all in METRIC (mm, m/s..) what is okay because i'm from EU(Slo.) I don't 
>> really know how I set it up that this is working because it was 5 years 
>> ago. All my other services are plain numbers, I used database schema and 
>> occupied those fields. At first I was having problems because for example I 
>> wanted to put in extraTemp1 my data from .txt file which was measurement 
>> from dust sensor( ex. 330) but the weewx thought that it was temperature in 
>> F and it converted it to C in web page generation so the number was 
>> different.  I then simply used another database field with no calculation 
>> example:UV.. So I made quiet a mess.. But it is working normaly  :)
>> But I didn't touch any rain data ..
>>
>
> any service that adds observations to a packet/record must ensure that the 
> units of each observation match the unit system of the packet/record to 
> which it is adding
>
> any driver that creates a packet/record must ensure that the units of each 
> observation are consistent with the unit system of the packet
>
> you must also ensure that the units are defined for any database fields 
> that have units, otherwise you'll get unexpected behavior in your reports
>
> but that is not really the issue here
>
> if 'augment_record' is true (the default), then the mqtt uploader attempts 
> to add some rain calculations to the packets it uploads.  it does this 
> using the get_record method in restx, whether or not there are any rain 
> observations in the packet, and no matter what the unit system of the packet
>
> as a short-term fix, set augment_record=False
>
> then restart weewx
>
> m
>

-- 
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/8dece935-67f1-4066-bfba-2ba0d02ab068%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to