[GTALUG] Serial logging: best practice, pitfalls, advice?

David Collier-Brown davec-b at rogers.com
Wed Sep 17 14:43:28 UTC 2014


On 09/17/2014 08:51 AM, Stewart C. Russell wrote:
> Thanks to all who responded!
>
> On 14-09-16 02:45 PM, David Collier-Brown wrote:
>> It's just a little redundant: the names end in : the values in , the
>> time is in square brackets, the  rssi in round ones.
> Good point. I wonder if it's worth encoding each record as JSON, like:
>
> {"Energy_Wh": 63856, "Temp_C": 14, "Rssi_dBm": -81, "Power_W": 613,
> "Timestamp_ms": 105874810}
>
> Readable, computer readable; maybe a little verbose, but definitely
> self-describing.
>
>

I'd says yes if you're going to analyze with something other than awk.

--dave (awk: squak! thud...) c-b

-- 
David Collier-Brown,         | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
davecb at spamcop.net           |                      -- Mark Twain



More information about the talk mailing list