Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/upnp for lametric #642

Merged
merged 6 commits into from
Dec 18, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Handle Automatic & manual paring modes
  • Loading branch information
oben01 committed Dec 17, 2019
commit 64e9fad68b8df8a5c2195defb60295951a6d04ea
51 changes: 37 additions & 14 deletions sources/plugins/LametricTime/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,46 @@
"name": "LametricTime",
"description": "Lametric Time devices support (see [site web](https://lametric.com/en-US/time/overview))",
"configurationSchema": {
"IPAddress": {
"name": "IP Address",
"description": "the IP address of the equipment",
"regexErrorMessage": "this is not a valid IP address"
},
"Port": {
"name": "Port",
"description": "the Lametric local socket opened (example Http: 8080, Https: 4343)",
"values": {
"http": "8080",
"https": "4343"
}
},
"APIKey": {
"name": "API key",
"description": "This key is needed and provided by sign up on [Lametric website](https://developer.lametric.com/user/devices)",
"description":
"This key is needed and provided by sign up on [Lametric website](https://developer.lametric.com/user/devices)",
"regexErrorMessage": ""
},
"AutomaticPairingMode": {
"name": "Automatic Pairing",
"description": "Automatic pairing using UPNP protocol",
"content": {
"Port": {
"name": "Port",
"description": "Le port de communication de Lametric (exemple Http: 8080, Https: 4343)",
"values": {
"Http": "8080",
"Https": "4343"
},
"defaultValue": "Https"
}
}
},
"ManualPairingMode": {
"name": "Manual Paring",
"description": "Manual Paring",
"content": {
"IPAddress": {
"name": "IP Address",
"description": "the IP address of the equipment",
"regexErrorMessage": "this is not a valid IP address"
},
"Port": {
"name": "Port",
"description": "the Lametric local socket opened (example Http: 8080, Https: 4343)",
"values": {
"http": "8080",
"https": "4343"
},
"defaultValue": "Https"
}
}
}
},
"customLabels": {
Expand Down
55 changes: 39 additions & 16 deletions sources/plugins/LametricTime/locales/fr.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,48 @@
{
"name": "LametricTime",
"description": "Support de l'équipement Lametric Time (voir [site web Lametric](https://lametric.com/en-US/time/overview))",
"description":
"Support de l'équipement Lametric Time (voir [site web Lametric](https://lametric.com/en-US/time/overview))",
"configurationSchema": {
"IPAddress": {
"name": "Adresse IP",
"description": "L'adresse IP du module",
"regexErrorMessage": "Ce n'est pas une adresse IP valide"
},
"Port": {
"name": "Port",
"description": "Le port de communication de Lametric (exemple Http: 8080, Https: 4343)",
"values": {
"Http": "8080",
"Https": "4343"
},
"defaultValue": "Http"
},
"APIKey": {
"name": "Clé d'API",
"description": "Cette clé est nécessaire pour le fonctionnement de votre plugin. Elle peut être obtenue sur simple inscription (gratuite) au [Lametric](https://developer.lametric.com/user/devices).",
"description":
"Cette clé est nécessaire pour le fonctionnement de votre plugin. Elle peut être obtenue sur simple inscription (gratuite) au [Lametric](https://developer.lametric.com/user/devices).",
"regexErrorMessage": ""
},
"AutomaticPairingMode": {
"name": "Appairage automatique",
"description": "Appairage automatique en utilisant le protocole UPNP",
"content": {
"Port": {
"name": "Port",
"description": "Le port de communication de Lametric (exemple Http: 8080, Https: 4343)",
"values": {
"Http": "8080",
"Https": "4343"
},
"defaultValue": "Https"
}
}
},
"ManualPairingMode": {
"name": "Appairage manuel",
"description": "Appairage manuel",
"content": {
"IPAddress": {
"name": "Adresse IP",
"description": "L'adresse IP du module",
"regexErrorMessage": "Ce n'est pas une adresse IP valide"
},
"Port": {
"name": "Port",
"description": "Le port de communication de Lametric (exemple Http: 8080, Https: 4343)",
"values": {
"Http": "8080",
"Https": "4343"
},
"defaultValue": "Https"
}
}
}
},
"customLabels": {
Expand Down
46 changes: 34 additions & 12 deletions sources/plugins/LametricTime/package.in.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,44 @@
}
},
"configurationSchema": {
"IPAddress": {
"APIKey": {
"type": "string",
"regex": "^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$",
"required": "true"
},
"Port": {
"type": "enum",
"values": {
"Http": "8080",
"Https": "4343"
},
"defaultValue": "Http"
"AutomaticPairingMode": {
"type": "section",
"enableWithCheckBox": "true",
"enableWithCheckBoxDefaultValue": "false",
"content": {
"Port": {
"type": "enum",
"values": {
"Http": "8080",
"Https": "4343"
},
"defaultValue": "Https"
}
}
},
"APIKey": {
"type": "string",
"required": "true"
"ManualPairingMode": {
"type": "section",
"enableWithCheckBox": "true",
"enableWithCheckBoxDefaultValue": "false",
"content": {
"IPAddress": {
"type": "string",
"regex": "^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$",
"required": "true"
},
"Port": {
"type": "enum",
"values": {
"Http": "8080",
"Https": "4343"
},
"defaultValue": "Https"
}
}
}
}
}