If a line has an embedded value of None, it is considered to be two 
separate line segments, regardless of the setting of gap_fraction. So, I 
would suggest leaving the data value out entirely, rather than setting it 
to None.
>
>
> Does that make sense?
>
>
I believe I got it! I think my problem is with using the pond.py to read 
the data and how it reacts when the field is empty. If I understand well, a 
command:

event.record['leafTemp1'] = float(value[0])

will add the data to the database even if nothing is there to be add. 
Instead of simply skipping the add operation, it will add empty data 
represented by None. None breaks line in plot. If the above line would not 
execute, nothing would be placed in the database and the line would not be 
broken.

Now I save something in each pass: real data or "Hey, this is empty!". 
Instead, I want to save the data only once per hour and nothing in between!

I do not know Python but am a programmer. I expected this in pond.py should 
fix the issue:
if value[0]: 
   event.record['leafTemp1'] = float(value[0])

I tried this but it seems to not work. But, if I am on the right track, I 
may have been to quick. To test, I can clear the fields between 
measurements.

  

-- 
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/1e3e3177-4e1c-4e62-a51c-4ba746930079%40googlegroups.com.

Reply via email to