OK. Looks pretty simple. I might even be able to make it work :-) 




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