include psram in hardware status

This commit is contained in:
proddy
2024-07-26 13:24:18 +02:00
parent 3f6157d7a4
commit e169f27ade
2 changed files with 51 additions and 37 deletions

View File

@@ -21,6 +21,7 @@ export interface HardwareStatus {
fs_used: number; fs_used: number;
fs_free: number; fs_free: number;
free_mem: number; free_mem: number;
psram: boolean;
psram_size?: number; psram_size?: number;
free_psram?: number; free_psram?: number;
has_loader: boolean; has_loader: boolean;

View File

@@ -336,7 +336,7 @@ const SYSTEM_STATUS_ENDPOINT = REST_ENDPOINT_ROOT + 'systemStatus';
const ACTIVITY_ENDPOINT = REST_ENDPOINT_ROOT + 'activity'; const ACTIVITY_ENDPOINT = REST_ENDPOINT_ROOT + 'activity';
// SETTINGS // SETTINGS
const HARDWARE_STATUS_ENDPOINT = REST_ENDPOINT_ROOT + 'HardwareStatus'; const HARDWARE_STATUS_ENDPOINT = REST_ENDPOINT_ROOT + 'hardwareStatus';
const SECURITY_SETTINGS_ENDPOINT = REST_ENDPOINT_ROOT + 'securitySettings'; const SECURITY_SETTINGS_ENDPOINT = REST_ENDPOINT_ROOT + 'securitySettings';
const RESTART_ENDPOINT = REST_ENDPOINT_ROOT + 'restart'; const RESTART_ENDPOINT = REST_ENDPOINT_ROOT + 'restart';
const RESTART_PARTITION_ENDPOINT = REST_ENDPOINT_ROOT + 'partition'; const RESTART_PARTITION_ENDPOINT = REST_ENDPOINT_ROOT + 'partition';
@@ -366,6 +366,8 @@ const hardware_status = {
fs_used: 24, fs_used: 24,
fs_free: 2024, fs_free: 2024,
free_mem: 100, free_mem: 100,
psram: true,
// psram: false,
psram_size: 4093, psram_size: 4093,
free_psram: 4074, free_psram: 4074,
has_loader: true, has_loader: true,
@@ -604,42 +606,53 @@ const emsesp_allvalues = {
}; };
let settings = { let settings = {
locale: 'en', "locale": "en",
tx_mode: 4, "tx_mode": 1,
ems_bus_id: 11, "ems_bus_id": 11,
syslog_enabled: false, "syslog_enabled": false,
syslog_level: 3, "syslog_level": 3,
trace_raw: false, "trace_raw": false,
syslog_mark_interval: 0, "syslog_mark_interval": 0,
syslog_host: '192.168.1.4', "syslog_host": "192.168.1.8",
syslog_port: 514, "syslog_port": 514,
shower_timer: true, "boiler_heatingoff": false,
shower_alert: true, "remote_timeout": 24,
shower_alert_trigger: 7, "remote_timeout_en": false,
shower_alert_coldshot: 10, "shower_timer": true,
shower_min_duration: 120, "shower_alert": false,
rx_gpio: 23, "shower_alert_coldshot": 10,
tx_gpio: 5, "shower_alert_trigger": 7,
phy_type: 0, "shower_min_duration": 180,
eth_power: 0, "rx_gpio": 4,
eth_phy_addr: 0, "tx_gpio": 5,
eth_clock_mode: 0, "dallas_gpio": 14,
dallas_gpio: 3, "dallas_parasite": false,
dallas_parasite: false, "led_gpio": 2,
led_gpio: 2, "hide_led": true,
hide_led: false, "low_clock": false,
notoken_api: false, "telnet_enabled": true,
readonly_mode: false, "notoken_api": false,
low_clock: false, "readonly_mode": false,
boiler_heatingoff: false, "analog_enabled": true,
telnet_enabled: true, "pbutton_gpio": 34,
analog_enabled: false, "solar_maxflow": 30,
pbutton_gpio: 0, "board_profile": "E32V2",
board_profile: 'S32', "fahrenheit": false,
bool_format: 1, "bool_format": 1,
bool_dashboard: 1, "bool_dashboard": 1,
enum_format: 1, "enum_format": 1,
fahrenheit: false "weblog_level": 6,
"weblog_buffer": 50,
"weblog_compact": true,
"phy_type": 1,
"eth_power": 15,
"eth_phy_addr": 0,
"eth_clock_mode": 1,
"platform": "ESP32R",
"modbus_enabled": false,
"modbus_port": 502,
"modbus_max_clients": 10,
"modbus_timeout": 10000
}; };
const emsesp_devices = { const emsesp_devices = {