mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fixes to install
This commit is contained in:
@@ -137,14 +137,14 @@ const DownloadUpload = () => {
|
|||||||
const DEV_RELNOTES_URL =
|
const DEV_RELNOTES_URL =
|
||||||
'https://github.com/emsesp/EMS-ESP32/blob/dev/CHANGELOG_LATEST.md';
|
'https://github.com/emsesp/EMS-ESP32/blob/dev/CHANGELOG_LATEST.md';
|
||||||
|
|
||||||
const getBinURL = (useDev: boolean) => {
|
const getBinURL = (useDevVersion: boolean) => {
|
||||||
const filename =
|
const filename =
|
||||||
'EMS-ESP-' +
|
'EMS-ESP-' +
|
||||||
(useDev ? latestDevVersion : latestVersion).replaceAll('.', '_') +
|
(useDevVersion ? latestDevVersion : latestVersion).replaceAll('.', '_') +
|
||||||
'-' +
|
'-' +
|
||||||
getPlatform() +
|
getPlatform() +
|
||||||
'.bin';
|
'.bin';
|
||||||
return useDev
|
return useDevVersion
|
||||||
? DEV_URL + filename
|
? DEV_URL + filename
|
||||||
: STABLE_URL + 'v' + latestVersion + '/' + filename;
|
: STABLE_URL + 'v' + latestVersion + '/' + filename;
|
||||||
};
|
};
|
||||||
@@ -262,8 +262,11 @@ const DownloadUpload = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const showFirmwareDialog = (useDev: boolean) => {
|
// useDev = true to force using the dev version
|
||||||
setUseDev(useDev);
|
const showFirmwareDialog = (useDevVersion: boolean) => {
|
||||||
|
if (useDevVersion || data.emsesp_version.includes('dev')) {
|
||||||
|
setUseDev(true);
|
||||||
|
}
|
||||||
setOpenDialog(true);
|
setOpenDialog(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -393,13 +396,15 @@ const DownloadUpload = () => {
|
|||||||
{upgradeAvailable ? LL.UPGRADE_AVAILABLE() : LL.LATEST_VERSION()}
|
{upgradeAvailable ? LL.UPGRADE_AVAILABLE() : LL.LATEST_VERSION()}
|
||||||
{upgradeAvailable && (
|
{upgradeAvailable && (
|
||||||
<Button
|
<Button
|
||||||
sx={{ ml: 2 }}
|
sx={{ ml: 2, textTransform: 'none' }}
|
||||||
size="small"
|
size="small"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
color="primary"
|
color="primary"
|
||||||
onClick={() => showFirmwareDialog(true)}
|
onClick={() => showFirmwareDialog(false)}
|
||||||
>
|
>
|
||||||
{LL.INSTALL('v' + isDev ? latestDevVersion : latestVersion)}
|
{isDev
|
||||||
|
? LL.INSTALL('v' + latestDevVersion)
|
||||||
|
: LL.INSTALL('v' + latestVersion)}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ const en: Translation = {
|
|||||||
SPECIAL_FUNCTIONS: 'Special Functions',
|
SPECIAL_FUNCTIONS: 'Special Functions',
|
||||||
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
||||||
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
||||||
SWITCH_DEV: 'Switch to development version', // TODO translate
|
SWITCH_DEV: 'switch to the development version', // TODO translate
|
||||||
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
||||||
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ const fr: Translation = {
|
|||||||
SPECIAL_FUNCTIONS: 'Special Functions',
|
SPECIAL_FUNCTIONS: 'Special Functions',
|
||||||
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
||||||
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
||||||
SWITCH_DEV: 'Switch to development version', // TODO translate
|
SWITCH_DEV: 'switch to the development version', // TODO translate
|
||||||
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
||||||
LATEST_VERSION: 'You are using the latest version.' // TODO translate // TODO translate
|
LATEST_VERSION: 'You are using the latest version.' // TODO translate // TODO translate
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ const it: Translation = {
|
|||||||
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
||||||
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
||||||
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
||||||
SWITCH_DEV: 'Switch to development version', // TODO translate
|
SWITCH_DEV: 'switch to the development version', // TODO translate
|
||||||
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
||||||
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ const nl: Translation = {
|
|||||||
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
||||||
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
||||||
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
||||||
SWITCH_DEV: 'Switch to development version', // TODO translate
|
SWITCH_DEV: 'switch to the development version', // TODO translate
|
||||||
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
||||||
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ const no: Translation = {
|
|||||||
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
||||||
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
||||||
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
||||||
SWITCH_DEV: 'Switch to development version', // TODO translate
|
SWITCH_DEV: 'switch to the development version', // TODO translate
|
||||||
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
||||||
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ const pl: BaseTranslation = {
|
|||||||
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
||||||
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
||||||
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
||||||
SWITCH_DEV: 'Switch to development version', // TODO translate
|
SWITCH_DEV: 'switch to the development version', // TODO translate
|
||||||
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
||||||
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ const sk: Translation = {
|
|||||||
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
||||||
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
||||||
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
||||||
SWITCH_DEV: 'Switch to development version', // TODO translate
|
SWITCH_DEV: 'switch to the development version', // TODO translate
|
||||||
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
||||||
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ const sv: Translation = {
|
|||||||
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
||||||
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
||||||
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
||||||
SWITCH_DEV: 'Switch to development version', // TODO translate
|
SWITCH_DEV: 'switch to the development version', // TODO translate
|
||||||
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
||||||
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ const tr: Translation = {
|
|||||||
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
SPECIAL_FUNCTIONS: 'Special Functions', // TODO translate
|
||||||
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
WAIT_FIRMWARE: 'Please wait while the firmware is being uploaded. The device will restart automatically.', // TODO translate
|
||||||
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
INSTALL_VERSION: 'This will install vesion {0}. Are you sure?', // TODO translate
|
||||||
SWITCH_DEV: 'Switch to development version', // TODO translate
|
SWITCH_DEV: 'switch to the development version', // TODO translate
|
||||||
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate
|
||||||
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
LATEST_VERSION: 'You are using the latest version.' // TODO translate
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -331,6 +331,7 @@ let mqtt_settings = {
|
|||||||
publish_time_other: 10,
|
publish_time_other: 10,
|
||||||
publish_time_sensor: 10,
|
publish_time_sensor: 10,
|
||||||
publish_time_heartbeat: 60,
|
publish_time_heartbeat: 60,
|
||||||
|
publish_time_water: 60,
|
||||||
mqtt_qos: 0,
|
mqtt_qos: 0,
|
||||||
rootCA: '',
|
rootCA: '',
|
||||||
mqtt_retain: false,
|
mqtt_retain: false,
|
||||||
@@ -367,9 +368,11 @@ const VERIFY_AUTHORIZATION_ENDPOINT = REST_ENDPOINT_ROOT + 'verifyAuthorization'
|
|||||||
const SIGN_IN_ENDPOINT = REST_ENDPOINT_ROOT + 'signIn';
|
const SIGN_IN_ENDPOINT = REST_ENDPOINT_ROOT + 'signIn';
|
||||||
const GENERATE_TOKEN_ENDPOINT = REST_ENDPOINT_ROOT + 'generateToken';
|
const GENERATE_TOKEN_ENDPOINT = REST_ENDPOINT_ROOT + 'generateToken';
|
||||||
|
|
||||||
|
const VERSION = '3.7.0-dev.0';
|
||||||
|
// const VERSION = '3.6.4';
|
||||||
|
|
||||||
const hardware_status = {
|
const hardware_status = {
|
||||||
emsesp_version: '3.7.0-dev.33',
|
emsesp_version: VERSION,
|
||||||
// emsesp_version: '3.6.5',
|
|
||||||
esp_platform: 'ESP32S3',
|
esp_platform: 'ESP32S3',
|
||||||
build_flags: 'DEMO',
|
build_flags: 'DEMO',
|
||||||
cpu_type: 'ESP32-S3',
|
cpu_type: 'ESP32-S3',
|
||||||
@@ -397,8 +400,7 @@ const hardware_status = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const system_status = {
|
const system_status = {
|
||||||
emsesp_version: '3.7.0-dev.33',
|
emsesp_version: VERSION,
|
||||||
// emsesp_version: '3.6.5',
|
|
||||||
status: 0,
|
status: 0,
|
||||||
// status: 2,
|
// status: 2,
|
||||||
uptime: 77186,
|
uptime: 77186,
|
||||||
|
|||||||
Reference in New Issue
Block a user