You mean the if I add to the label_map in weewx.conf the line: 

timestamp (from my phant server)=dateTime 

it will use this timestamp in the weewx database instead of the generated 
one?

On Tuesday, 17 January 2017 09:24:29 UTC-5, Tom Keffer wrote:
>
>
>
> On Tue, Jan 17, 2017 at 6:03 AM, Robert Mantel <[email protected] 
> <javascript:>> wrote:
>
>> I know this is an old thread but I want to ask you about another possible 
>> solution.  I have a Particle Photon based weather station that I have 
>> dumping sensor readings to a phant server I have running on my network.  
>> The phant server timestamps everything in UTC.  I can then do a jsonp query 
>> with a cron job python script I have running then parse that into a format 
>> that fileparse.py likes.  I also parse out and convert the EST corrected 
>> timestamp from the server into unix epoch format.  Can weewx be set up to 
>> ignore it's own timestamps and just use the imported ones, which 
>> technically are more accurate because they represent the very moment the 
>> reading was taken?  I tried using fileparse to import the timestamp into 
>> the dateTime label in weewx, but I think it didn't like that.
>>
>
> If you just add a 'dateTime' line to the file, the time you use there 
> should replace the one provided by fileparse.py.​
>
>  
>
>> Another possible solution to the NTP problem is to use a server you have 
>> on your local network and configure it as an NTP relay.  I have a freenas 
>> box running my phant server in a jail on it so would be easy to just set it 
>> up to act as an NTP relay and have the Pi sync from that rather than the 
>> internet, therefore I can operate completely in a net down situation and 
>> keep collecting data with proper timestamps.  
>>
>>
> ​Yes, but would it after a "power down" situation? Also, setting up a 
> dedicated NTP relay is beyond the ken of most users.
>
> -tk​
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to