you could also try and change the read() in pond.py to readline() - would 
really like to know what is actually in the file / the format of the file 
that you are reading though!!

in fact even the 52.1 is suspect - since 11.1 converts to 51.2 not 52.1!!



On Sunday, 6 May 2018 13:34:06 UTC+3, Andrew Milner wrote:
>
> I'm pretty sure that is the reason, but not sure how to correct it!!
>
> the 52.1 is obviously a farenheit reading in the file - but what is 
> actually in /var/tmp/pond.txt??  Is there a newline or other data on the 
> end??
>
> I'm not too sure where the 100.624 is coming from at the moment
>
>
>
>   
>
> On Sunday, 6 May 2018 13:01:31 UTC+3, Jens-Jørgen Kjærgaard wrote:
>>
>> I think some information may be in this from syslog:
>>
>> May  6 11:44:48 raspberrypi weewx[2073]: pond: found value of 52.1
>> May  6 11:44:48 raspberrypi weewx[2073]: engine: 2018-05-06 11:44:48 CEST 
>> (1525599888) LOOP value 'extraTemp1' 100.624 outside limits (30.0, 80.0)
>> May  6 11:45:48 raspberrypi weewx[2073]: pond: found value of 52.1
>> May  6 11:45:48 raspberrypi weewx[2073]: engine: 2018-05-06 11:45:49 CEST 
>> (1525599949) LOOP value 'extraTemp1' 100.624 outside limits (30.0, 80.0)
>> May  6 11:46:49 raspberrypi weewx[2073]: pond: found value of 52.1
>> May  6 11:46:49 raspberrypi weewx[2073]: engine: 2018-05-06 11:46:49 CEST 
>> (1525600009) LOOP value 'extraTemp1' 100.624 outside limits (30.0, 80.0)
>>
>> The value of 52.1 Fahrenheit is probably the read value from the sensor, 
>> 11.1 centigrades, but neither is outside my limits of 30 and 80 (and my 
>> correction of * 0.8 not applied either). Some C/F confusion, but that does 
>> not seem to be the full explanation?
>>
>>
>> Jens-Jørgen Kjærgaard
>> Tuenvej 818
>> 9870 Sindal
>> +45 21204417
>> www.jensjk.dk
>>
>> 2018-05-06 11:51 GMT+02:00 Andrew Milner <andrew.s...@gmail.com>:
>>
>>> Gary - I'm lost now.  Was my change not correct?? - or do you also have 
>>> to add the field into the rec as well as the loop 
>>>
>>> Jens - what do you see in LOOP and REC data if you run weewx directly 
>>> from command line, rather than as a daemon?
>>>
>>>
>>>
>>>
>>> On Sunday, 6 May 2018 12:08:48 UTC+3, Jens-Jørgen Kjærgaard wrote:
>>>>
>>>> Did that - ufortunately, my lake temperature (extraTemp1) now shows up 
>>>> as N/A ?
>>>>
>>>> Jens-Jørgen Kjærgaard
>>>> Tuenvej 818 
>>>> <https://maps.google.com/?q=Tuenvej+818+9870+Sindal&entry=gmail&source=g>
>>>> 9870 Sindal 
>>>> <https://maps.google.com/?q=Tuenvej+818+9870+Sindal&entry=gmail&source=g>
>>>> +45 21204417
>>>> www.jensjk.dk
>>>>
>>>> 2018-05-06 9:29 GMT+02:00 Andrew Milner <andrew.s...@gmail.com>:
>>>>
>>>>> In pond.py
>>>>>
>>>>> change 
>>>>> self.bind(weewx.NEW_ARCHIVE_RECORD, self.read_file)
>>>>> to
>>>>> self.bind(weewx.NEW_LOOP_PACKET, self.read_file)
>>>>>
>>>>> and
>>>>>
>>>>> event.record['extraTemp1'] = float(value)
>>>>> to
>>>>> event.packet['extraTemp1'] = float(value)
>>>>>
>>>>> which will insert the pond temp into every loop packet and thence to 
>>>>> the record when generated
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Sunday, 6 May 2018 10:19:17 UTC+3, Jens-Jørgen Kjærgaard wrote:
>>>>>>
>>>>>> These hasn't been modified by me, though:
>>>>>>
>>>>>> Jens-Jørgen Kjærgaard
>>>>>> Tuenvej 818 
>>>>>> <https://maps.google.com/?q=Tuenvej+818+9870+Sindal&entry=gmail&source=g>
>>>>>> 9870 Sindal 
>>>>>> <https://maps.google.com/?q=Tuenvej+818+9870+Sindal&entry=gmail&source=g>
>>>>>> +45 21204417
>>>>>> www.jensjk.dk
>>>>>>
>>>>>> 2018-05-06 8:50 GMT+02:00 Andrew Milner <andrew.s...@gmail.com>:
>>>>>>
>>>>>>> yes I did indeed!! sorry - user/pond.py we need to see
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sunday, 6 May 2018 09:48:57 UTC+3, gjr80 wrote:
>>>>>>>>
>>>>>>>> I think you mean user/pond.py, PondService should be a class in 
>>>>>>>> user/pond.py.
>>>>>>>>
>>>>>>>> Gary
>>>>>>>>
>>>>>>> -- 
>>>>>>> You received this message because you are subscribed to a topic in 
>>>>>>> the Google Groups "weewx-user" group.
>>>>>>> To unsubscribe from this topic, visit 
>>>>>>> https://groups.google.com/d/topic/weewx-user/YVAkCwsY2S0/unsubscribe
>>>>>>> .
>>>>>>> To unsubscribe from this group and all its topics, send an email to 
>>>>>>> weewx-user+...@googlegroups.com.
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>> -- 
>>>>> You received this message because you are subscribed to a topic in the 
>>>>> Google Groups "weewx-user" group.
>>>>> To unsubscribe from this topic, visit 
>>>>> https://groups.google.com/d/topic/weewx-user/YVAkCwsY2S0/unsubscribe.
>>>>> To unsubscribe from this group and all its topics, send an email to 
>>>>> weewx-user+...@googlegroups.com.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "weewx-user" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/weewx-user/YVAkCwsY2S0/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> weewx-user+...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to