Mustache to extract individual values from PARTICLE_EVENT_VALUE

Hey team!

I know I am just running into a syntax issue that is beyond my current capabilities. I have read through a number of mustache templating blogs and can’t quite piece it together.

What I am wanting to do is pull lat/lon values out of {{{PARTICLE_EVENT_VALUE}}} to push over in a webhook form to my Traccar server. I can successfully send the entire value to a variable and it gets over to my server in a blob so that validates infrastructure working.

Any guidance would be appreciated!

Jason



It’s just {{{loc.lat}}}. If the data payload of the event is JSON, then its elements are imported as top level mustache items, mixed in with the built-in values like {{{PARTICLE_PUBLISHED_AT}}}.

3 Likes

Perfect. Thank you so much!

Jason

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.