Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

analyzerjs should produce timestamp in ISO format #12

Closed
sarfata opened this issue Apr 19, 2018 · 0 comments · Fixed by #14
Closed

analyzerjs should produce timestamp in ISO format #12

sarfata opened this issue Apr 19, 2018 · 0 comments · Fixed by #14

Comments

@sarfata
Copy link
Contributor

sarfata commented Apr 19, 2018

Timestamps are parsed and printed as numbers but the original analyzer would convert them to ISOString before printing them.

Example:

echo '$PCDIN,01FD02,00000003,01,00DF00C603FAFFFF*20' |~/work/canboat/rel/darwin-x86_64/analyzer -json
{"timestamp":"1969-12-31-16:00:00,3","prio":0,"src":1,"dst":255,"pgn":130306,"description":"Wind Data","fields":{"SID":0,"Wind Speed":2.23,"Wind Angle":5.5,"Reference":"Apparent"}}

And with CanboatJS:

echo '$PCDIN,01FD02,00000003,01,00DF00C603FAFFFF*20' |~/work/canboatjs/bin/analyzerjs
{"pgn":130306,"timestamp":3,"src":1,"dst":255,"prio":0,"fields":{"SID":0,"Wind Speed":2.23,"Wind Angle":0.0966,"Reference":"Apparent"},"description":"Wind Data"}

PR incoming...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant