Example Entry file
The following section will show you an example entry.tp file for reference.
Entry.tp
{
"sdk":1,
"version":1,
"name":"Example plugin entry file",
"id":"ex0001",
"configuration" : {
"colorDark" : "#992211",
"colorLight" : "#0033d3"
},
"categories": [
{
"id":"exampleCategoryId",
"name":"Example Category",
"imagepath":"%TP_PLUGIN_FOLDER%Example\\test.png",
"actions": [
{
"id":"firstAction",
"prefix":"Do the following action: ",
"name":"First Action",
"type":"execute",
"execution_cmd":"powershell [console]::beep(200,200)"
},
{
"id":"secondAction",
"prefix":"Do the following action:",
"name":"Second Action",
"description":"This will trigger the second action, which is a beep. You can specify the parameters below.",
"type":"execute",
"execution_cmd":"powershell [console]::beep({$first$},{$second$})",
"data": [
{
"id":"first",
"type":"number",
"label":"First number",
"default":200
},
{
"id":"second",
"type":"choice",
"label":"Second number",
"default":"200",
"valueChoices": [
"200",
"400",
"600",
"800"
]
}
]
}
],
"events": [
{
"id":"event001",
"name":"When fruit is selected",
"format":"When the chosen fruit is",
"type":"communicate",
"valueType":"text",
"valueStateId":"fruit"
}
],
"states": [
{
"id":"fruit",
"type":"choice",
"desc":"Fruit Kind description",
"default":"Apple",
"valueChoices": [
"Apple",
"Pears",
"Grapes",
"Bananas"
]
}
]
}
]
}