mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 19:12:10 +01:00
Bump v1.6.2 for awning mods
This commit is contained in:
parent
5313e5d249
commit
2bfba8e2dd
7 changed files with 40 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
#ifndef configsettings_h
|
#ifndef configsettings_h
|
||||||
#define configsettings_h
|
#define configsettings_h
|
||||||
|
|
||||||
#define FW_VERSION "v1.6.1"
|
#define FW_VERSION "v1.6.2"
|
||||||
enum DeviceStatus {
|
enum DeviceStatus {
|
||||||
DS_OK = 0,
|
DS_OK = 0,
|
||||||
DS_ERROR = 1,
|
DS_ERROR = 1,
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
1.6.1
|
1.6.2
|
||||||
|
|
@ -690,3 +690,29 @@ i.icss-x {
|
||||||
transform: translate(-50%, -50%) rotate(225deg)
|
transform: translate(-50%, -50%) rotate(225deg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i.icss-awning {
|
||||||
|
width: 1.1em;
|
||||||
|
height: .75em;
|
||||||
|
background-color: transparent;
|
||||||
|
border-width: 0 0;
|
||||||
|
margin: .2em 0 .07em;
|
||||||
|
}
|
||||||
|
|
||||||
|
i.icss-awning:before {
|
||||||
|
width: 1.1em;
|
||||||
|
height: .2em;
|
||||||
|
border-bottom: .1em solid transparent;
|
||||||
|
box-shadow: inset 0 1em, 0 0em 0 -.1em;
|
||||||
|
top: -.1em;
|
||||||
|
left: -.09em;
|
||||||
|
}
|
||||||
|
|
||||||
|
i.icss-awning:after {
|
||||||
|
width: calc(100% - 0.1em);
|
||||||
|
height: var(--shade-position, 0%);
|
||||||
|
left: -.04em;
|
||||||
|
top: 0.025em;
|
||||||
|
border-bottom: solid 0.045em gray;
|
||||||
|
background-image: repeating-linear-gradient(90deg, var(--shade-color, currentColor), var(--shade-color, currentColor) calc(25% - 4px), black calc(25% - 2px), var(--shade-color, currentColor) calc(25% - 2px));
|
||||||
|
background-color: rgba(71, 212, 255, 0);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<link rel="stylesheet" href="main.css?v=1.6.1" type="text/css" />
|
<link rel="stylesheet" href="main.css?v=1.6.2" type="text/css" />
|
||||||
<link rel="stylesheet" href="icons.css?v=1.6.1" type="text/css" />
|
<link rel="stylesheet" href="icons.css?v=1.6.2" type="text/css" />
|
||||||
<link rel="icon" type="image/png" href="favicon.png" />
|
<link rel="icon" type="image/png" href="favicon.png" />
|
||||||
<script type="text/javascript" src="index.js?v=1.6.1"></script>
|
<script type="text/javascript" src="index.js?v=1.6.2"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="divContainer" class="container" style="user-select:none;position:relative;border-radius:27px;">
|
<div id="divContainer" class="container" style="user-select:none;position:relative;border-radius:27px;">
|
||||||
|
|
|
||||||
|
|
@ -378,7 +378,7 @@ async function reopenSocket() {
|
||||||
await initSockets();
|
await initSockets();
|
||||||
}
|
}
|
||||||
class General {
|
class General {
|
||||||
appVersion = 'v1.6.1';
|
appVersion = 'v1.6.2';
|
||||||
reloadApp = false;
|
reloadApp = false;
|
||||||
async init() {
|
async init() {
|
||||||
this.setAppVersion();
|
this.setAppVersion();
|
||||||
|
|
@ -1062,8 +1062,11 @@ class Somfy {
|
||||||
case 1:
|
case 1:
|
||||||
divCtl += ' icss-window-blind';
|
divCtl += ' icss-window-blind';
|
||||||
break;
|
break;
|
||||||
|
case 3:
|
||||||
|
divCtl += ' icss-awning';
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
divCtl += ' icss-window-shade'
|
divCtl += ' icss-window-shade';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
divCtl += `" data-shadeid="${shade.shadeId}" style="--shade-position:${shade.position}%;vertical-align: top;"></i>`;
|
divCtl += `" data-shadeid="${shade.shadeId}" style="--shade-position:${shade.position}%;vertical-align: top;"></i>`;
|
||||||
|
|
@ -1493,6 +1496,10 @@ class Somfy {
|
||||||
ico.classList.remove('icss-window-shade');
|
ico.classList.remove('icss-window-shade');
|
||||||
ico.classList.add('icss-window-blind');
|
ico.classList.add('icss-window-blind');
|
||||||
break;
|
break;
|
||||||
|
case 3:
|
||||||
|
ico.classList.remove('icss-window-shade');
|
||||||
|
ico.classList.add('icss-awning');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
let tilt = ico.parentElement.querySelector('i.icss-window-tilt');
|
let tilt = ico.parentElement.querySelector('i.icss-window-tilt');
|
||||||
tilt.style.display = shade.tiltType !== 0 ? '' : 'none';
|
tilt.style.display = shade.tiltType !== 0 ? '' : 'none';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue