Skip to content

Instantly share code, notes, and snippets.

@amalantony
Created November 2, 2019 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amalantony/30345112dad8a96b8ecd90cd8a61b292 to your computer and use it in GitHub Desktop.
Save amalantony/30345112dad8a96b8ecd90cd8a61b292 to your computer and use it in GitHub Desktop.
Latest generated JSON and TOML
{
"components":{
"gps":{
"rule21":{
"filters":{
"message_type":"gll"
},
"outputs":{
"latitude":"data.split(\",\")[1]",
"longitude":"data.split(\",\")[2]"
}
},
"rule22":{
"filters":{
"message_type":"gll"
},
"outputs":{
"latitude":"data.split(\",\")[1]",
"longitude":"data.split(\",\")[2]"
}
}
},
"can":{
"rule23":{
"filters":{
"can_id":"0x123"
},
"outputs":{
"foo":"some*random+formula",
"goo":"another-random-forumla"
}
},
"rule24":{
"filters":{
"can_id":"0x123"
},
"outputs":{
"foo":"some*random+formula",
"goo":"another-random-forumla"
}
}
}
}
}
[components.gps.rule21.filters]
message_type = "gll"
[components.gps.rule21.outputs]
latitude = 'data.split(",")[1]'
longitude = 'data.split(",")[2]'
[components.gps.rule22.filters]
message_type = "gll"
[components.gps.rule22.outputs]
latitude = 'data.split(",")[1]'
longitude = 'data.split(",")[2]'
[components.can.rule23.filters]
can_id = "0x123"
[components.can.rule23.outputs]
foo = "some*random+formula"
goo = "another-random-forumla"
[components.can.rule24.filters]
can_id = "0x123"
[components.can.rule24.outputs]
foo = "some*random+formula"
goo = "another-random-forumla"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment