mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
fix big size
This commit is contained in:
4
Init.ino
4
Init.ino
@@ -40,13 +40,13 @@ void Device_init() {
|
|||||||
//================
|
//================
|
||||||
|
|
||||||
all_vigets = "";
|
all_vigets = "";
|
||||||
txtExecution("config.all.txt");
|
txtExecution("firmware.config.txt");
|
||||||
//outcoming_date();
|
//outcoming_date();
|
||||||
}
|
}
|
||||||
//-------------------------------сценарии-----------------------------------------------------
|
//-------------------------------сценарии-----------------------------------------------------
|
||||||
|
|
||||||
void Scenario_init() {
|
void Scenario_init() {
|
||||||
if (jsonRead(configSetup, "scenario") == "1") {
|
if (jsonRead(configSetup, "scenario") == "1") {
|
||||||
scenario = readFile(scenarioFileNameS, 2048);
|
scenario = readFile("firmware.scenario.txt", 2048);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
data/ace.js.gz
BIN
data/ace.js.gz
Binary file not shown.
1
data/config-my.json
Normal file
1
data/config-my.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"SSDP":"MODULES","chipID":"905542-1458415","ssidAP":"WiFi","passwordAP":"","ssid":"rise","password":"hostel3333","timezone":3,"mqttServer":"m12.cloudmqtt.com","mqttPort":14053,"mqttUser":"lbscvzuj","mqttPass":"bLxlveOgaF8F","scenario":"1","timers":"0","pushingbox_id":"v7C133E426B0C69E","web_login":"admin","web_pass":"admin"}
|
||||||
@@ -1 +1 @@
|
|||||||
{"SSDP":"MODULES","chipID":"905542-1458415","ssidAP":"WiFi","passwordAP":"","ssid":"rise","password":"hostel3333","timezone":3,"mqttServer":"m12.cloudmqtt.com","mqttPort":14053,"mqttUser":"lbscvzuj","mqttPass":"bLxlveOgaF8F","scenario":"1","timers":"0","pushingbox_id":"v7C133E426B0C69E","web_login":"admin","web_pass":"admin"}
|
{"SSDP":"MODULES","chipID":"905542-1458415","ssidAP":"WiFi","passwordAP":"","ssid":"your_ssid","password":"your_pass","timezone":3,"mqttServer":"","mqttPort":0,"mqttUser":"","mqttPass":"","scenario":"1","timers":"0","pushingbox_id":"","web_login":"admin","web_pass":"admin"}
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type":"file",
|
"type":"file",
|
||||||
"state":"config.all.txt",
|
"state":"firmware.config.txt",
|
||||||
"style":"width:100%;height:400px",
|
"style":"width:100%;height:400px",
|
||||||
"title": "Сохранить",
|
"title": "Сохранить",
|
||||||
"action": "/all_modules_init",
|
"action": "/all_modules_init",
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type":"file",
|
"type":"file",
|
||||||
"state":"scenario.all.txt",
|
"state":"firmware.scenario.txt",
|
||||||
"style":"width:100%;height:400px",
|
"style":"width:100%;height:400px",
|
||||||
"title": "Сохранить и включить",
|
"title": "Сохранить и включить",
|
||||||
"action": "/scenario?status=1",
|
"action": "/scenario?status=1",
|
||||||
BIN
data/edit.htm.gz
BIN
data/edit.htm.gz
Binary file not shown.
@@ -22,7 +22,7 @@
|
|||||||
{
|
{
|
||||||
"type": "link",
|
"type": "link",
|
||||||
"title": "Конфигурация устройства",
|
"title": "Конфигурация устройства",
|
||||||
"action": "/page.htm?config.all",
|
"action": "/page.htm?configuration",
|
||||||
"class": "btn btn-block btn-primary"
|
"class": "btn btn-block btn-primary"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -48,9 +48,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "link",
|
"type": "link",
|
||||||
"title": "Скачать приложение IoT Manager",
|
"title": "Скачать приложение IoT Manager для android",
|
||||||
"action": "https://github.com/DmitryBorisenko33/esp8266_iot-manager_modules_firmware/raw/master/iot_manager/IoT%20Manager%201.5.5.apk",
|
"action": "https://play.google.com/store/apps/details?id=ru.esp8266.iotmanager",
|
||||||
"class": "btn btn-block btn-success"
|
"class": "btn btn-block btn-warning"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "link",
|
||||||
|
"title": "Скачать приложение IoT Manager для iphone",
|
||||||
|
"action": "https://apps.apple.com/ru/app/iot-manager/id1155934877",
|
||||||
|
"class": "btn btn-block btn-warning"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -1,159 +0,0 @@
|
|||||||
config[0] = {
|
|
||||||
id : 0,
|
|
||||||
widget : 'btn',
|
|
||||||
descr : "Outline red button FA icon",
|
|
||||||
topic : prefix + "/" + deviceID + "/btn0",
|
|
||||||
faicon : "arrow-circle-left",
|
|
||||||
iconslot: 'start',
|
|
||||||
status : 'Back',
|
|
||||||
color : 'red',
|
|
||||||
fill : 'outline',
|
|
||||||
};
|
|
||||||
|
|
||||||
config[1] = {
|
|
||||||
id : 1,
|
|
||||||
widget : 'btn',
|
|
||||||
descr : "Button with ion-icon",
|
|
||||||
topic : prefix + "/" + deviceID + "/btn1",
|
|
||||||
icon : "add",
|
|
||||||
iconslot: "icon-only",
|
|
||||||
};
|
|
||||||
|
|
||||||
config[2] = {
|
|
||||||
id : 2,
|
|
||||||
widget : 'anydata',
|
|
||||||
descr : "Anydata",
|
|
||||||
topic : prefix + "/" + deviceID + "/anydata2",
|
|
||||||
status : 123,
|
|
||||||
};
|
|
||||||
|
|
||||||
config[3] = {
|
|
||||||
id : 3,
|
|
||||||
widget : 'btn',
|
|
||||||
descr : "Button with ion-icon",
|
|
||||||
topic : prefix + "/" + deviceID + "/btn3",
|
|
||||||
icon : "remove",
|
|
||||||
iconslot : "icon-only",
|
|
||||||
};
|
|
||||||
|
|
||||||
config[4] = {
|
|
||||||
id : 4,
|
|
||||||
widget : 'btn',
|
|
||||||
topic : prefix + "/" + deviceID + "/btn4" ,
|
|
||||||
descr : "Large button",
|
|
||||||
size : 'large',
|
|
||||||
color : 'green',
|
|
||||||
send : "any usefull data",
|
|
||||||
status : 'press'
|
|
||||||
};
|
|
||||||
|
|
||||||
config[5] = {
|
|
||||||
id : '5',
|
|
||||||
widget : 'input',
|
|
||||||
topic : prefix + "/" + deviceID + "/input5",
|
|
||||||
descr : "Input number",
|
|
||||||
size : 'small',
|
|
||||||
color : 'orange',
|
|
||||||
type : 'number',
|
|
||||||
status : 321
|
|
||||||
};
|
|
||||||
|
|
||||||
config[6] = {
|
|
||||||
id : '6',
|
|
||||||
widget : 'input',
|
|
||||||
topic : prefix + "/" + deviceID + "/input6",
|
|
||||||
descr : "Input text",
|
|
||||||
type : 'text',
|
|
||||||
status : "some text"
|
|
||||||
};
|
|
||||||
|
|
||||||
config[7] = {
|
|
||||||
id : 7,
|
|
||||||
widget : 'input',
|
|
||||||
topic : prefix + "/" + deviceID + "/input7",
|
|
||||||
descr : "Input time",
|
|
||||||
type : 'time',
|
|
||||||
status : "10:00"
|
|
||||||
};
|
|
||||||
|
|
||||||
config[8] = {
|
|
||||||
id : 8,
|
|
||||||
widget : 'input',
|
|
||||||
topic : prefix + "/" + deviceID + "/input8",
|
|
||||||
descr : "Input date",
|
|
||||||
type : 'date',
|
|
||||||
size : 'small',
|
|
||||||
status : "20.03.2020"
|
|
||||||
};
|
|
||||||
|
|
||||||
config[9] = {
|
|
||||||
id : 9,
|
|
||||||
widget : 'select',
|
|
||||||
topic : prefix + "/" + deviceID + "/input9",
|
|
||||||
descr : "Please, select",
|
|
||||||
size : 'small',
|
|
||||||
fill : 'outline',
|
|
||||||
options: ['Zero item', 'First item', 'Second item'],
|
|
||||||
status : 2,
|
|
||||||
};
|
|
||||||
|
|
||||||
Toggle:
|
|
||||||
[descr]="item.descr"
|
|
||||||
[descrColor]="item.descrColor"
|
|
||||||
[color]="item.color"
|
|
||||||
[status]="item.status"
|
|
||||||
[icon]="item.icon"
|
|
||||||
[iconOff]="item.iconOff"
|
|
||||||
[disabled]="item.disabled"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<range
|
|
||||||
*ngIf="item.widget === 'range'"
|
|
||||||
[descr]="item.descr"
|
|
||||||
[descrColor]="item.descrColor"
|
|
||||||
[descrIcon]="item.descrIcon"
|
|
||||||
[color]="item.color"
|
|
||||||
[icon]="item.icon"
|
|
||||||
[licon]="item.licon"
|
|
||||||
[lsize]="item.lsize"
|
|
||||||
[rsize]="item.rsize"
|
|
||||||
[ricon]="item.ricon"
|
|
||||||
[min]="item.min"
|
|
||||||
[max]="item.max"
|
|
||||||
[topic]="item.topic"
|
|
||||||
[disabled]="item.disabled"
|
|
||||||
[debounce]="item.debounce"
|
|
||||||
[before]="item.before"
|
|
||||||
[status]="item.status"
|
|
||||||
[after]="item.after"
|
|
||||||
></range>
|
|
||||||
<progress-round
|
|
||||||
*ngIf="item.widget === 'progress-round'"
|
|
||||||
[descr]="item.descr"
|
|
||||||
[descrColor]="item.descrColor"
|
|
||||||
[color]="item.color"
|
|
||||||
[icon]="item.icon"
|
|
||||||
[max]="item.max"
|
|
||||||
[background]="item.background"
|
|
||||||
[stroke]="item.stroke"
|
|
||||||
[topic]="item.topic"
|
|
||||||
[disabled]="item.disabled"
|
|
||||||
[before]="item.before"
|
|
||||||
[status]="item.status"
|
|
||||||
[]="item.after"
|
|
||||||
></progress-round>
|
|
||||||
<progress-line
|
|
||||||
*ngIf="item.widget === 'progress-line'"
|
|
||||||
[descr]="item.descr"
|
|
||||||
[descrColor]="item.descrColor"
|
|
||||||
[color]="item.color"
|
|
||||||
[icon]="item.icon"
|
|
||||||
[max]="item.max"
|
|
||||||
[topic]="item.topic"
|
|
||||||
[disabled]="item.disabled"
|
|
||||||
[before]="item.before"
|
|
||||||
[status]="item.status"
|
|
||||||
[after]="item.after"
|
|
||||||
></progress-line>
|
|
||||||
5
mqtt.ino
5
mqtt.ino
@@ -26,7 +26,8 @@ void MQTT_init() {
|
|||||||
jsonWrite(tmp, "title", "<button class=\"close\" onclick=\"toggle('my-block')\">×</button>" + stateMQTT());
|
jsonWrite(tmp, "title", "<button class=\"close\" onclick=\"toggle('my-block')\">×</button>" + stateMQTT());
|
||||||
jsonWrite(tmp, "class", "pop-up");
|
jsonWrite(tmp, "class", "pop-up");
|
||||||
|
|
||||||
request->send(200, "text/text", tmp); // отправляем ответ о выполнении
|
request->send(200, "text/text", "ok");
|
||||||
|
//request->send(200, "text/text", tmp); // отправляем ответ о выполнении
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@@ -310,7 +311,7 @@ String stateMQTT() {
|
|||||||
|
|
||||||
//SCENARIO ANALOG > 5 800324-1458415 rel1 0
|
//SCENARIO ANALOG > 5 800324-1458415 rel1 0
|
||||||
if (jsonRead(configSetup, "scenario") == "1") {
|
if (jsonRead(configSetup, "scenario") == "1") {
|
||||||
//String all_text = readFile("scenario.all.txt", 1024) + "\r\n";
|
//String all_text = readFile("firmware.scenario.txt", 1024) + "\r\n";
|
||||||
String all_text = scenario + "\r\n";
|
String all_text = scenario + "\r\n";
|
||||||
all_text.replace("\r\n", "\n");
|
all_text.replace("\r\n", "\n");
|
||||||
all_text.replace("\r", "\n");
|
all_text.replace("\r", "\n");
|
||||||
|
|||||||
1
set.h
1
set.h
@@ -116,7 +116,6 @@ const char* ntpServer = "pool.ntp.org";
|
|||||||
const long gmtOffset_sec = 3600;
|
const long gmtOffset_sec = 3600;
|
||||||
const int daylightOffset_sec = 3600;
|
const int daylightOffset_sec = 3600;
|
||||||
|
|
||||||
const String scenarioFileNameS = "scenario.all.txt";
|
|
||||||
const String ssdpS = "SSDP";
|
const String ssdpS = "SSDP";
|
||||||
String current_time;
|
String current_time;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user