node-red-contrib-panasonic-comfort-cloud
Version:
Node-RED implementation of panasonic-comfort-cloud-client
58 lines (56 loc) • 2.2 kB
HTML
<script type="text/javascript">
RED.nodes.registerType("pcc-config", {
category: "config",
credentials: {
accessToken: {
type: 'password',
},
username: {
type: 'text',
},
password: {
type: 'password',
},
},
defaults: {
name: {
value: ""
},
appVersion: {
value: ""
},
},
label: function () {
return this.name ? this.name : 'Comfort Cloud Config';
},
oneditprepare: function () {
if (this.credentials.accessToken) {
}
}
});
</script>
<script type="text/x-red" data-template-name="pcc-config">
<div class="form-row">
<label for="node-config-input-name"><i class="icon-bookmark"></i> Name</label>
<input type="text" id="node-config-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-config-input-username"><i class="fa fa-user"></i> Username</label>
<input type="text" id="node-config-input-username" placeholder="Username">
</div>
<div class="form-row">
<label for="node-config-input-password"><i class="fa fa-key"></i> Password</label>
<input type="password" id="node-config-input-password" placeholder="Password">
</div>
<div class="form-row">
<label for="node-config-input-appVersion"><i class="fa fa-code-branch"></i> App Version</label>
<input type="text" id="node-config-input-appVersion" placeholder="App Version">
</div>
<div class="form-row">
<div class="form-tips">
<em>
Note: Represents the version number of the Panasonic Comfort Cloud application. This value indicates the specific release version of the app, which is required API requests. Ensure this version matches the one expected by the Panasonic Comfort Cloud services. If the app version is not specified, the default value will be fetched from https://itunes.apple.com/lookup?id=1348640525.
</em>
</div>
</div>
</script>