I did the FileParse thing - manual setup - data in /home/pi/obs.txt

I know it gets read - lines like 'windDir'=250.0 - because when I had 
quotes around the number bit, there was an error message in /var/log/syslog 
- unable to parse etc

But nothing appears in the html file .... ????




On Thursday, March 16, 2017 at 10:42:30 AM UTC+13, mwall wrote:
>
>
>
> On Wednesday, March 15, 2017 at 5:24:23 PM UTC-4, Ian Boag wrote:
>>
>> I think I have it .....
>>
>> In simulator.py ..... getLoopPackets
>>
>> for obs_type in self.observations:
>>   _packet[obs_type]=self.observations ... blah .. blah
>>
>> Hijacking this looks like it should work ..... ? 
>>
>
> just use the fileparse driver.  that will read name=value pairs from a 
> file.  you can easily modify fileparse.py to parse json instead of 
> name=value pairs.  or you can modify it to read json via urllib then parse 
> the json that it downloads.
>
> look for fileparse.py in the weewx source distribution.
>
> m 
>

Reply via email to