Skip to content

Commit

Permalink
Merge pull request #77 from xerion3800/language
Browse files Browse the repository at this point in the history
Added Dropdown for Language
  • Loading branch information
Hacksore authored Oct 7, 2022
2 parents bea4734 + 44c7e66 commit 2155986
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bluelinky.html
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@
pin: { required: true, validate: RED.validators.number() },
vin: { required: true },
brand: { value: 'hyundai', required: true },
language: { value: 'en', required: false },
},
label: function () {
return this.vin;
Expand Down Expand Up @@ -625,4 +626,11 @@
<option value="hyundai">Hyundai</option>
</select>
</div>
<div class="form-row">
<label for="node-config-input-language"><i class="icon-bookmark"></i> Language</label>
<select id="node-config-input-language">
<option value="de">German</option>
<option value="en">English</option>
</select>
</div>
</script>
2 changes: 2 additions & 0 deletions bluelinky.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ module.exports = function (RED) {
this.pin = config.pin;
this.vin = config.vin;
this.brand = config.brand;
this.language = config.language;
this.status = { fill: 'grey', shape: 'ring', text: 'Logging in...' };
State.emit('changed', this.status);

Expand All @@ -506,6 +507,7 @@ module.exports = function (RED) {
region: this.region,
pin: this.pin,
brand: this.brand,
language: this.language
});

client.on('ready', () => {
Expand Down

0 comments on commit 2155986

Please sign in to comment.