Skip to content

Instantly share code, notes, and snippets.

@amalantony
Created November 2, 2019 16:24
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/2318816df78053694c130ebd9256dee5 to your computer and use it in GitHub Desktop.
Save amalantony/2318816df78053694c130ebd9256dee5 to your computer and use it in GitHub Desktop.
Generated json and toml
{
"components":{
"gps":{
"rule2":{
"filters":{
"message_type":"gll"
},
"latitude":"data.split(\",\")[1]",
"longitude":"data.split(\",\")[2]"
},
"rule12":{
"filters":{
"message_type":"gll"
},
"latitude":"data.split(\",\")[1]",
"longitude":"data.split(\",\")[2]"
}
},
"can":{
"rule20":{
"filters":{
"can_id":"0x123"
},
"foo":"some_random_forumla"
}
}
}
}
[components.gps.rule2]
latitude = 'data.split(",")[1]'
longitude = 'data.split(",")[2]'
[components.gps.rule2.filters]
message_type = "gll"
[components.gps.rule12]
latitude = 'data.split(",")[1]'
longitude = 'data.split(",")[2]'
[components.gps.rule12.filters]
message_type = "gll"
[components.can.rule20]
foo = "some_random_forumla"
[components.can.rule20.filters]
can_id = "0x123"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment