2017-09-02 13:37:02 +01:00
|
|
|
/*
|
2019-10-27 10:13:24 +00:00
|
|
|
i18n.h - internationalization for Tasmota
|
2017-09-02 13:37:02 +01:00
|
|
|
|
2019-12-31 13:23:34 +00:00
|
|
|
Copyright (C) 2020 Theo Arends
|
2017-09-02 13:37:02 +01:00
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2017-10-18 17:22:34 +01:00
|
|
|
#ifndef _I18N_H_
|
|
|
|
#define _I18N_H_
|
|
|
|
|
2018-01-06 16:34:42 +00:00
|
|
|
/*********************************************************************************************\
|
|
|
|
* All text used in Commands, MQTT, JSON messages only in English (#1473)
|
|
|
|
*
|
|
|
|
* (At this location they can/may be overruled by language files using undefs)
|
|
|
|
\*********************************************************************************************/
|
2018-01-05 11:26:19 +00:00
|
|
|
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_ABORTED "Aborted"
|
|
|
|
#define D_JSON_ACTIVE "Active"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_ADDRESS "Address"
|
|
|
|
#define D_JSON_AIRQUALITY "AirQuality"
|
|
|
|
#define D_JSON_ANALOG_INPUT "Analog"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_AP "AP" // Access Point
|
|
|
|
#define D_JSON_APMAC_ADDRESS "APMac"
|
|
|
|
#define D_JSON_APPENDED "Appended"
|
|
|
|
#define D_JSON_BAUDRATE "Baudrate"
|
|
|
|
#define D_JSON_BLINK "Blink"
|
|
|
|
#define D_JSON_BLOCKED_LOOP "Blocked Loop"
|
2020-11-03 11:38:28 +00:00
|
|
|
#define D_JSON_BLUE "Blue"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_BOOTVERSION "Boot"
|
|
|
|
#define D_JSON_BOOTCOUNT "BootCount"
|
2018-09-02 14:54:26 +01:00
|
|
|
#define D_JSON_BSSID "BSSId"
|
2020-11-03 14:42:55 +00:00
|
|
|
#define D_JSON_BUTTON "Button"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_BUILDDATETIME "BuildDateTime"
|
2018-09-02 11:10:22 +01:00
|
|
|
#define D_JSON_CHANNEL "Channel"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_CO2 "CarbonDioxide"
|
|
|
|
#define D_JSON_COMMAND "Command"
|
2020-11-11 16:31:48 +00:00
|
|
|
#define D_JSON_CONFIDENCE "Confidence"
|
2019-02-13 09:50:02 +00:00
|
|
|
#define D_JSON_CONFIG_HOLDER "CfgHolder"
|
2018-05-28 10:35:23 +01:00
|
|
|
#define D_JSON_CONNECT_FAILED "Connect failed"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_COREVERSION "Core"
|
2018-10-08 13:39:36 +01:00
|
|
|
#define D_JSON_COUNT "Count"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_COUNTER "Counter"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_CURRENT "Current" // As in Voltage and Current
|
2019-12-24 11:20:04 +00:00
|
|
|
#define D_JSON_DARKNESS "Darkness"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_DATA "Data"
|
2020-03-16 15:52:22 +00:00
|
|
|
#define D_JSON_DEWPOINT "DewPoint"
|
2020-11-02 08:26:35 +00:00
|
|
|
#define D_JSON_DO "DisolvedOxygen"
|
2018-04-20 13:31:09 +01:00
|
|
|
#define D_JSON_DISTANCE "Distance"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_DNSSERVER "DNSServer"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_DONE "Done"
|
2019-02-18 17:02:22 +00:00
|
|
|
#define D_JSON_DOWNTIME "Downtime"
|
2020-10-24 08:54:25 +01:00
|
|
|
#define D_JSON_EC "EC"
|
2018-04-01 20:54:15 +01:00
|
|
|
#define D_JSON_ECO2 "eCO2"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_EMPTY "Empty"
|
|
|
|
#define D_JSON_ENDDST "EndDST" // End Daylight Savings Time
|
2019-12-30 15:42:53 +00:00
|
|
|
#define D_JSON_ENERGY "Energy"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_ERASE "Erase"
|
|
|
|
#define D_JSON_ERROR "Error"
|
2020-04-11 13:51:08 +01:00
|
|
|
#define D_JSON_EVENT "Event"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_EVERY "Every"
|
2020-05-22 17:31:14 +01:00
|
|
|
#define D_JSON_EXPORT "Export"
|
2019-09-02 15:41:18 +01:00
|
|
|
#define D_JSON_EXPORT_ACTIVE "ExportActive"
|
|
|
|
#define D_JSON_EXPORT_REACTIVE "ExportReactive"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_FAILED "Failed"
|
|
|
|
#define D_JSON_FALLBACKTOPIC "FallbackTopic"
|
2018-05-17 14:36:45 +01:00
|
|
|
#define D_JSON_FEATURES "Features"
|
2018-11-08 09:40:19 +00:00
|
|
|
#define D_JSON_FLASHCHIPID "FlashChipId"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_FLASHMODE "FlashMode"
|
|
|
|
#define D_JSON_FLASHSIZE "FlashSize"
|
2019-03-23 23:26:03 +00:00
|
|
|
#define D_JSON_FLOWRATE "FlowRate"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_FREEMEMORY "Free"
|
2018-05-11 13:44:00 +01:00
|
|
|
#define D_JSON_FREQUENCY "Frequency"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_FROM "from"
|
|
|
|
#define D_JSON_GAS "Gas"
|
|
|
|
#define D_JSON_GATEWAY "Gateway"
|
2020-11-03 11:38:28 +00:00
|
|
|
#define D_JSON_GREEN "Green"
|
2019-01-25 16:46:27 +00:00
|
|
|
#define D_JSON_GROUPS "Groups"
|
2020-08-10 15:19:44 +01:00
|
|
|
#define D_JSON_HALTING "Halting"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_HEAPSIZE "Heap"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_HIGH "High"
|
2018-05-28 10:35:23 +01:00
|
|
|
#define D_JSON_HOST_NOT_FOUND "Host not found"
|
2018-03-20 15:28:18 +00:00
|
|
|
#define D_JSON_HSBCOLOR "HSBColor"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_HUMIDITY "Humidity"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_I2CSCAN_DEVICES_FOUND_AT "Device(s) found at"
|
|
|
|
#define D_JSON_I2CSCAN_UNKNOWN_ERROR_AT "Unknown error at"
|
|
|
|
#define D_JSON_I2CSCAN_NO_DEVICES_FOUND "No devices found"
|
|
|
|
#define D_JSON_ID "Id"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_ILLUMINANCE "Illuminance"
|
2019-09-02 15:41:18 +01:00
|
|
|
#define D_JSON_IMPORT_ACTIVE "ImportActive"
|
|
|
|
#define D_JSON_IMPORT_REACTIVE "ImportReactive"
|
2018-05-12 20:15:59 +01:00
|
|
|
#define D_JSON_INFRARED "Infrared"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_UNKNOWN "Unknown"
|
|
|
|
#define D_JSON_LIGHT "Light"
|
2019-02-18 16:05:25 +00:00
|
|
|
#define D_JSON_LINK_COUNT "LinkCount"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_LOCAL_TIME "Local"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_LOW "Low"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_MAC "Mac"
|
|
|
|
#define D_JSON_MASK "Mask"
|
2019-09-05 16:19:19 +01:00
|
|
|
#define D_JSON_MEMORY_ERROR "Memory error"
|
2018-01-10 13:10:25 +00:00
|
|
|
#define D_JSON_MINIMAL "minimal"
|
2019-01-21 21:18:19 +00:00
|
|
|
#define D_JSON_MODEL "Model"
|
2019-12-24 01:22:29 +00:00
|
|
|
#define D_JSON_MOISTURE "Moisture"
|
2019-02-18 16:05:25 +00:00
|
|
|
#define D_JSON_MQTT_COUNT "MqttCount"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_NO "No"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_NOISE "Noise"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_NONE "None"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_OR "or"
|
2020-10-18 13:10:12 +01:00
|
|
|
#define D_JSON_ORP "ORP"
|
2020-10-27 10:38:54 +00:00
|
|
|
#define D_JSON_O2 "Oxygen"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_PERIOD "Period"
|
2020-10-18 13:10:12 +01:00
|
|
|
#define D_JSON_PH "pH"
|
2018-12-11 13:24:52 +00:00
|
|
|
#define D_JSON_PHASE_ANGLE "PhaseAngle"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_POWERFACTOR "Factor"
|
|
|
|
#define D_JSON_POWERUSAGE "Power"
|
2018-05-14 13:04:10 +01:00
|
|
|
#define D_JSON_ACTIVE_POWERUSAGE "ActivePower"
|
|
|
|
#define D_JSON_APPARENT_POWERUSAGE "ApparentPower"
|
|
|
|
#define D_JSON_REACTIVE_POWERUSAGE "ReactivePower"
|
2020-01-23 22:21:49 +00:00
|
|
|
#define D_JSON_RANGE "Range"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_PRESSURE "Pressure"
|
|
|
|
#define D_JSON_PRESSUREATSEALEVEL "SeaPressure"
|
2018-11-04 15:55:12 +00:00
|
|
|
#define D_JSON_PRESSURE_UNIT "PressureUnit"
|
2018-12-30 10:45:21 +00:00
|
|
|
#define D_JSON_PROBETEMPERATURE "ProbeTemperature"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_PROGRAMFLASHSIZE "ProgramFlashSize"
|
|
|
|
#define D_JSON_PROGRAMSIZE "ProgramSize"
|
2020-05-12 14:42:16 +01:00
|
|
|
#define D_JSON_PSRMAXMEMORY "PsrMax"
|
|
|
|
#define D_JSON_PSRFREEMEMORY "PsrFree"
|
2020-11-07 09:41:22 +00:00
|
|
|
#define D_JSON_PUMP "Pumped"
|
2020-11-03 11:38:28 +00:00
|
|
|
#define D_JSON_RED "Red"
|
2018-12-30 10:45:21 +00:00
|
|
|
#define D_JSON_REFERENCETEMPERATURE "ReferenceTemperature"
|
2019-10-03 09:02:57 +01:00
|
|
|
#define D_JSON_REMAINING "Remaining"
|
2018-05-08 16:07:55 +01:00
|
|
|
#define D_JSON_RESET "Reset"
|
2019-07-28 23:36:22 +01:00
|
|
|
#define D_JSON_RESISTANCE "Resistance"
|
2019-02-03 11:38:41 +00:00
|
|
|
#define D_JSON_RESOLUTION "Resolution"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_RESTARTING "Restarting"
|
|
|
|
#define D_JSON_RESTARTREASON "RestartReason"
|
|
|
|
#define D_JSON_RSSI "RSSI"
|
2019-08-09 15:42:16 +01:00
|
|
|
#define D_JSON_RUNTIME "Runtime"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_SAVEADDRESS "SaveAddress"
|
|
|
|
#define D_JSON_SAVECOUNT "SaveCount"
|
|
|
|
#define D_JSON_SAVED "Saved"
|
|
|
|
#define D_JSON_SAVESTATE "SaveState"
|
|
|
|
#define D_JSON_SDKVERSION "SDK"
|
|
|
|
#define D_JSON_SELECTED "selected"
|
2018-03-18 12:47:30 +00:00
|
|
|
#define D_JSON_SERIALRECEIVED "SerialReceived"
|
2019-10-03 09:02:57 +01:00
|
|
|
#define D_JSON_SET "Set"
|
2019-12-08 18:42:08 +00:00
|
|
|
#define D_JSON_SIGNAL "Signal"
|
2020-03-02 14:51:33 +00:00
|
|
|
#define D_JSON_SPEED "Speed"
|
|
|
|
#define D_JSON_SPEED_UNIT "SpeedUnit"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_SSID "SSId"
|
2020-06-02 18:13:06 +01:00
|
|
|
#define D_JSON_STAGE "Stage"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_STARTDST "StartDST" // Start Daylight Savings Time
|
|
|
|
#define D_JSON_STARTED "Started"
|
2018-02-17 12:47:11 +00:00
|
|
|
#define D_JSON_STARTUPUTC "StartupUTC"
|
2019-08-09 15:42:16 +01:00
|
|
|
#define D_JSON_STATUS "Status"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_SUBNETMASK "Subnetmask"
|
|
|
|
#define D_JSON_SUCCESSFUL "Successful"
|
2018-04-05 11:49:43 +01:00
|
|
|
#define D_JSON_SUNRISE "Sunrise"
|
|
|
|
#define D_JSON_SUNSET "Sunset"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_SWITCH "Switch"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_SYNC "Sync"
|
|
|
|
#define D_JSON_TEMPERATURE "Temperature"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_TEMPERATURE_UNIT "TempUnit"
|
|
|
|
#define D_JSON_TIME "Time"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_TODAY "Today"
|
|
|
|
#define D_JSON_TOTAL "Total"
|
2019-03-23 23:26:03 +00:00
|
|
|
#define D_JSON_TOTAL_USAGE "TotalUsage"
|
2019-09-02 15:41:18 +01:00
|
|
|
#define D_JSON_TOTAL_REACTIVE "TotalReactive"
|
2018-10-30 16:04:19 +00:00
|
|
|
#define D_JSON_TOTAL_START_TIME "TotalStartTime"
|
2018-03-31 15:26:00 +01:00
|
|
|
#define D_JSON_TVOC "TVOC"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_TYPE "Type"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_UPTIME "Uptime"
|
|
|
|
#define D_JSON_UTC_TIME "UTC"
|
2018-09-25 16:03:22 +01:00
|
|
|
#define D_JSON_UV_INDEX "UvIndex"
|
2018-09-28 16:26:13 +01:00
|
|
|
#define D_JSON_UV_INDEX_TEXT "UvIndexText"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_UV_LEVEL "UvLevel"
|
2018-09-25 15:19:49 +01:00
|
|
|
#define D_JSON_UV_POWER "UvPower"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_VCC "Vcc"
|
|
|
|
#define D_JSON_VERSION "Version"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_VOLTAGE "Voltage"
|
2020-11-01 09:28:43 +00:00
|
|
|
#define D_JSON_VOLUME "Volume"
|
2018-10-08 13:39:36 +01:00
|
|
|
#define D_JSON_WEIGHT "Weight"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_WIFI "Wifi"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_WRONG "Wrong"
|
2018-05-28 10:35:23 +01:00
|
|
|
#define D_JSON_WRONG_PARAMETERS "Wrong parameters"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_JSON_YESTERDAY "Yesterday"
|
2018-01-24 16:31:20 +00:00
|
|
|
#define D_JSON_ZERO_POINT_CALIBRATION "Zero Point Calibration"
|
2019-08-09 11:56:01 +01:00
|
|
|
#define D_JSON_PV1_VOLTAGE "Pv1Voltage"
|
|
|
|
#define D_JSON_PV1_CURRENT "Pv1Current"
|
|
|
|
#define D_JSON_PV1_POWER "Pv1Power"
|
|
|
|
#define D_JSON_PV2_VOLTAGE "Pv2Voltage"
|
|
|
|
#define D_JSON_PV2_CURRENT "Pv2Current"
|
|
|
|
#define D_JSON_PV2_POWER "Pv2Power"
|
|
|
|
#define D_JSON_SOLAR_POWER "SolarPower"
|
2019-09-21 10:31:41 +01:00
|
|
|
#define D_JSON_USAGE "Usage"
|
2020-08-18 21:09:33 +01:00
|
|
|
#define D_JSON_IMPORT "Import"
|
2019-09-21 10:31:41 +01:00
|
|
|
#define D_JSON_EXPORT "Export"
|
2020-01-05 18:51:12 +00:00
|
|
|
#define D_JSON_TOTAL_ACTIVE "TotalActive"
|
2018-01-05 11:26:19 +00:00
|
|
|
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_RSLT_ENERGY "ENERGY"
|
2019-02-06 19:07:28 +00:00
|
|
|
#define D_RSLT_HASS_STATE "HASS_STATE"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_RSLT_INFO "INFO"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_RSLT_MARGINS "MARGINS"
|
|
|
|
#define D_RSLT_POWER "POWER"
|
|
|
|
#define D_RSLT_RESULT "RESULT"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_RSLT_SENSOR "SENSOR"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_RSLT_STATE "STATE"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_RSLT_UPTIME "UPTIME"
|
|
|
|
#define D_RSLT_WARNING "WARNING"
|
|
|
|
|
2019-02-11 18:21:49 +00:00
|
|
|
#define D_LOG_SOME_SETTINGS_RESET "Some settings have been reset"
|
|
|
|
|
2019-11-03 14:37:33 +00:00
|
|
|
// Commands tasmota.ino
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_BACKLOG "Backlog"
|
|
|
|
#define D_CMND_DELAY "Delay"
|
2020-10-15 11:32:40 +01:00
|
|
|
#define D_CMND_NODELAY "NoDelay"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_STATUS "Status"
|
|
|
|
#define D_STATUS1_PARAMETER "PRM"
|
|
|
|
#define D_STATUS2_FIRMWARE "FWR"
|
|
|
|
#define D_STATUS3_LOGGING "LOG"
|
|
|
|
#define D_STATUS4_MEMORY "MEM"
|
|
|
|
#define D_STATUS5_NETWORK "NET"
|
|
|
|
#define D_STATUS6_MQTT "MQT"
|
|
|
|
#define D_STATUS7_TIME "TIM"
|
|
|
|
#define D_STATUS8_POWER "PWR"
|
|
|
|
#define D_STATUS9_MARGIN "PTH"
|
|
|
|
#define D_STATUS10_SENSOR "SNS"
|
|
|
|
#define D_STATUS11_STATUS "STS"
|
2019-12-07 17:32:39 +00:00
|
|
|
#define D_STATUS12_STATUS "STK"
|
2020-08-20 15:31:22 +01:00
|
|
|
#define D_STATUS13_SHUTTER "SHT"
|
2018-01-20 11:12:39 +00:00
|
|
|
#define D_CMND_STATE "State"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_POWER "Power"
|
2018-06-30 17:50:10 +01:00
|
|
|
#define D_CMND_FANSPEED "FanSpeed"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_POWERONSTATE "PowerOnState"
|
|
|
|
#define D_CMND_PULSETIME "PulseTime"
|
|
|
|
#define D_CMND_BLINKTIME "BlinkTime"
|
|
|
|
#define D_CMND_BLINKCOUNT "BlinkCount"
|
2018-01-24 16:31:20 +00:00
|
|
|
#define D_CMND_SENSOR "Sensor"
|
2018-09-20 21:56:07 +01:00
|
|
|
#define D_CMND_DRIVER "Driver"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_SAVEDATA "SaveData"
|
|
|
|
#define D_CMND_SETOPTION "SetOption"
|
2020-04-21 08:48:27 +01:00
|
|
|
#define D_CMND_SO "SO"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_TEMPERATURE_RESOLUTION "TempRes"
|
|
|
|
#define D_CMND_HUMIDITY_RESOLUTION "HumRes"
|
|
|
|
#define D_CMND_PRESSURE_RESOLUTION "PressRes"
|
|
|
|
#define D_CMND_POWER_RESOLUTION "WattRes"
|
|
|
|
#define D_CMND_VOLTAGE_RESOLUTION "VoltRes"
|
2018-09-07 17:15:47 +01:00
|
|
|
#define D_CMND_FREQUENCY_RESOLUTION "FreqRes"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_CURRENT_RESOLUTION "AmpRes"
|
|
|
|
#define D_CMND_ENERGY_RESOLUTION "EnergyRes"
|
2018-10-08 13:39:36 +01:00
|
|
|
#define D_CMND_WEIGHT_RESOLUTION "WeightRes"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_MODULE "Module"
|
|
|
|
#define D_CMND_MODULES "Modules"
|
2019-05-13 14:56:01 +01:00
|
|
|
#define D_CMND_ADC "ADC"
|
|
|
|
#define D_CMND_ADCS "ADCs"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_GPIO "GPIO"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_NOT_SUPPORTED "Not supported"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_GPIOS "GPIOs"
|
|
|
|
#define D_CMND_PWM "PWM"
|
|
|
|
#define D_CMND_PWMFREQUENCY "PWMFrequency"
|
|
|
|
#define D_CMND_PWMRANGE "PWMRange"
|
2018-08-27 11:01:20 +01:00
|
|
|
#define D_CMND_BUTTONDEBOUNCE "ButtonDebounce"
|
|
|
|
#define D_CMND_SWITCHDEBOUNCE "SwitchDebounce"
|
2020-11-01 12:26:35 +00:00
|
|
|
#define D_CMND_SWITCHTEXT "SwitchText"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_SLEEP "Sleep"
|
|
|
|
#define D_CMND_UPLOAD "Upload"
|
|
|
|
#define D_CMND_UPGRADE "Upgrade"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_ONE_OR_GT "1 or >%s to upgrade"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_OTAURL "OtaUrl"
|
|
|
|
#define D_CMND_SERIALLOG "SerialLog"
|
|
|
|
#define D_CMND_SYSLOG "SysLog"
|
|
|
|
#define D_CMND_LOGHOST "LogHost"
|
|
|
|
#define D_CMND_LOGPORT "LogPort"
|
|
|
|
#define D_CMND_IPADDRESS "IPAddress"
|
|
|
|
#define D_CMND_NTPSERVER "NtpServer"
|
|
|
|
#define D_CMND_AP "Ap"
|
|
|
|
#define D_CMND_SSID "SSId"
|
|
|
|
#define D_CMND_PASSWORD "Password"
|
|
|
|
#define D_CMND_HOSTNAME "Hostname"
|
2020-06-15 17:27:04 +01:00
|
|
|
#define D_CMND_WIFI "Wifi"
|
|
|
|
#define D_CMND_ETHERNET "Ethernet"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_WIFICONFIG "WifiConfig"
|
|
|
|
#define D_WCFG_0_RESTART "Restart"
|
|
|
|
#define D_WCFG_2_WIFIMANAGER "WifiManager"
|
|
|
|
#define D_WCFG_4_RETRY "Retry"
|
|
|
|
#define D_WCFG_5_WAIT "Wait"
|
2018-07-15 14:21:48 +01:00
|
|
|
#define D_WCFG_6_SERIAL "Serial"
|
2019-02-21 18:45:21 +00:00
|
|
|
#define D_WCFG_7_WIFIMANAGER_RESET_ONLY "ManagerRst"
|
2020-05-17 16:10:17 +01:00
|
|
|
#define D_CMND_DEVICENAME "DeviceName"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_FRIENDLYNAME "FriendlyName"
|
|
|
|
#define D_CMND_SWITCHMODE "SwitchMode"
|
2019-01-25 16:46:27 +00:00
|
|
|
#define D_CMND_INTERLOCK "Interlock"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_TELEPERIOD "TelePeriod"
|
|
|
|
#define D_CMND_RESTART "Restart"
|
2020-08-10 15:19:44 +01:00
|
|
|
#define D_JSON_ONE_TO_RESTART "1 to restart, 2 to halt"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_RESET "Reset"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_RESET_AND_RESTARTING "Reset and Restarting"
|
|
|
|
#define D_JSON_ONE_TO_RESET "1 to reset"
|
2019-07-11 13:59:28 +01:00
|
|
|
#define D_CMND_TIME "Time"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_TIMEZONE "Timezone"
|
2018-05-14 22:22:29 +01:00
|
|
|
#define D_CMND_TIMESTD "TimeStd"
|
|
|
|
#define D_CMND_TIMEDST "TimeDst"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_ALTITUDE "Altitude"
|
|
|
|
#define D_CMND_LEDPOWER "LedPower"
|
|
|
|
#define D_CMND_LEDSTATE "LedState"
|
2019-04-10 13:26:36 +01:00
|
|
|
#define D_CMND_LEDMASK "LedMask"
|
2020-05-23 14:17:13 +01:00
|
|
|
#define D_CMND_LEDPWM_OFF "LedPwmOff"
|
|
|
|
#define D_CMND_LEDPWM_ON "LedPwmOn"
|
|
|
|
#define D_CMND_LEDPWM_MODE "LedPwmMode"
|
2019-11-08 12:00:32 +00:00
|
|
|
#define D_CMND_WIFIPOWER "WifiPower"
|
2020-03-02 14:51:33 +00:00
|
|
|
#define D_CMND_SPEEDUNIT "SpeedUnit"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_I2CSCAN "I2CScan"
|
2019-11-03 16:54:39 +00:00
|
|
|
#define D_CMND_I2CDRIVER "I2CDriver"
|
2020-04-06 18:29:50 +01:00
|
|
|
#define D_CMND_DEVGROUP_NAME "DevGroupName"
|
2020-04-07 19:25:58 +01:00
|
|
|
#define D_CMND_DEVGROUP_SEND "DevGroupSend"
|
2020-02-21 15:09:21 +00:00
|
|
|
#define D_CMND_DEVGROUP_SHARE "DevGroupShare"
|
2020-04-15 14:40:18 +01:00
|
|
|
#define D_CMND_DEVGROUPSTATUS "DevGroupStatus"
|
2018-03-18 12:47:30 +00:00
|
|
|
#define D_CMND_SERIALSEND "SerialSend"
|
2018-03-20 13:31:11 +00:00
|
|
|
#define D_CMND_SERIALDELIMITER "SerialDelimiter"
|
2018-03-18 12:47:30 +00:00
|
|
|
#define D_CMND_BAUDRATE "Baudrate"
|
2019-12-06 14:02:05 +00:00
|
|
|
#define D_CMND_SERIALCONFIG "SerialConfig"
|
2019-02-11 18:21:49 +00:00
|
|
|
#define D_CMND_TEMPLATE "Template"
|
|
|
|
#define D_JSON_NAME "NAME"
|
|
|
|
#define D_JSON_GPIO "GPIO"
|
|
|
|
#define D_JSON_FLAG "FLAG"
|
|
|
|
#define D_JSON_BASE "BASE"
|
2019-11-18 08:21:11 +00:00
|
|
|
#define D_CMND_TEMPOFFSET "TempOffset"
|
2020-03-16 17:29:55 +00:00
|
|
|
#define D_CMND_HUMOFFSET "HumOffset"
|
2020-04-13 12:26:49 +01:00
|
|
|
#define D_CMND_GLOBAL_TEMP "GlobalTemp"
|
|
|
|
#define D_CMND_GLOBAL_HUM "GlobalHum"
|
2020-06-20 16:58:21 +01:00
|
|
|
|
2020-05-30 12:50:22 +01:00
|
|
|
#ifdef ESP32
|
|
|
|
#define D_CMND_TOUCH_CAL "TouchCal"
|
|
|
|
#define D_CMND_TOUCH_THRES "TouchThres"
|
|
|
|
#define D_CMND_TOUCH_NUM "TouchNum"
|
2020-06-20 16:58:21 +01:00
|
|
|
#define D_CMND_CPU_FREQUENCY "CpuFrequency"
|
2020-05-30 12:50:22 +01:00
|
|
|
#endif //ESP32
|
2018-01-05 11:26:19 +00:00
|
|
|
|
2018-05-28 10:35:23 +01:00
|
|
|
// Commands xdrv_01_mqtt.ino
|
2019-09-27 17:13:00 +01:00
|
|
|
#define D_CMND_MQTTLOG "MqttLog"
|
2018-04-13 16:42:11 +01:00
|
|
|
#define D_CMND_MQTTHOST "MqttHost"
|
|
|
|
#define D_CMND_MQTTPORT "MqttPort"
|
|
|
|
#define D_CMND_MQTTRETRY "MqttRetry"
|
|
|
|
#define D_CMND_STATETEXT "StateText"
|
|
|
|
#define D_CMND_MQTTFINGERPRINT "MqttFingerprint"
|
|
|
|
#define D_CMND_MQTTCLIENT "MqttClient"
|
|
|
|
#define D_CMND_MQTTUSER "MqttUser"
|
|
|
|
#define D_CMND_MQTTPASSWORD "MqttPassword"
|
2019-08-04 18:42:21 +01:00
|
|
|
#define D_CMND_TLSKEY "TLSKey"
|
2018-04-13 16:42:11 +01:00
|
|
|
#define D_CMND_FULLTOPIC "FullTopic"
|
|
|
|
#define D_CMND_PREFIX "Prefix"
|
|
|
|
#define D_CMND "cmnd"
|
|
|
|
#define D_STAT "stat"
|
|
|
|
#define D_TELE "tele"
|
|
|
|
#define D_CMND_GROUPTOPIC "GroupTopic"
|
|
|
|
#define D_CMND_TOPIC "Topic"
|
|
|
|
#define D_CMND_BUTTONTOPIC "ButtonTopic"
|
|
|
|
#define D_CMND_SWITCHTOPIC "SwitchTopic"
|
|
|
|
#define D_CMND_BUTTONRETAIN "ButtonRetain"
|
|
|
|
#define D_CMND_SWITCHRETAIN "SwitchRetain"
|
|
|
|
#define D_CMND_POWERRETAIN "PowerRetain"
|
|
|
|
#define D_CMND_SENSORRETAIN "SensorRetain"
|
|
|
|
#define D_CMND_PUBLISH "Publish"
|
|
|
|
|
2018-05-28 10:35:23 +01:00
|
|
|
// Commands xdrv_02_webserver.ino
|
|
|
|
#define D_CMND_WEBSERVER "Webserver"
|
|
|
|
#define D_JSON_WEBSERVER_MODE "WebServerMode"
|
|
|
|
#define D_JSON_ACTIVE_FOR "Active for"
|
|
|
|
#define D_JSON_ON_DEVICE "on"
|
|
|
|
#define D_JSON_WITH_IP_ADDRESS "with IP address"
|
|
|
|
#define D_CMND_WEBPASSWORD "WebPassword"
|
|
|
|
#define D_CMND_WEBLOG "WebLog"
|
2018-10-08 13:39:36 +01:00
|
|
|
#define D_CMND_WEBREFRESH "WebRefresh"
|
2018-05-28 10:35:23 +01:00
|
|
|
#define D_CMND_WEBSEND "WebSend"
|
Add command WebColor
* Add rule Http#Initialized
* Add command WebColor to change non-persistent GUI colors on the fly
Use a rule like:
rule3 on http#initialized do webcolor {"webcolor":["#eeeeee","#181818","#4f4f4f","#000000","#dddddd","#008000","#222222","#ff0000","#008000","#ffffff","#1fa3ec","#0e70a4","#d43535","#931f1f","#47c266","#5aaf6f","#ffffff","#999999","#000000"]} endon
or
rule3 on http#initialized do webcolor {"webcolor":["#eee","#181818","#4f4f4f","#000","#ddd","#008000","#222"]} endon
to make color changes persistent)
2019-04-08 21:37:39 +01:00
|
|
|
#define D_CMND_WEBCOLOR "WebColor"
|
2019-12-24 16:10:50 +00:00
|
|
|
#define D_CMND_WEBBUTTON "WebButton"
|
2019-08-16 15:54:36 +01:00
|
|
|
#define D_CMND_WEBSENSOR "WebSensor"
|
2018-05-28 10:35:23 +01:00
|
|
|
#define D_CMND_EMULATION "Emulation"
|
2019-09-05 16:19:19 +01:00
|
|
|
#define D_CMND_SENDMAIL "Sendmail"
|
2019-11-29 17:28:25 +00:00
|
|
|
#define D_CMND_CORS "CORS"
|
2018-01-05 11:26:19 +00:00
|
|
|
|
2018-01-08 10:44:18 +00:00
|
|
|
// Commands xdrv_03_energy.ino
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_POWERLOW "PowerLow"
|
|
|
|
#define D_CMND_POWERHIGH "PowerHigh"
|
2018-03-14 13:32:51 +00:00
|
|
|
#define D_CMND_POWERDELTA "PowerDelta"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_VOLTAGELOW "VoltageLow"
|
|
|
|
#define D_CMND_VOLTAGEHIGH "VoltageHigh"
|
|
|
|
#define D_CMND_CURRENTLOW "CurrentLow"
|
|
|
|
#define D_CMND_CURRENTHIGH "CurrentHigh"
|
|
|
|
#define D_CMND_ENERGYRESET "EnergyReset"
|
2018-02-03 22:25:05 +00:00
|
|
|
#define D_CMND_POWERSET "PowerSet"
|
|
|
|
#define D_CMND_VOLTAGESET "VoltageSet"
|
|
|
|
#define D_CMND_CURRENTSET "CurrentSet"
|
2018-09-21 14:22:17 +01:00
|
|
|
#define D_CMND_FREQUENCYSET "FrequencySet"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_MAXPOWER "MaxPower"
|
|
|
|
#define D_CMND_MAXPOWERHOLD "MaxPowerHold"
|
|
|
|
#define D_CMND_MAXPOWERWINDOW "MaxPowerWindow"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_MAXPOWERREACHED "MaxPowerReached"
|
|
|
|
#define D_JSON_MAXPOWERREACHEDRETRY "MaxPowerReachedRetry"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_SAFEPOWER "SafePower"
|
|
|
|
#define D_CMND_SAFEPOWERHOLD "SafePowerHold"
|
|
|
|
#define D_CMND_SAFEPOWERWINDOW "SafePowerWindow"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_POWERMONITOR "PowerMonitor"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_MAXENERGY "MaxEnergy"
|
|
|
|
#define D_CMND_MAXENERGYSTART "MaxEnergyStart"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_ENERGYMONITOR "EnergyMonitor"
|
|
|
|
#define D_JSON_MAXENERGYREACHED "MaxEnergyReached"
|
2018-01-05 11:26:19 +00:00
|
|
|
|
2018-05-28 10:35:23 +01:00
|
|
|
// Commands xdrv_04_light.ino
|
|
|
|
#define D_CMND_CHANNEL "Channel"
|
|
|
|
#define D_CMND_COLOR "Color"
|
|
|
|
#define D_CMND_COLORTEMPERATURE "CT"
|
|
|
|
#define D_CMND_DIMMER "Dimmer"
|
2019-10-10 15:53:01 +01:00
|
|
|
#define D_CMND_DIMMER_RANGE "DimmerRange"
|
2020-10-30 13:49:36 +00:00
|
|
|
#define D_CMND_DIMMER_STEP "DimmerStep"
|
2018-05-28 10:35:23 +01:00
|
|
|
#define D_CMND_HSBCOLOR "HSBColor"
|
|
|
|
#define D_CMND_LED "Led"
|
|
|
|
#define D_CMND_LEDTABLE "LedTable"
|
|
|
|
#define D_CMND_FADE "Fade"
|
2020-04-13 05:17:25 +01:00
|
|
|
#define D_CMND_PALETTE "Palette"
|
2018-05-28 10:35:23 +01:00
|
|
|
#define D_CMND_PIXELS "Pixels"
|
2018-09-29 15:55:53 +01:00
|
|
|
#define D_CMND_RGBWWTABLE "RGBWWTable"
|
2018-05-28 10:35:23 +01:00
|
|
|
#define D_CMND_ROTATION "Rotation"
|
|
|
|
#define D_CMND_SCHEME "Scheme"
|
2020-04-25 23:49:34 +01:00
|
|
|
#define D_CMND_SEQUENCE_OFFSET "SequenceOffset"
|
2018-05-28 10:35:23 +01:00
|
|
|
#define D_CMND_SPEED "Speed"
|
|
|
|
#define D_CMND_WAKEUP "Wakeup"
|
|
|
|
#define D_CMND_WAKEUPDURATION "WakeUpDuration"
|
2018-12-07 20:32:01 +00:00
|
|
|
#define D_CMND_WHITE "White"
|
2018-05-28 10:35:23 +01:00
|
|
|
#define D_CMND_WIDTH "Width"
|
|
|
|
|
|
|
|
// Commands xdrv_05_irremote.ino
|
|
|
|
#define D_CMND_IRSEND "IRSend"
|
|
|
|
#define D_JSON_INVALID_JSON "Invalid JSON"
|
2018-11-21 15:36:10 +00:00
|
|
|
#define D_JSON_INVALID_RAWDATA "Invalid RawData"
|
|
|
|
#define D_JSON_NO_BUFFER_SPACE "No buffer space"
|
2018-05-28 10:35:23 +01:00
|
|
|
#define D_JSON_PROTOCOL_NOT_SUPPORTED "Protocol not supported"
|
|
|
|
#define D_JSON_IR_PROTOCOL "Protocol"
|
|
|
|
#define D_JSON_IR_BITS "Bits"
|
|
|
|
#define D_JSON_IR_DATA "Data"
|
2019-08-28 21:01:01 +01:00
|
|
|
#define D_JSON_IR_DATALSB "DataLSB"
|
2019-09-10 19:45:27 +01:00
|
|
|
#define D_JSON_IR_HASH "Hash"
|
2018-11-21 15:36:10 +00:00
|
|
|
#define D_JSON_IR_RAWDATA "RawData"
|
2019-07-15 08:22:07 +01:00
|
|
|
#define D_JSON_IR_REPEAT "Repeat"
|
2018-05-28 10:35:23 +01:00
|
|
|
#define D_CMND_IRHVAC "IRHVAC"
|
2019-08-28 21:01:01 +01:00
|
|
|
#define D_JSON_IRHVAC_VENDOR "Vendor"
|
|
|
|
#define D_JSON_IRHVAC_PROTOCOL "Protocol"
|
|
|
|
#define D_JSON_IRHVAC_MODEL "Model"
|
|
|
|
#define D_JSON_IRHVAC_POWER "Power"
|
|
|
|
#define D_JSON_IRHVAC_MODE "Mode"
|
|
|
|
#define D_JSON_IRHVAC_FANSPEED "FanSpeed"
|
|
|
|
#define D_JSON_IRHVAC_TEMP "Temp"
|
|
|
|
#define D_JSON_IRHVAC_CELSIUS "Celsius"
|
|
|
|
#define D_JSON_IRHVAC_SWINGV "SwingV"
|
|
|
|
#define D_JSON_IRHVAC_SWINGH "SwingH"
|
|
|
|
#define D_JSON_IRHVAC_LIGHT "Light"
|
|
|
|
#define D_JSON_IRHVAC_BEEP "Beep"
|
|
|
|
#define D_JSON_IRHVAC_ECONO "Econo"
|
|
|
|
#define D_JSON_IRHVAC_FILTER "Filter"
|
|
|
|
#define D_JSON_IRHVAC_TURBO "Turbo"
|
|
|
|
#define D_JSON_IRHVAC_QUIET "Quiet"
|
|
|
|
#define D_JSON_IRHVAC_CLEAN "Clean"
|
|
|
|
#define D_JSON_IRHVAC_SLEEP "Sleep"
|
|
|
|
#define D_JSON_IRHVAC_CLOCK "Clock"
|
2020-10-06 16:10:07 +01:00
|
|
|
#define D_JSON_IRHVAC_STATE_MODE "StateMode"
|
|
|
|
#define D_JSON_IRHVAC_STATE_MODE_SEND_ONLY "SendOnly"
|
|
|
|
#define D_JSON_IRHVAC_STATE_MODE_STORE_ONLY "StoreOnly"
|
|
|
|
#define D_JSON_IRHVAC_STATE_MODE_SEND_STORE "SendStore"
|
2018-05-28 10:35:23 +01:00
|
|
|
#define D_JSON_IRRECEIVED "IrReceived"
|
|
|
|
|
|
|
|
// Commands xdrv_06_snfbridge.ino
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_RFCODE "RfCode"
|
|
|
|
#define D_CMND_RFHIGH "RfHigh"
|
|
|
|
#define D_CMND_RFHOST "RfHost"
|
|
|
|
#define D_CMND_RFKEY "RfKey"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_START_LEARNING "Start learning"
|
|
|
|
#define D_JSON_SET_TO_DEFAULT "Set to default"
|
|
|
|
#define D_JSON_DEFAULT_SENT "Default sent"
|
|
|
|
#define D_JSON_LEARNED_SENT "Learned sent"
|
|
|
|
#define D_JSON_LEARNING_ACTIVE "Learning active"
|
|
|
|
#define D_JSON_LEARN_FAILED "Learn failed"
|
|
|
|
#define D_JSON_LEARNED "Learned"
|
2018-01-05 11:26:19 +00:00
|
|
|
#define D_CMND_RFLOW "RfLow"
|
|
|
|
#define D_CMND_RFSYNC "RfSync"
|
2018-01-06 16:34:42 +00:00
|
|
|
#define D_JSON_RFRECEIVED "RfReceived"
|
2018-06-04 17:10:38 +01:00
|
|
|
#define D_CMND_RFRAW "RfRaw"
|
2018-01-05 11:26:19 +00:00
|
|
|
|
2018-03-20 13:31:11 +00:00
|
|
|
// Commands xdrv_08_serial_bridge.ino
|
|
|
|
#define D_CMND_SSERIALSEND "SSerialSend"
|
|
|
|
#define D_CMND_SBAUDRATE "SBaudrate"
|
|
|
|
#define D_JSON_SSERIALRECEIVED "SSerialReceived"
|
|
|
|
|
2018-03-23 16:20:20 +00:00
|
|
|
// Commands xdrv_09_timers.ino
|
|
|
|
#define D_CMND_TIMER "Timer"
|
2020-07-21 09:44:45 +01:00
|
|
|
#define D_JSON_TIMER_ARM "Enable"
|
2018-04-05 11:49:43 +01:00
|
|
|
#define D_JSON_TIMER_MODE "Mode"
|
2018-03-23 16:20:20 +00:00
|
|
|
#define D_JSON_TIMER_TIME "Time"
|
2018-04-18 16:28:45 +01:00
|
|
|
#define D_JSON_TIMER_WINDOW "Window"
|
2018-03-23 16:20:20 +00:00
|
|
|
#define D_JSON_TIMER_DAYS "Days"
|
|
|
|
#define D_JSON_TIMER_REPEAT "Repeat"
|
2018-03-30 10:15:04 +01:00
|
|
|
#define D_JSON_TIMER_OUTPUT "Output"
|
2018-04-12 13:01:43 +01:00
|
|
|
#define D_JSON_TIMER_ACTION "Action"
|
2018-03-31 16:29:00 +01:00
|
|
|
#define D_JSON_TIMER_NO_DEVICE "No GPIO as output configured"
|
2018-03-23 16:20:20 +00:00
|
|
|
#define D_CMND_TIMERS "Timers"
|
2018-04-05 11:49:43 +01:00
|
|
|
#define D_CMND_LATITUDE "Latitude"
|
|
|
|
#define D_CMND_LONGITUDE "Longitude"
|
2018-03-23 16:20:20 +00:00
|
|
|
|
2019-08-31 20:23:32 +01:00
|
|
|
// Commands xdrv_23_zigbee.ino
|
2020-01-25 16:42:53 +00:00
|
|
|
#define D_PRFX_ZB "Zb"
|
2020-05-11 20:16:17 +01:00
|
|
|
#define D_ZIGBEE_NOT_STARTED "Zigbee not started"
|
2020-01-25 16:42:53 +00:00
|
|
|
#define D_CMND_ZIGBEE_PERMITJOIN "PermitJoin"
|
|
|
|
#define D_CMND_ZIGBEE_STATUS "Status"
|
|
|
|
#define D_CMND_ZIGBEE_RESET "Reset"
|
2019-10-13 11:56:52 +01:00
|
|
|
#define D_JSON_ZIGBEE_CC2530 "CC2530"
|
2020-10-10 15:19:37 +01:00
|
|
|
#define D_JSON_ZIGBEE_EZSP "EZSP"
|
2020-01-25 16:42:53 +00:00
|
|
|
#define D_CMND_ZIGBEEZNPRECEIVE "ZNPReceive" // only for debug
|
2020-06-16 19:01:14 +01:00
|
|
|
#define D_CMND_ZIGBEE_EZSP_RECEIVE "EZSPReceive" // only for debug
|
2020-06-19 19:54:37 +01:00
|
|
|
#define D_CMND_ZIGBEE_EZSP_RECEIVE_RAW "EZSPReceiveRaw" // only for debug
|
2020-07-10 19:15:12 +01:00
|
|
|
#define D_CMND_ZIGBEE_EZSP_LISTEN "Listen" // only for EZSP
|
2020-01-25 16:42:53 +00:00
|
|
|
#define D_CMND_ZIGBEEZNPSEND "ZNPSend"
|
2020-06-16 19:01:14 +01:00
|
|
|
#define D_CMND_ZIGBEE_EZSP_SEND "EZSPSend"
|
2020-06-19 19:54:37 +01:00
|
|
|
#define D_CMND_ZIGBEE_EZSP_SEND_RAW "EZSPSendRaw"
|
2020-01-25 16:42:53 +00:00
|
|
|
#define D_JSON_ZIGBEE_STATE "ZbState"
|
2020-07-25 14:40:42 +01:00
|
|
|
#define D_JSON_ZIGBEE_ROUTE_ERROR "ZbRouteError"
|
2020-01-25 16:42:53 +00:00
|
|
|
#define D_JSON_ZIGBEEZNPRECEIVED "ZbZNPReceived"
|
2020-06-16 19:01:14 +01:00
|
|
|
#define D_JSON_ZIGBEE_EZSP_RECEIVED "ZbEZSPReceived"
|
2020-01-25 16:42:53 +00:00
|
|
|
#define D_JSON_ZIGBEEZNPSENT "ZbZNPSent"
|
2020-06-16 19:01:14 +01:00
|
|
|
#define D_JSON_ZIGBEE_EZSP_SENT "ZbEZSPSent"
|
2020-06-19 19:54:37 +01:00
|
|
|
#define D_JSON_ZIGBEE_EZSP_SENT_RAW "ZbEZSPSentRaw"
|
2020-01-25 16:42:53 +00:00
|
|
|
#define D_JSON_ZIGBEEZCL_RECEIVED "ZbZCLReceived"
|
|
|
|
#define D_JSON_ZIGBEEZCL_RAW_RECEIVED "ZbZCLRawReceived"
|
2019-10-20 15:43:50 +01:00
|
|
|
#define D_JSON_ZIGBEE_DEVICE "Device"
|
|
|
|
#define D_JSON_ZIGBEE_NAME "Name"
|
2020-03-14 13:17:30 +00:00
|
|
|
#define D_JSON_ZIGBEE_CONFIRM "ZbConfirm"
|
2020-01-25 16:42:53 +00:00
|
|
|
#define D_CMND_ZIGBEE_NAME "Name"
|
2020-03-01 10:25:59 +00:00
|
|
|
#define D_CMND_ZIGBEE_MODELID "ModelId"
|
|
|
|
#define D_JSON_ZIGBEE_MODELID "ModelId"
|
2020-01-25 16:42:53 +00:00
|
|
|
#define D_CMND_ZIGBEE_PROBE "Probe"
|
|
|
|
#define D_CMND_ZIGBEE_FORGET "Forget"
|
2020-11-11 11:09:18 +00:00
|
|
|
#define D_CMND_ZIGBEE_INFO "Info"
|
2020-01-25 16:42:53 +00:00
|
|
|
#define D_CMND_ZIGBEE_SAVE "Save"
|
2019-10-20 15:43:50 +01:00
|
|
|
#define D_CMND_ZIGBEE_LINKQUALITY "LinkQuality"
|
2020-05-29 21:52:45 +01:00
|
|
|
#define D_CMND_ZIGBEE_CLUSTER "Cluster"
|
2020-02-22 19:53:55 +00:00
|
|
|
#define D_CMND_ZIGBEE_ENDPOINT "Endpoint"
|
2020-03-01 10:25:59 +00:00
|
|
|
#define D_CMND_ZIGBEE_GROUP "Group"
|
2020-05-29 21:52:45 +01:00
|
|
|
#define D_CMND_ZIGBEE_MANUF "Manuf"
|
|
|
|
#define D_CMND_ZIGBEE_DEVICE "Device"
|
2020-01-25 16:42:53 +00:00
|
|
|
#define D_CMND_ZIGBEE_READ "Read"
|
|
|
|
#define D_CMND_ZIGBEE_SEND "Send"
|
2020-05-29 21:52:45 +01:00
|
|
|
#define D_CMND_ZIGBEE_WRITE "Write"
|
|
|
|
#define D_CMND_ZIGBEE_REPORT "Report"
|
2020-08-08 11:17:37 +01:00
|
|
|
#define D_CMND_ZIGBEE_READ_CONFIG "ReadConfig"
|
|
|
|
#define D_CMND_ZIGBEE_CONFIG "Config"
|
2020-06-03 21:39:04 +01:00
|
|
|
#define D_CMND_ZIGBEE_RESPONSE "Response"
|
2020-01-25 16:42:53 +00:00
|
|
|
#define D_JSON_ZIGBEE_ZCL_SENT "ZbZCLSent"
|
|
|
|
#define D_JSON_ZIGBEE_RECEIVED "ZbReceived"
|
2020-11-13 12:32:45 +00:00
|
|
|
#define D_JSON_ZIGBEE_INFO "ZbInfo"
|
2020-02-02 19:53:49 +00:00
|
|
|
#define D_CMND_ZIGBEE_BIND "Bind"
|
2020-03-01 10:25:59 +00:00
|
|
|
#define D_JSON_ZIGBEE_BIND "ZbBind"
|
2020-03-26 19:58:59 +00:00
|
|
|
#define D_CMND_ZIGBEE_UNBIND "Unbind"
|
|
|
|
#define D_JSON_ZIGBEE_UNBIND "ZbUnbind"
|
2020-03-30 18:23:06 +01:00
|
|
|
#define D_CMND_ZIGBEE_BIND_STATE "BindState"
|
|
|
|
#define D_JSON_ZIGBEE_BIND_STATE "ZbBindState"
|
2020-11-13 18:23:35 +00:00
|
|
|
#define D_CMND_ZIGBEE_LEAVE "Leave"
|
2020-10-28 16:30:46 +00:00
|
|
|
#define D_CMND_ZIGBEE_MAP "Map"
|
|
|
|
#define D_JSON_ZIGBEE_MAP "ZbMap"
|
2020-07-25 14:40:42 +01:00
|
|
|
#define D_JSON_ZIGBEE_PARENT "ZbParent"
|
2020-02-23 15:46:00 +00:00
|
|
|
#define D_CMND_ZIGBEE_PING "Ping"
|
|
|
|
#define D_JSON_ZIGBEE_PING "ZbPing"
|
2020-03-01 10:25:59 +00:00
|
|
|
#define D_JSON_ZIGBEE_IEEE "IEEEAddr"
|
|
|
|
#define D_JSON_ZIGBEE_RESPONSE "ZbResponse"
|
|
|
|
#define D_JSON_ZIGBEE_CMD "Command"
|
|
|
|
#define D_JSON_ZIGBEE_STATUS "Status"
|
|
|
|
#define D_JSON_ZIGBEE_STATUS_MSG "StatusMessage"
|
2020-03-14 13:17:30 +00:00
|
|
|
#define D_CMND_ZIGBEE_LIGHT "Light"
|
|
|
|
#define D_JSON_ZIGBEE_LIGHT "Light"
|
2020-10-31 16:48:40 +00:00
|
|
|
#define D_CMND_ZIGBEE_OCCUPANCY "Occupancy"
|
|
|
|
#define D_JSON_ZIGBEE_OCCUPANCY "Occupancy"
|
2020-03-22 15:11:01 +00:00
|
|
|
#define D_CMND_ZIGBEE_RESTORE "Restore"
|
2020-04-11 17:50:46 +01:00
|
|
|
#define D_CMND_ZIGBEE_CONFIG "Config"
|
|
|
|
#define D_JSON_ZIGBEE_CONFIG "Config"
|
2020-10-07 19:04:33 +01:00
|
|
|
#define D_CMND_ZIGBEE_DATA "Data"
|
2019-09-07 13:03:07 +01:00
|
|
|
|
2019-12-24 11:20:04 +00:00
|
|
|
// Commands xdrv_25_A4988_Stepper.ino
|
|
|
|
#define D_CMND_MOTOR "MOTOR"
|
|
|
|
#define D_JSON_MOTOR_MOVE "doMove"
|
|
|
|
#define D_JSON_MOTOR_ROTATE "doRotate"
|
|
|
|
#define D_JSON_MOTOR_TURN "doTurn"
|
|
|
|
#define D_JSON_MOTOR_SPR "setSPR"
|
|
|
|
#define D_JSON_MOTOR_RPM "setRPM"
|
|
|
|
#define D_JSON_MOTOR_MIS "setMIS"
|
|
|
|
|
|
|
|
// Commands xdrv_27_Shutter.ino
|
|
|
|
#define D_PRFX_SHUTTER "Shutter"
|
|
|
|
#define D_CMND_SHUTTER_OPEN "Open"
|
|
|
|
#define D_CMND_SHUTTER_CLOSE "Close"
|
2020-04-11 07:28:05 +01:00
|
|
|
#define D_CMND_SHUTTER_TOGGLE "Toggle"
|
2020-07-21 06:24:14 +01:00
|
|
|
#define D_CMND_SHUTTER_TOGGLEDIR "ToggleDir"
|
2020-01-04 01:36:05 +00:00
|
|
|
#define D_CMND_SHUTTER_UP "Up"
|
|
|
|
#define D_CMND_SHUTTER_DOWN "Down"
|
2020-09-05 19:41:08 +01:00
|
|
|
#define D_CMND_SHUTTER_MODE "Mode"
|
2020-04-11 07:28:05 +01:00
|
|
|
#define D_CMND_SHUTTER_STOPOPEN "StopOpen"
|
|
|
|
#define D_CMND_SHUTTER_STOPCLOSE "StopClose"
|
|
|
|
#define D_CMND_SHUTTER_STOPTOGGLE "StopToggle"
|
2020-07-21 06:24:14 +01:00
|
|
|
#define D_CMND_SHUTTER_STOPTOGGLEDIR "StopToggleDir"
|
2020-10-21 09:21:56 +01:00
|
|
|
#define D_CMND_SHUTTER_INCDEC "Change"
|
2020-04-11 07:28:05 +01:00
|
|
|
#define D_CMND_SHUTTER_STOPPOSITION "StopPosition"
|
2019-12-24 11:20:04 +00:00
|
|
|
#define D_CMND_SHUTTER_STOP "Stop"
|
|
|
|
#define D_CMND_SHUTTER_POSITION "Position"
|
|
|
|
#define D_CMND_SHUTTER_OPENTIME "OpenDuration"
|
|
|
|
#define D_CMND_SHUTTER_CLOSETIME "CloseDuration"
|
|
|
|
#define D_CMND_SHUTTER_RELAY "Relay"
|
|
|
|
#define D_CMND_SHUTTER_SETHALFWAY "SetHalfway"
|
|
|
|
#define D_CMND_SHUTTER_SETCLOSE "SetClose"
|
2020-04-21 15:20:20 +01:00
|
|
|
#define D_CMND_SHUTTER_SETOPEN "SetOpen"
|
2019-12-24 11:20:04 +00:00
|
|
|
#define D_CMND_SHUTTER_INVERT "Invert"
|
|
|
|
#define D_CMND_SHUTTER_CLIBRATION "Calibration"
|
|
|
|
#define D_CMND_SHUTTER_MOTORDELAY "MotorDelay"
|
|
|
|
#define D_CMND_SHUTTER_FREQUENCY "Frequency"
|
2020-01-02 14:12:59 +00:00
|
|
|
#define D_CMND_SHUTTER_BUTTON "Button"
|
2020-01-12 13:18:15 +00:00
|
|
|
#define D_CMND_SHUTTER_LOCK "Lock"
|
2020-01-13 11:00:34 +00:00
|
|
|
#define D_CMND_SHUTTER_ENABLEENDSTOPTIME "EnableEndStopTime"
|
2020-03-10 07:41:37 +00:00
|
|
|
#define D_CMND_SHUTTER_INVERTWEBBUTTONS "InvertWebButtons"
|
2020-09-09 14:24:55 +01:00
|
|
|
#define D_CMND_SHUTTER_PWMRANGE "PWMRange"
|
2019-09-07 13:03:07 +01:00
|
|
|
|
2019-12-30 13:23:37 +00:00
|
|
|
// Commands xdrv_32_hotplug.ino
|
|
|
|
#define D_CMND_HOTPLUG "HotPlug"
|
|
|
|
|
2020-02-24 13:19:15 +00:00
|
|
|
// Commands xdrv_34_pwm_dimmer.ino
|
|
|
|
#ifdef USE_PWM_DIMMER
|
|
|
|
#define D_CMND_BRI_PRESET "BriPreset"
|
2020-10-02 18:40:45 +01:00
|
|
|
#define D_CMND_PWM_DIMMER_PWMS "PWMDimmerPWMs"
|
2020-02-24 13:19:15 +00:00
|
|
|
#endif
|
|
|
|
|
2020-04-10 19:40:56 +01:00
|
|
|
// Commands xdrv_38_ping.ino
|
|
|
|
#define D_CMND_PING "Ping"
|
|
|
|
#define D_JSON_PING "Ping"
|
|
|
|
|
2019-12-24 11:20:04 +00:00
|
|
|
// Commands xsns_02_analog.ino
|
|
|
|
#define D_CMND_ADCPARAM "AdcParam"
|
2019-12-12 15:05:58 +00:00
|
|
|
|
2020-05-12 20:24:44 +01:00
|
|
|
// xsns_70_veml6075.ino
|
|
|
|
#define D_JSON_UVA_INTENSITY "UvaIntensity"
|
2020-07-18 17:51:13 +01:00
|
|
|
#define D_JSON_UVB_INTENSITY "UvbIntensity"
|
2020-05-12 20:24:44 +01:00
|
|
|
#define D_CMND_VEML6075_POWER "power"
|
|
|
|
#define D_CMND_VEML6075_DYNAMIC "dynamic"
|
|
|
|
#define D_CMND_VEML6075_INTTIME "inttime"
|
|
|
|
|
|
|
|
// xsns_71_veml7700.ino
|
|
|
|
#define D_JSON_WHITE_CONTENT "WhiteContent"
|
2020-05-19 06:15:39 +01:00
|
|
|
|
2018-01-05 11:26:19 +00:00
|
|
|
/********************************************************************************************/
|
|
|
|
|
2019-11-17 14:07:03 +00:00
|
|
|
// Log message prefix
|
|
|
|
#define D_LOG_APPLICATION "APP: " // Application
|
|
|
|
#define D_LOG_BRIDGE "BRG: " // Bridge
|
|
|
|
#define D_LOG_CONFIG "CFG: " // Settings
|
|
|
|
#define D_LOG_COMMAND "CMD: " // Command
|
|
|
|
#define D_LOG_DEBUG "DBG: " // Debug
|
|
|
|
#define D_LOG_DHT "DHT: " // DHT sensor
|
|
|
|
#define D_LOG_DOMOTICZ "DOM: " // Domoticz
|
|
|
|
#define D_LOG_DSB "DSB: " // DS18xB20 sensor
|
|
|
|
#define D_LOG_HTTP "HTP: " // HTTP webserver
|
|
|
|
#define D_LOG_HRE "HRE: "
|
|
|
|
#define D_LOG_I2C "I2C: " // I2C
|
|
|
|
#define D_LOG_IRR "IRR: " // Infra Red Received
|
|
|
|
#define D_LOG_KNX "KNX: "
|
|
|
|
#define D_LOG_LOG "LOG: " // Logging
|
|
|
|
#define D_LOG_MODULE "MOD: " // Module
|
|
|
|
#define D_LOG_MDNS "DNS: " // mDNS
|
|
|
|
#define D_LOG_MQTT "MQT: " // MQTT
|
|
|
|
#define D_LOG_OTHER "OTH: " // Other
|
|
|
|
#define D_LOG_RESULT "RSL: " // Result
|
|
|
|
#define D_LOG_RFR "RFR: " // RF Received
|
|
|
|
#define D_LOG_SERIAL "SER: " // Serial
|
|
|
|
#define D_LOG_SHT1 "SHT: " // SHT1x sensor
|
|
|
|
#define D_LOG_UPLOAD "UPL: " // Upload
|
|
|
|
#define D_LOG_UPNP "UPP: " // UPnP
|
|
|
|
#define D_LOG_WIFI "WIF: " // Wifi
|
|
|
|
#define D_LOG_ZIGBEE "ZIG: " // Zigbee
|
2020-06-15 18:22:56 +01:00
|
|
|
#define D_LOG_TCP "TCP: " // TCP bridge
|
2019-11-17 14:07:03 +00:00
|
|
|
|
|
|
|
/********************************************************************************************/
|
|
|
|
|
2019-02-16 12:48:16 +00:00
|
|
|
#define D_ASTERISK_PWD "****"
|
2018-04-21 17:17:24 +01:00
|
|
|
|
2017-09-02 16:16:18 +01:00
|
|
|
#ifndef MY_LANGUAGE
|
2020-05-05 16:09:48 +01:00
|
|
|
#include "language/en_GB.h"
|
2017-09-02 16:16:18 +01:00
|
|
|
#else
|
|
|
|
#define QUOTEME(x) QUOTEME_1(x)
|
|
|
|
#define QUOTEME_1(x) #x
|
|
|
|
#define INCLUDE_FILE(x) QUOTEME(language/x.h)
|
|
|
|
#include INCLUDE_FILE(MY_LANGUAGE)
|
2017-09-02 13:37:02 +01:00
|
|
|
#endif
|
2018-05-17 14:36:45 +01:00
|
|
|
#ifndef LANGUAGE_LCID
|
2020-05-05 16:09:48 +01:00
|
|
|
#define LANGUAGE_LCID 2057 // en_GB
|
2018-05-17 14:36:45 +01:00
|
|
|
#endif
|
2017-09-02 13:37:02 +01:00
|
|
|
|
|
|
|
// Common
|
2017-10-29 17:18:46 +00:00
|
|
|
const char S_JSON_COMMAND_NVALUE_SPACE_UNIT[] PROGMEM = "{\"%s\":\"%d %s\"}";
|
2018-02-03 22:25:05 +00:00
|
|
|
const char S_JSON_COMMAND_LVALUE_SPACE_UNIT[] PROGMEM = "{\"%s\":\"%lu %s\"}";
|
2017-10-29 17:18:46 +00:00
|
|
|
const char S_JSON_COMMAND_SVALUE_SPACE_UNIT[] PROGMEM = "{\"%s\":\"%s %s\"}";
|
|
|
|
|
2019-09-12 13:19:44 +01:00
|
|
|
const char S_JSON_COMMAND_NVALUE_SVALUE[] PROGMEM = "{\"%s\":{\"%d\":\"%s\"}}";
|
|
|
|
const char S_JSON_COMMAND_NVALUE_ACTIVE_NVALUE[] PROGMEM = "{\"%s\":{\"%d\":{\"" D_JSON_ACTIVE "\":\"%d\"}}}";
|
2017-10-29 17:18:46 +00:00
|
|
|
|
|
|
|
const char S_JSON_COMMAND_NVALUE[] PROGMEM = "{\"%s\":%d}";
|
2018-02-03 22:25:05 +00:00
|
|
|
const char S_JSON_COMMAND_LVALUE[] PROGMEM = "{\"%s\":%lu}";
|
2017-10-29 17:18:46 +00:00
|
|
|
const char S_JSON_COMMAND_SVALUE[] PROGMEM = "{\"%s\":\"%s\"}";
|
2019-06-11 13:30:07 +01:00
|
|
|
const char S_JSON_COMMAND_ASTERISK[] PROGMEM = "{\"%s\":\"" D_ASTERISK_PWD "\"}";
|
2017-10-30 10:42:34 +00:00
|
|
|
const char S_JSON_COMMAND_XVALUE[] PROGMEM = "{\"%s\":%s}"; // %s must provide quotes on non-number
|
2017-10-29 17:18:46 +00:00
|
|
|
|
|
|
|
const char S_JSON_COMMAND_INDEX_NVALUE[] PROGMEM = "{\"%s%d\":%d}";
|
2018-02-03 22:25:05 +00:00
|
|
|
const char S_JSON_COMMAND_INDEX_LVALUE[] PROGMEM = "{\"%s%d\":%lu}";
|
2017-10-29 17:18:46 +00:00
|
|
|
const char S_JSON_COMMAND_INDEX_SVALUE[] PROGMEM = "{\"%s%d\":\"%s\"}";
|
2019-06-11 13:30:07 +01:00
|
|
|
const char S_JSON_COMMAND_INDEX_ASTERISK[] PROGMEM = "{\"%s%d\":\"" D_ASTERISK_PWD "\"}";
|
2017-10-29 17:18:46 +00:00
|
|
|
const char S_JSON_COMMAND_INDEX_SVALUE_SVALUE[] PROGMEM = "{\"%s%d\":\"%s%s\"}";
|
|
|
|
|
2019-03-23 16:57:31 +00:00
|
|
|
const char S_JSON_SENSOR_INDEX_NVALUE[] PROGMEM = "{\"" D_CMND_SENSOR "%d\":%d}";
|
|
|
|
const char S_JSON_SENSOR_INDEX_SVALUE[] PROGMEM = "{\"" D_CMND_SENSOR "%d\":\"%s\"}";
|
2018-01-24 16:31:20 +00:00
|
|
|
|
2019-03-23 16:57:31 +00:00
|
|
|
const char S_JSON_DRIVER_INDEX_NVALUE[] PROGMEM = "{\"" D_CMND_DRIVER "%d\":%d}";
|
|
|
|
const char S_JSON_DRIVER_INDEX_SVALUE[] PROGMEM = "{\"" D_CMND_DRIVER "%d\":\"%s\"}";
|
2018-09-20 21:56:07 +01:00
|
|
|
|
2020-11-03 15:24:49 +00:00
|
|
|
const char S_JSON_SVALUE_ACTION_SVALUE[] PROGMEM = "{\"%s\":{\"Action\":\"%s\"}}";
|
|
|
|
|
2019-03-23 16:57:31 +00:00
|
|
|
const char JSON_SNS_TEMP[] PROGMEM = ",\"%s\":{\"" D_JSON_TEMPERATURE "\":%s}";
|
2017-11-07 14:57:24 +00:00
|
|
|
|
2019-05-16 17:43:23 +01:00
|
|
|
const char JSON_SNS_ILLUMINANCE[] PROGMEM = ",\"%s\":{\"" D_JSON_ILLUMINANCE "\":%d}";
|
2019-12-24 01:22:29 +00:00
|
|
|
const char JSON_SNS_MOISTURE[] PROGMEM = ",\"%s\":{\"" D_JSON_MOISTURE "\":%d}";
|
2020-01-23 22:21:49 +00:00
|
|
|
const char JSON_SNS_RANGE[] PROGMEM = ",\"%s\":{\"" D_JSON_RANGE "\":%d}";
|
2019-05-16 17:43:23 +01:00
|
|
|
|
2019-03-25 19:10:17 +00:00
|
|
|
const char JSON_SNS_GNGPM[] PROGMEM = ",\"%s\":{\"" D_JSON_TOTAL_USAGE "\":%s,\"" D_JSON_FLOWRATE "\":%s}";
|
2019-03-23 23:26:03 +00:00
|
|
|
|
2017-11-07 14:57:24 +00:00
|
|
|
const char S_LOG_I2C_FOUND_AT[] PROGMEM = D_LOG_I2C "%s " D_FOUND_AT " 0x%x";
|
2017-10-29 17:18:46 +00:00
|
|
|
|
2017-09-02 13:37:02 +01:00
|
|
|
const char S_RSLT_POWER[] PROGMEM = D_RSLT_POWER;
|
|
|
|
const char S_RSLT_RESULT[] PROGMEM = D_RSLT_RESULT;
|
|
|
|
const char S_RSLT_WARNING[] PROGMEM = D_RSLT_WARNING;
|
|
|
|
const char S_LWT[] PROGMEM = D_LWT;
|
2020-09-27 11:51:50 +01:00
|
|
|
const char S_LWT_OFFLINE[] PROGMEM = MQTT_LWT_OFFLINE;
|
2017-09-02 13:37:02 +01:00
|
|
|
|
|
|
|
// support.ino
|
2017-10-18 17:22:34 +01:00
|
|
|
static const char kMonthNames[] = D_MONTH3LIST;
|
2017-09-02 13:37:02 +01:00
|
|
|
|
2020-03-02 14:51:33 +00:00
|
|
|
const char kSpeedUnit[] PROGMEM = "|m/s|km/h|kn|mph|ft/s|yd/s";
|
|
|
|
const float kSpeedConversionFactor[] = {1, // none
|
|
|
|
1, // m/s
|
|
|
|
3.6, // km/h
|
|
|
|
1.943844492, // kn
|
|
|
|
2.236936292, // mph
|
|
|
|
3.280839895, // ft/s
|
|
|
|
1.093613298 // yd/s
|
|
|
|
};
|
|
|
|
|
2018-06-04 17:10:38 +01:00
|
|
|
// xdrv_02_webserver.ino
|
2017-11-07 14:57:24 +00:00
|
|
|
#ifdef USE_WEBSERVER
|
2019-12-30 15:42:53 +00:00
|
|
|
// {s} = <tr><th>, {m} = </th><td>, {e} = </td></tr>
|
2020-05-07 23:34:25 +01:00
|
|
|
const char HTTP_SNS_TEMP[] PROGMEM = "{s}%s " D_TEMPERATURE "{m}%s " D_UNIT_DEGREE "%c{e}";
|
|
|
|
const char HTTP_SNS_HUM[] PROGMEM = "{s}%s " D_HUMIDITY "{m}%s " D_UNIT_PERCENT "{e}";
|
|
|
|
const char HTTP_SNS_DEW[] PROGMEM = "{s}%s " D_DEWPOINT "{m}%s " D_UNIT_DEGREE "%c{e}";
|
|
|
|
const char HTTP_SNS_PRESSURE[] PROGMEM = "{s}%s " D_PRESSURE "{m}%s " "%s{e}";
|
|
|
|
const char HTTP_SNS_SEAPRESSURE[] PROGMEM = "{s}%s " D_PRESSUREATSEALEVEL "{m}%s " "%s{e}";
|
|
|
|
const char HTTP_SNS_ANALOG[] PROGMEM = "{s}%s " D_ANALOG_INPUT "%d{m}%d" "{e}";
|
|
|
|
const char HTTP_SNS_ILLUMINANCE[] PROGMEM = "{s}%s " D_ILLUMINANCE "{m}%d " D_UNIT_LUX "{e}";
|
|
|
|
const char HTTP_SNS_CO2[] PROGMEM = "{s}%s " D_CO2 "{m}%d " D_UNIT_PARTS_PER_MILLION "{e}";
|
|
|
|
const char HTTP_SNS_CO2EAVG[] PROGMEM = "{s}%s " D_ECO2 "{m}%d " D_UNIT_PARTS_PER_MILLION "{e}";
|
|
|
|
const char HTTP_SNS_GALLONS[] PROGMEM = "{s}%s " D_TOTAL_USAGE "{m}%s " D_UNIT_GALLONS "{e}";
|
|
|
|
const char HTTP_SNS_GPM[] PROGMEM = "{s}%s " D_FLOW_RATE "{m}%s " D_UNIT_GALLONS_PER_MIN "{e}";
|
|
|
|
const char HTTP_SNS_MOISTURE[] PROGMEM = "{s}%s " D_MOISTURE "{m}%d " D_UNIT_PERCENT "{e}";
|
|
|
|
const char HTTP_SNS_RANGE[] PROGMEM = "{s}%s " D_RANGE "{m}%d" "{e}";
|
|
|
|
const char HTTP_SNS_VOLTAGE[] PROGMEM = "{s}" D_VOLTAGE "{m}%s " D_UNIT_VOLT "{e}";
|
|
|
|
const char HTTP_SNS_CURRENT[] PROGMEM = "{s}" D_CURRENT "{m}%s " D_UNIT_AMPERE "{e}";
|
|
|
|
const char HTTP_SNS_POWER[] PROGMEM = "{s}" D_POWERUSAGE "{m}%s " D_UNIT_WATT "{e}";
|
|
|
|
const char HTTP_SNS_ENERGY_TOTAL[] PROGMEM = "{s}" D_ENERGY_TOTAL "{m}%s " D_UNIT_KILOWATTHOUR "{e}";
|
2020-10-18 13:10:12 +01:00
|
|
|
const char HTTP_SNS_PH[] PROGMEM = "{s}%s " D_PH "{m}%s " "{e}";
|
|
|
|
const char HTTP_SNS_ORP[] PROGMEM = "{s}%s " D_ORP "{m}%s " D_UNIT_MILLIVOLT "{e}";
|
2020-10-24 08:54:25 +01:00
|
|
|
const char HTTP_SNS_EC[] PROGMEM = "{s}%s " D_EC "{m}%s " D_UNIT_MICROSIEMENS_PER_CM "{e}";
|
2020-10-27 10:38:54 +00:00
|
|
|
const char HTTP_SNS_O2[] PROGMEM = "{s}%s " D_O2 "{m}%s " D_UNIT_PERCENT "{e}";
|
2020-11-01 09:28:43 +00:00
|
|
|
const char HTTP_SNS_LITERS[] PROGMEM = "{s}%s " D_VOLUME "{m}%s " D_UNIT_LITERS "{e}";
|
|
|
|
const char HTTP_SNS_LPM[] PROGMEM = "{s}%s " D_FLOW_RATE "{m}%s " D_UNIT_LITERS_PER_MIN "{e}";
|
2020-11-02 08:26:35 +00:00
|
|
|
const char HTTP_SNS_DO[] PROGMEM = "{s}%s " D_DO "{m}%s " D_UNIT_PARTS_PER_MILLION "{e}";
|
2020-11-03 11:38:28 +00:00
|
|
|
const char HTTP_SNS_COLOR_RED[] PROGMEM = "{s}%s " D_COLOR_RED "{m}%u " "{e}";
|
|
|
|
const char HTTP_SNS_COLOR_GREEN[] PROGMEM = "{s}%s " D_COLOR_GREEN "{m}%u " "{e}";
|
|
|
|
const char HTTP_SNS_COLOR_BLUE[] PROGMEM = "{s}%s " D_COLOR_BLUE "{m}%u " "{e}";
|
2020-11-07 09:41:22 +00:00
|
|
|
const char HTTP_SNS_MILLILITERS[] PROGMEM = "{s}%s " D_VOLUME "{m}%s " D_UNIT_MILLILITERS "{e}";
|
2017-11-07 14:57:24 +00:00
|
|
|
#endif // USE_WEBSERVER
|
2017-10-18 17:22:34 +01:00
|
|
|
|
2019-12-20 14:12:44 +00:00
|
|
|
const uint32_t MARKER_START = 0x5AA55AA5;
|
|
|
|
const uint32_t MARKER_END = 0xA55AA55A;
|
|
|
|
const uint32_t VERSION_MARKER[] PROGMEM = { MARKER_START, VERSION, MARKER_END };
|
|
|
|
|
2018-03-20 15:28:18 +00:00
|
|
|
#endif // _I18N_H_
|