Skip to content

Commit

Permalink
Fix groupCommand route endpoint #105
Browse files Browse the repository at this point in the history
  • Loading branch information
rstrouse committed Jul 20, 2023
1 parent adb1fd3 commit 120f6be
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 88 deletions.
2 changes: 1 addition & 1 deletion ConfigSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#ifndef configsettings_h
#define configsettings_h

#define FW_VERSION "v2.0.1"
#define FW_VERSION "v2.0.2"
enum DeviceStatus {
DS_OK = 0,
DS_ERROR = 1,
Expand Down
Binary file modified SomfyController.ino.esp32.bin
Binary file not shown.
Binary file modified SomfyController.littlefs.bin
Binary file not shown.
4 changes: 2 additions & 2 deletions Web.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ void Web::begin() {
uint8_t repeat = 1;
somfy_commands command = somfy_commands::My;
if (method == HTTP_GET || method == HTTP_PUT || method == HTTP_POST) {
if (apiServer.hasArg("shadeId")) {
if (apiServer.hasArg("groupId")) {
groupId = atoi(apiServer.arg("groupId").c_str());
if (apiServer.hasArg("command")) command = translateSomfyCommand(apiServer.arg("command"));
if(apiServer.hasArg("repeat")) repeat = atoi(apiServer.arg("repeat").c_str());
Expand Down Expand Up @@ -1139,7 +1139,7 @@ void Web::begin() {
somfy_commands command = somfy_commands::My;
if (method == HTTP_GET || method == HTTP_PUT || method == HTTP_POST) {
if (server.hasArg("groupId")) {
groupId = atoi(server.arg("shadeId").c_str());
groupId = atoi(server.arg("groupId").c_str());
if (server.hasArg("command")) command = translateSomfyCommand(server.arg("command"));
if(server.hasArg("repeat")) repeat = atoi(server.arg("repeat").c_str());
}
Expand Down
2 changes: 1 addition & 1 deletion data/appversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0
2.0.2
8 changes: 4 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.0.1" type="text/css" />
<link rel="stylesheet" href="widgets.css?v=2.0.1" type="text/css" />
<link rel="stylesheet" href="icons.css?v=2.0.0" type="text/css" />
<link rel="stylesheet" href="main.css?v=2.0.2" type="text/css" />
<link rel="stylesheet" href="widgets.css?v=2.0.2" type="text/css" />
<link rel="stylesheet" href="icons.css?v=2.0.2" type="text/css" />
<link rel="icon" type="image/png" href="favicon.png" />
<script type="text/javascript" src="index.js?v=2.0.1"></script>
<script type="text/javascript" src="index.js?v=2.0.2"></script>
</head>
<body>
<div id="divContainer" class="container main" data-auth="false">
Expand Down
156 changes: 78 additions & 78 deletions data/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions data/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,8 @@ div.wait-overlay > .lds-roller {
vertical-align: middle;
margin-top: .15em;
color: darkslategray;
top:0px;
left:0px;
top: 0;
left: 0;
}
.progress-bar::before {
content: "";
Expand Down

0 comments on commit 120f6be

Please sign in to comment.