Skip to content

Commit

Permalink
Added the current ip address to the DHCP tab #310
Browse files Browse the repository at this point in the history
  • Loading branch information
rstrouse committed Mar 23, 2024
1 parent 49d134e commit d8292fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Binary file modified SomfyController.littlefs.bin
Binary file not shown.
9 changes: 5 additions & 4 deletions data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<link rel="stylesheet" href="main.css?v=2.4.1c" type="text/css" />
<link rel="stylesheet" href="widgets.css?v=2.4.1c" type="text/css" />
<link rel="stylesheet" href="icons.css?v=2.4.1c" type="text/css" />
<link rel="stylesheet" href="main.css?v=2.4.1r" type="text/css" />
<link rel="stylesheet" href="widgets.css?v=2.4.1r" type="text/css" />
<link rel="stylesheet" href="icons.css?v=2.4.1r" type="text/css" />
<link rel="icon" type="image/png" href="favicon.png" />
<script type="text/javascript" src="index.js?v=2.4.1c"></script>
<script type="text/javascript" src="index.js?v=2.4.1r"></script>
</head>
<body>
<div id="divContainer" class="container main" data-auth="false">
Expand Down Expand Up @@ -221,6 +221,7 @@ <h1 style="text-align: center;"><img src="icon.png" style="width:50px;float:left
</div>
</div>
<div id="divDHCP" class="subtab-content" style="display:none;">
<div style="margin-top:-14px;"><span style="color: #00bcd4;">IP Adddress:</span><span id="spanCurrentIP"></span></div>
<div class="field-group">
<input id="cbUseDHCP" name="dhcp" type="checkbox" data-bind="ip.dhcp" style="display:inline-block;" onclick="wifi.onDHCPClicked(this);" checked="checked" />
<label for="cbUseDHCP" style="display:inline-block;cursor:pointer;">Acquire IP Address automatically (DHCP)</label>
Expand Down
1 change: 1 addition & 0 deletions data/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1684,6 +1684,7 @@ class Wifi {
document.getElementById('divETHSettings').style.display = settings.ethernet.boardType === 0 ? '' : 'none';
document.getElementById('divStaticIP').style.display = settings.ip.dhcp ? 'none' : '';
ui.toElement(document.getElementById('divDHCP'), settings);
document.getElementById('spanCurrentIP').innerHTML = settings.ip.ip;
}
});

Expand Down

0 comments on commit d8292fd

Please sign in to comment.