Skip to content

Commit

Permalink
emontx device templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Trystan Lea committed Jun 16, 2017
1 parent 8a8061f commit a40d892
Show file tree
Hide file tree
Showing 8 changed files with 330 additions and 212 deletions.
152 changes: 76 additions & 76 deletions Modules/device/data/amig.json

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions Modules/device/data/amrm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "n1T",
"description": "N1 Temperature",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "n1T"
Expand All @@ -16,7 +16,7 @@
"name": "n2T",
"description": "N2 Temperature",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "n2T"
Expand All @@ -27,7 +27,7 @@
"name": "n3T",
"description": "N3 Temperature",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "n3T"
Expand All @@ -38,7 +38,7 @@
"name": "n4T",
"description": "N4 Temperature",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "n4T"
Expand All @@ -49,7 +49,7 @@
"name": "n1IM",
"description": "N1 IM",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "n1IM"
Expand All @@ -60,7 +60,7 @@
"name": "n2IM",
"description": "N2 IM",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "n2IM"
Expand All @@ -71,7 +71,7 @@
"name": "n3IM",
"description": "N3 IM",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "n3IM"
Expand All @@ -82,7 +82,7 @@
"name": "n4IM",
"description": "N4 IM",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "n4IM"
Expand All @@ -93,7 +93,7 @@
"name": "n1DM",
"description": "N1 DM",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "n1DM"
Expand All @@ -104,7 +104,7 @@
"name": "n2DM",
"description": "N2 DM",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "n2DM"
Expand All @@ -115,7 +115,7 @@
"name": "n3DM",
"description": "N3 DM",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "n3DM"
Expand All @@ -126,7 +126,7 @@
"name": "n4DM",
"description": "N4 DM",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "n4DM"
Expand All @@ -137,7 +137,7 @@
"name": "iTA",
"description": "Internal Temperature Air",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "iTA"
Expand All @@ -148,7 +148,7 @@
"name": "iRH",
"description": "Internal RH",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "iRH"
Expand All @@ -159,7 +159,7 @@
"name": "iDP",
"description": "Internal Dew Point",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "iDP"
Expand All @@ -170,7 +170,7 @@
"name": "SYS",
"description": "System Temperature",
"processList": [{
"process": "1",
"process": "log_to_feed",
"arguments": {
"type": "ProcessArg::FEEDID",
"value": "SYS"
Expand All @@ -180,98 +180,98 @@
"feeds": [{
"name": "n1T",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "n2T",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"

},
{
"name": "n3T",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "n4T",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "n1IM",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "n2IM",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "n3IM",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "n4IM",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "n1DM",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "n2DM",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "n3DM",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "n4DM",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "iTA",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "iRH",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "iDP",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "SYS",
"type": "DataType::REALTIME",
"engine": "Engine::MYSQL",
"engine": "Engine::PHPFINA",
"interval": "10"
}]
}
34 changes: 34 additions & 0 deletions Modules/device/data/emontx-HEM.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ "name": "EmonTx: HomeEnergyMonitor",
"description": "Basic EmonTx v3 Home Energy Monitor configuration",
"inputs": [
{
"name": "power1",
"description": "House consumption",
"processList": [
{
"process": "log_to_feed",
"arguments": {"type": "ProcessArg::FEEDID", "value": "use" }
},
{
"process": "power_to_kwh",
"arguments": {"type": "ProcessArg::FEEDID", "value": "use_kwh" }
}
]
}
],

"feeds": [
{
"name": "use",
"type": "DataType::REALTIME",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "use_kwh",
"type": "DataType::REALTIME",
"engine": "Engine::PHPFINA",
"interval": "10"
}
]
}
88 changes: 88 additions & 0 deletions Modules/device/data/emontx-SPV1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{ "name": "EmonTx: Solar PV Type 1",
"description": "EmonTx Solar PV Type 1 template using CT4 for solar",
"inputs": [
{
"name": "power1",
"description": "House consumption",
"processList": [
{
"process": "log_to_feed",
"arguments": {"type": "ProcessArg::FEEDID", "value": "use" }
},
{
"process": "power_to_kwh",
"arguments": {"type": "ProcessArg::FEEDID", "value": "use_kwh" }
},
{
"process": "subtract_input",
"arguments": {"type": "ProcessArg::INPUTID", "value": "power2" }
},
{
"process": "allowpositive",
"arguments": {"type": "ProcessArg::NONE"}
},
{
"process": "log_to_feed",
"arguments": {"type": "ProcessArg::FEEDID", "value": "import" }
},
{
"process": "power_to_kwh",
"arguments": {"type": "ProcessArg::FEEDID", "value": "import_kwh" }
}
]
},
{
"name": "power2",
"description": "Solar generation",
"processList": [
{
"process": "log_to_feed",
"arguments": {"type": "ProcessArg::FEEDID", "value": "solar" }
},
{
"process": "power_to_kwh",
"arguments": {"type": "ProcessArg::FEEDID", "value": "solar_kwh" }
}
]
}
],

"feeds": [
{
"name": "use",
"type": "DataType::REALTIME",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "use_kwh",
"type": "DataType::REALTIME",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "solar",
"type": "DataType::REALTIME",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "solar_kwh",
"type": "DataType::REALTIME",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "import",
"type": "DataType::REALTIME",
"engine": "Engine::PHPFINA",
"interval": "10"
},
{
"name": "import_kwh",
"type": "DataType::REALTIME",
"engine": "Engine::PHPFINA",
"interval": "10"
}
]
}
Loading

0 comments on commit a40d892

Please sign in to comment.