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

Invalid character error #34

Closed
smrtsmrf opened this issue Sep 14, 2021 · 4 comments
Closed

Invalid character error #34

smrtsmrf opened this issue Sep 14, 2021 · 4 comments

Comments

@smrtsmrf
Copy link

smrtsmrf commented Sep 14, 2021

I downloaded v1.0.3 of this, along with v0.9.3 of rtlamr. I setup my influxdb configuration and when I run rtlamr | rtlamr-collect, I get this error whenever a consumption message comes in:

INFO[2021-09-13 21:12:45.864]/Users/candicehumpherys/go/src/github.com/bemasher/rtlamr-collect/main.go:424 main.main invalid character 'T' looking for beginning of object key string 

Running rtlamr by itself gives this output for a consumption message:

{Time:2021-09-13T21:15:10.112 SCM+:{ProtocolID:0x1E EndpointType:0x07 EndpointID:1552230918 Consumption:    387439 Tamper:0x0001 PacketCRC:0x0471}}

Note: A few months back I had v1.0.2 and v0.9.2, and everything was working fine.

@smrtsmrf
Copy link
Author

@bemasher what am I missing?

@bemasher
Copy link
Owner

Rtlamr-collect requires JSON input, the default rtlamr output looks like JSON but isn't actually JSON. You'll want to use the environment variable RTLAMR_FORMAT=json or the flag -format=json.

@smrtsmrf
Copy link
Author

Doh. 🤦🏽‍♀️ I missed that one. Thank you. I will confirm when I get home tonight, but I'm pretty sure that's the solution.

@bemasher
Copy link
Owner

Closing, stale.

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

No branches or pull requests

2 participants