From e9c1f5fe94c1df223cb8a7aa1d49aa8d9faec33a Mon Sep 17 00:00:00 2001 From: Luke Marzen <98473324+lmarzen@users.noreply.github.com> Date: Fri, 16 Feb 2024 15:18:32 -0600 Subject: [PATCH] http and json deserialization error codes are now translatable --- platformio/include/_locale.h | 97 ++++++++++++++- platformio/src/display_utils.cpp | 158 ++++++++++++------------ platformio/src/locales/locale_de_DE.inc | 113 +++++++++++++++-- platformio/src/locales/locale_en_GB.inc | 113 +++++++++++++++-- platformio/src/locales/locale_en_US.inc | 113 +++++++++++++++-- platformio/src/locales/locale_fr_FR.inc | 113 +++++++++++++++-- platformio/src/locales/locale_nl_BE.inc | 113 +++++++++++++++-- 7 files changed, 677 insertions(+), 143 deletions(-) diff --git a/platformio/include/_locale.h b/platformio/include/_locale.h index 39695ea34..4ebc99f25 100644 --- a/platformio/include/_locale.h +++ b/platformio/include/_locale.h @@ -122,9 +122,6 @@ extern const std::vector TERM_HURRICANE; extern const std::vector TERM_DUST; extern const std::vector TERM_STRONG_WIND; -// COMPASS POINT -extern const char *COMPASS_POINT_NOTATION[32]; - // AIR QUALITY INDEX extern "C" { extern const char *AUSTRALIA_AQI_TXT[6]; @@ -139,5 +136,97 @@ extern const char *UNITED_KINGDOM_DAQI_TXT[4]; extern const char *UNITED_STATES_AQI_TXT[6]; } -#endif +// COMPASS POINT +extern const char *COMPASS_POINT_NOTATION[32]; + +// HTTP CLIENT ERRORS +extern const char *TXT_HTTPC_ERROR_CONNECTION_REFUSED; +extern const char *TXT_HTTPC_ERROR_SEND_HEADER_FAILED; +extern const char *TXT_HTTPC_ERROR_SEND_PAYLOAD_FAILED; +extern const char *TXT_HTTPC_ERROR_NOT_CONNECTED; +extern const char *TXT_HTTPC_ERROR_CONNECTION_LOST; +extern const char *TXT_HTTPC_ERROR_NO_STREAM; +extern const char *TXT_HTTPC_ERROR_NO_HTTP_SERVER; +extern const char *TXT_HTTPC_ERROR_TOO_LESS_RAM; +extern const char *TXT_HTTPC_ERROR_ENCODING; +extern const char *TXT_HTTPC_ERROR_STREAM_WRITE; +extern const char *TXT_HTTPC_ERROR_READ_TIMEOUT; + +// HTTP RESPONSE STATUS CODES +// 1xx - Informational Responses +extern const char *TXT_HTTP_RESPONSE_100; +extern const char *TXT_HTTP_RESPONSE_101; +extern const char *TXT_HTTP_RESPONSE_102; +extern const char *TXT_HTTP_RESPONSE_103; +// 2xx - Successful Responses +extern const char *TXT_HTTP_RESPONSE_200; +extern const char *TXT_HTTP_RESPONSE_201; +extern const char *TXT_HTTP_RESPONSE_202; +extern const char *TXT_HTTP_RESPONSE_203; +extern const char *TXT_HTTP_RESPONSE_204; +extern const char *TXT_HTTP_RESPONSE_205; +extern const char *TXT_HTTP_RESPONSE_206; +extern const char *TXT_HTTP_RESPONSE_207; +extern const char *TXT_HTTP_RESPONSE_208; +extern const char *TXT_HTTP_RESPONSE_226; +// 3xx - Redirection Responses +extern const char *TXT_HTTP_RESPONSE_300; +extern const char *TXT_HTTP_RESPONSE_301; +extern const char *TXT_HTTP_RESPONSE_302; +extern const char *TXT_HTTP_RESPONSE_303; +extern const char *TXT_HTTP_RESPONSE_304; +extern const char *TXT_HTTP_RESPONSE_305; +extern const char *TXT_HTTP_RESPONSE_307; +extern const char *TXT_HTTP_RESPONSE_308; +// 4xx - Client Error Responses +extern const char *TXT_HTTP_RESPONSE_400; +extern const char *TXT_HTTP_RESPONSE_401; +extern const char *TXT_HTTP_RESPONSE_402; +extern const char *TXT_HTTP_RESPONSE_403; +extern const char *TXT_HTTP_RESPONSE_404; +extern const char *TXT_HTTP_RESPONSE_405; +extern const char *TXT_HTTP_RESPONSE_406; +extern const char *TXT_HTTP_RESPONSE_407; +extern const char *TXT_HTTP_RESPONSE_408; +extern const char *TXT_HTTP_RESPONSE_409; +extern const char *TXT_HTTP_RESPONSE_410; +extern const char *TXT_HTTP_RESPONSE_411; +extern const char *TXT_HTTP_RESPONSE_412; +extern const char *TXT_HTTP_RESPONSE_413; +extern const char *TXT_HTTP_RESPONSE_414; +extern const char *TXT_HTTP_RESPONSE_415; +extern const char *TXT_HTTP_RESPONSE_416; +extern const char *TXT_HTTP_RESPONSE_417; +extern const char *TXT_HTTP_RESPONSE_418; +extern const char *TXT_HTTP_RESPONSE_421; +extern const char *TXT_HTTP_RESPONSE_422; +extern const char *TXT_HTTP_RESPONSE_423; +extern const char *TXT_HTTP_RESPONSE_424; +extern const char *TXT_HTTP_RESPONSE_425; +extern const char *TXT_HTTP_RESPONSE_426; +extern const char *TXT_HTTP_RESPONSE_428; +extern const char *TXT_HTTP_RESPONSE_429; +extern const char *TXT_HTTP_RESPONSE_431; +extern const char *TXT_HTTP_RESPONSE_451; +// 5xx - Server Error Responses +extern const char *TXT_HTTP_RESPONSE_500; +extern const char *TXT_HTTP_RESPONSE_501; +extern const char *TXT_HTTP_RESPONSE_502; +extern const char *TXT_HTTP_RESPONSE_503; +extern const char *TXT_HTTP_RESPONSE_504; +extern const char *TXT_HTTP_RESPONSE_505; +extern const char *TXT_HTTP_RESPONSE_506; +extern const char *TXT_HTTP_RESPONSE_507; +extern const char *TXT_HTTP_RESPONSE_508; +extern const char *TXT_HTTP_RESPONSE_510; +extern const char *TXT_HTTP_RESPONSE_511; +// ARDUINOJSON DESERIALIZATION ERROR CODES +extern const char *TXT_DESERIALIZATION_ERROR_OK; +extern const char *TXT_DESERIALIZATION_ERROR_EMPTY_INPUT; +extern const char *TXT_DESERIALIZATION_ERROR_INCOMPLETE_INPUT; +extern const char *TXT_DESERIALIZATION_ERROR_INVALID_INPUT; +extern const char *TXT_DESERIALIZATION_ERROR_NO_MEMORY; +extern const char *TXT_DESERIALIZATION_ERROR_TOO_DEEP; + +#endif diff --git a/platformio/src/display_utils.cpp b/platformio/src/display_utils.cpp index e75eed2a8..6a514aaf2 100644 --- a/platformio/src/display_utils.cpp +++ b/platformio/src/display_utils.cpp @@ -1577,97 +1577,97 @@ const char *getHttpResponsePhrase(int code) switch (code) { // HTTP client errors - case HTTPC_ERROR_CONNECTION_REFUSED: return "connection refused"; - case HTTPC_ERROR_SEND_HEADER_FAILED: return "send header failed"; - case HTTPC_ERROR_SEND_PAYLOAD_FAILED: return "send payload failed"; - case HTTPC_ERROR_NOT_CONNECTED: return "not connected"; - case HTTPC_ERROR_CONNECTION_LOST: return "connection lost"; - case HTTPC_ERROR_NO_STREAM: return "no stream"; - case HTTPC_ERROR_NO_HTTP_SERVER: return "no HTTP server"; - case HTTPC_ERROR_TOO_LESS_RAM: return "too less ram"; - case HTTPC_ERROR_ENCODING: return "Transfer-Encoding not supported"; - case HTTPC_ERROR_STREAM_WRITE: return "Stream write error"; - case HTTPC_ERROR_READ_TIMEOUT: return "read Timeout"; + case HTTPC_ERROR_CONNECTION_REFUSED: return TXT_HTTPC_ERROR_CONNECTION_REFUSED; + case HTTPC_ERROR_SEND_HEADER_FAILED: return TXT_HTTPC_ERROR_SEND_HEADER_FAILED; + case HTTPC_ERROR_SEND_PAYLOAD_FAILED: return TXT_HTTPC_ERROR_SEND_PAYLOAD_FAILED; + case HTTPC_ERROR_NOT_CONNECTED: return TXT_HTTPC_ERROR_NOT_CONNECTED; + case HTTPC_ERROR_CONNECTION_LOST: return TXT_HTTPC_ERROR_CONNECTION_LOST; + case HTTPC_ERROR_NO_STREAM: return TXT_HTTPC_ERROR_NO_STREAM; + case HTTPC_ERROR_NO_HTTP_SERVER: return TXT_HTTPC_ERROR_NO_HTTP_SERVER; + case HTTPC_ERROR_TOO_LESS_RAM: return TXT_HTTPC_ERROR_TOO_LESS_RAM; + case HTTPC_ERROR_ENCODING: return TXT_HTTPC_ERROR_ENCODING; + case HTTPC_ERROR_STREAM_WRITE: return TXT_HTTPC_ERROR_STREAM_WRITE; + case HTTPC_ERROR_READ_TIMEOUT: return TXT_HTTPC_ERROR_READ_TIMEOUT; // 1xx - Informational Responses - case 100: return "Continue"; - case 101: return "Switching Protocols"; - case 102: return "Processing"; - case 103: return "Early Hints"; + case 100: return TXT_HTTP_RESPONSE_100; + case 101: return TXT_HTTP_RESPONSE_101; + case 102: return TXT_HTTP_RESPONSE_102; + case 103: return TXT_HTTP_RESPONSE_103; // 2xx - Successful Responses - case 200: return "OK"; - case 201: return "Created"; - case 202: return "Accepted"; - case 203: return "Non-Authoritative Information"; - case 204: return "No Content"; - case 205: return "Reset Content"; - case 206: return "Partial Content"; - case 207: return "Multi-Status"; - case 208: return "Already Reported"; - case 226: return "IM Used"; + case 200: return TXT_HTTP_RESPONSE_200; + case 201: return TXT_HTTP_RESPONSE_201; + case 202: return TXT_HTTP_RESPONSE_202; + case 203: return TXT_HTTP_RESPONSE_203; + case 204: return TXT_HTTP_RESPONSE_204; + case 205: return TXT_HTTP_RESPONSE_205; + case 206: return TXT_HTTP_RESPONSE_206; + case 207: return TXT_HTTP_RESPONSE_207; + case 208: return TXT_HTTP_RESPONSE_208; + case 226: return TXT_HTTP_RESPONSE_226; // 3xx - Redirection Responses - case 300: return "Multiple Choices"; - case 301: return "Moved Permanently"; - case 302: return "Found"; - case 303: return "See Other"; - case 304: return "Not Modified"; - case 305: return "Use Proxy"; - case 307: return "Temporary Redirect"; - case 308: return "Permanent Redirect"; + case 300: return TXT_HTTP_RESPONSE_300; + case 301: return TXT_HTTP_RESPONSE_301; + case 302: return TXT_HTTP_RESPONSE_302; + case 303: return TXT_HTTP_RESPONSE_303; + case 304: return TXT_HTTP_RESPONSE_304; + case 305: return TXT_HTTP_RESPONSE_305; + case 307: return TXT_HTTP_RESPONSE_307; + case 308: return TXT_HTTP_RESPONSE_308; // 4xx - Client Error Responses - case 400: return "Bad Request"; - case 401: return "Unauthorized"; - case 402: return "Payment Required"; - case 403: return "Forbidden"; - case 404: return "Not Found"; - case 405: return "Method Not Allowed"; - case 406: return "Not Acceptable"; - case 407: return "Proxy Authentication Required"; - case 408: return "Request Timeout"; - case 409: return "Conflict"; - case 410: return "Gone"; - case 411: return "Length Required"; - case 412: return "Precondition Failed"; - case 413: return "Content Too Large"; - case 414: return "URI Too Long"; - case 415: return "Unsupported Media Type"; - case 416: return "Range Not Satisfiable"; - case 417: return "Expectation Failed"; - case 418: return "I'm a teapot"; - case 421: return "Misdirected Request"; - case 422: return "Unprocessable Content"; - case 423: return "Locked"; - case 424: return "Failed Dependency"; - case 425: return "Too Early"; - case 426: return "Upgrade Required"; - case 428: return "Precondition Required"; - case 429: return "Too Many Requests"; - case 431: return "Request Header Fields Too Large"; - case 451: return "Unavailable For Legal Reasons"; + case 400: return TXT_HTTP_RESPONSE_400; + case 401: return TXT_HTTP_RESPONSE_401; + case 402: return TXT_HTTP_RESPONSE_402; + case 403: return TXT_HTTP_RESPONSE_403; + case 404: return TXT_HTTP_RESPONSE_404; + case 405: return TXT_HTTP_RESPONSE_405; + case 406: return TXT_HTTP_RESPONSE_406; + case 407: return TXT_HTTP_RESPONSE_407; + case 408: return TXT_HTTP_RESPONSE_408; + case 409: return TXT_HTTP_RESPONSE_409; + case 410: return TXT_HTTP_RESPONSE_410; + case 411: return TXT_HTTP_RESPONSE_411; + case 412: return TXT_HTTP_RESPONSE_412; + case 413: return TXT_HTTP_RESPONSE_413; + case 414: return TXT_HTTP_RESPONSE_414; + case 415: return TXT_HTTP_RESPONSE_415; + case 416: return TXT_HTTP_RESPONSE_416; + case 417: return TXT_HTTP_RESPONSE_417; + case 418: return TXT_HTTP_RESPONSE_418; + case 421: return TXT_HTTP_RESPONSE_421; + case 422: return TXT_HTTP_RESPONSE_422; + case 423: return TXT_HTTP_RESPONSE_423; + case 424: return TXT_HTTP_RESPONSE_424; + case 425: return TXT_HTTP_RESPONSE_425; + case 426: return TXT_HTTP_RESPONSE_426; + case 428: return TXT_HTTP_RESPONSE_428; + case 429: return TXT_HTTP_RESPONSE_429; + case 431: return TXT_HTTP_RESPONSE_431; + case 451: return TXT_HTTP_RESPONSE_451; // 5xx - Server Error Responses - case 500: return "Internal Server Error"; - case 501: return "Not Implemented"; - case 502: return "Bad Gateway"; - case 503: return "Service Unavailable"; - case 504: return "Gateway Timeout"; - case 505: return "HTTP Version Not Supported"; - case 506: return "Variant Also Negotiates"; - case 507: return "Insufficient Storage"; - case 508: return "Loop Detected"; - case 510: return "Not Extended"; - case 511: return "Network Authentication Required"; + case 500: return TXT_HTTP_RESPONSE_500; + case 501: return TXT_HTTP_RESPONSE_501; + case 502: return TXT_HTTP_RESPONSE_502; + case 503: return TXT_HTTP_RESPONSE_503; + case 504: return TXT_HTTP_RESPONSE_504; + case 505: return TXT_HTTP_RESPONSE_505; + case 506: return TXT_HTTP_RESPONSE_506; + case 507: return TXT_HTTP_RESPONSE_507; + case 508: return TXT_HTTP_RESPONSE_508; + case 510: return TXT_HTTP_RESPONSE_510; + case 511: return TXT_HTTP_RESPONSE_511; // ArduinoJson DeserializationError codes - case -100 - (DeserializationError::Code::Ok): return "Deserialization OK"; - case -100 - (DeserializationError::Code::EmptyInput): return "Deserialization EmptyInput"; - case -100 - (DeserializationError::Code::IncompleteInput): return "Deserialization IncompleteInput"; - case -100 - (DeserializationError::Code::InvalidInput): return "Deserialization InvalidInput"; - case -100 - (DeserializationError::Code::NoMemory): return "Deserialization NoMemory"; - case -100 - (DeserializationError::Code::TooDeep): return "Deserialization TooDeep"; + case -100 - (DeserializationError::Code::Ok): return TXT_DESERIALIZATION_ERROR_OK; + case -100 - (DeserializationError::Code::EmptyInput): return TXT_DESERIALIZATION_ERROR_EMPTY_INPUT; + case -100 - (DeserializationError::Code::IncompleteInput): return TXT_DESERIALIZATION_ERROR_INCOMPLETE_INPUT; + case -100 - (DeserializationError::Code::InvalidInput): return TXT_DESERIALIZATION_ERROR_INVALID_INPUT; + case -100 - (DeserializationError::Code::NoMemory): return TXT_DESERIALIZATION_ERROR_NO_MEMORY; + case -100 - (DeserializationError::Code::TooDeep): return TXT_DESERIALIZATION_ERROR_TOO_DEEP; default: return ""; } diff --git a/platformio/src/locales/locale_de_DE.inc b/platformio/src/locales/locale_de_DE.inc index 3dcd92b03..83861d478 100644 --- a/platformio/src/locales/locale_de_DE.inc +++ b/platformio/src/locales/locale_de_DE.inc @@ -210,18 +210,6 @@ const std::vector TERM_DUST = const std::vector TERM_STRONG_WIND = {"wind"}; -// COMPASS POINT -const char *COMPASS_POINT_NOTATION[32] = { -// 0° 11.25° 22.5° 33.75° 45° 56.25° 67.5° 78.75° - "N", "NzO", "NNO", "NOzN", "NO", "NOzO", "ONO", "OzN", -// 90° 101.25° 112.5° 123.75° 135° 146.25° 157.5° 168.75° - "O", "OzS", "OSO", "SOzO", "SO", "SOzS", "SSO", "SzO", -// 180° 191.25° 202.5° 213.75° 225° 236.25° 247.5° 258.75° - "S", "SzW", "SSW", "SWzS", "SW", "SWzW", "WSW", "WzS", -// 270° 281.25° 292.5° 303.75° 315° 326.25° 337.5° 348.75° - "W", "WzN", "WNW", "NWzW", "NW", "NWzN", "NNW", "NzW", -}; - // AIR QUALITY INDEX extern "C" { const char *AUSTRALIA_AQI_TXT[6] = @@ -307,3 +295,104 @@ const char *UNITED_STATES_AQI_TXT[6] = }; } // end extern "C" +// COMPASS POINT +const char *COMPASS_POINT_NOTATION[32] = { +// 0° 11.25° 22.5° 33.75° 45° 56.25° 67.5° 78.75° + "N", "NzO", "NNO", "NOzN", "NO", "NOzO", "ONO", "OzN", +// 90° 101.25° 112.5° 123.75° 135° 146.25° 157.5° 168.75° + "O", "OzS", "OSO", "SOzO", "SO", "SOzS", "SSO", "SzO", +// 180° 191.25° 202.5° 213.75° 225° 236.25° 247.5° 258.75° + "S", "SzW", "SSW", "SWzS", "SW", "SWzW", "WSW", "WzS", +// 270° 281.25° 292.5° 303.75° 315° 326.25° 337.5° 348.75° + "W", "WzN", "WNW", "NWzW", "NW", "NWzN", "NNW", "NzW", +}; + +// HTTP CLIENT ERRORS +const char *TXT_HTTPC_ERROR_CONNECTION_REFUSED = "Connection Refused"; +const char *TXT_HTTPC_ERROR_SEND_HEADER_FAILED = "Send Header Failed"; +const char *TXT_HTTPC_ERROR_SEND_PAYLOAD_FAILED = "Send Payload Failed"; +const char *TXT_HTTPC_ERROR_NOT_CONNECTED = "Not Connected"; +const char *TXT_HTTPC_ERROR_CONNECTION_LOST = "Connection Lost"; +const char *TXT_HTTPC_ERROR_NO_STREAM = "No Stream"; +const char *TXT_HTTPC_ERROR_NO_HTTP_SERVER = "No HTTP Server"; +const char *TXT_HTTPC_ERROR_TOO_LESS_RAM = "Too Less Ram"; +const char *TXT_HTTPC_ERROR_ENCODING = "Transfer-Encoding Not Supported"; +const char *TXT_HTTPC_ERROR_STREAM_WRITE = "Stream Write Error"; +const char *TXT_HTTPC_ERROR_READ_TIMEOUT = "Read Timeout"; + +// HTTP RESPONSE STATUS CODES +// 1xx - Informational Responses +const char *TXT_HTTP_RESPONSE_100 = "Continue"; +const char *TXT_HTTP_RESPONSE_101 = "Switching Protocols"; +const char *TXT_HTTP_RESPONSE_102 = "Processing"; +const char *TXT_HTTP_RESPONSE_103 = "Early Hints"; +// 2xx - Successful Responses +const char *TXT_HTTP_RESPONSE_200 = "OK"; +const char *TXT_HTTP_RESPONSE_201 = "Created"; +const char *TXT_HTTP_RESPONSE_202 = "Accepted"; +const char *TXT_HTTP_RESPONSE_203 = "Non-Authoritative Information"; +const char *TXT_HTTP_RESPONSE_204 = "No Content"; +const char *TXT_HTTP_RESPONSE_205 = "Reset Content"; +const char *TXT_HTTP_RESPONSE_206 = "Partial Content"; +const char *TXT_HTTP_RESPONSE_207 = "Multi-Status"; +const char *TXT_HTTP_RESPONSE_208 = "Already Reported"; +const char *TXT_HTTP_RESPONSE_226 = "IM Used"; +// 3xx - Redirection Responses +const char *TXT_HTTP_RESPONSE_300 = "Multiple Choices"; +const char *TXT_HTTP_RESPONSE_301 = "Moved Permanently"; +const char *TXT_HTTP_RESPONSE_302 = "Found"; +const char *TXT_HTTP_RESPONSE_303 = "See Other"; +const char *TXT_HTTP_RESPONSE_304 = "Not Modified"; +const char *TXT_HTTP_RESPONSE_305 = "Use Proxy"; +const char *TXT_HTTP_RESPONSE_307 = "Temporary Redirect"; +const char *TXT_HTTP_RESPONSE_308 = "Permanent Redirect"; +// 4xx - Client Error Responses +const char *TXT_HTTP_RESPONSE_400 = "Bad Request"; +const char *TXT_HTTP_RESPONSE_401 = "Unauthorized"; +const char *TXT_HTTP_RESPONSE_402 = "Payment Required"; +const char *TXT_HTTP_RESPONSE_403 = "Forbidden"; +const char *TXT_HTTP_RESPONSE_404 = "Not Found"; +const char *TXT_HTTP_RESPONSE_405 = "Method Not Allowed"; +const char *TXT_HTTP_RESPONSE_406 = "Not Acceptable"; +const char *TXT_HTTP_RESPONSE_407 = "Proxy Authentication Required"; +const char *TXT_HTTP_RESPONSE_408 = "Request Timeout"; +const char *TXT_HTTP_RESPONSE_409 = "Conflict"; +const char *TXT_HTTP_RESPONSE_410 = "Gone"; +const char *TXT_HTTP_RESPONSE_411 = "Length Required"; +const char *TXT_HTTP_RESPONSE_412 = "Precondition Failed"; +const char *TXT_HTTP_RESPONSE_413 = "Content Too Large"; +const char *TXT_HTTP_RESPONSE_414 = "URI Too Long"; +const char *TXT_HTTP_RESPONSE_415 = "Unsupported Media Type"; +const char *TXT_HTTP_RESPONSE_416 = "Range Not Satisfiable"; +const char *TXT_HTTP_RESPONSE_417 = "Expectation Failed"; +const char *TXT_HTTP_RESPONSE_418 = "I'm a teapot"; +const char *TXT_HTTP_RESPONSE_421 = "Misdirected Request"; +const char *TXT_HTTP_RESPONSE_422 = "Unprocessable Content"; +const char *TXT_HTTP_RESPONSE_423 = "Locked"; +const char *TXT_HTTP_RESPONSE_424 = "Failed Dependency"; +const char *TXT_HTTP_RESPONSE_425 = "Too Early"; +const char *TXT_HTTP_RESPONSE_426 = "Upgrade Required"; +const char *TXT_HTTP_RESPONSE_428 = "Precondition Required"; +const char *TXT_HTTP_RESPONSE_429 = "Too Many Requests"; +const char *TXT_HTTP_RESPONSE_431 = "Request Header Fields Too Large"; +const char *TXT_HTTP_RESPONSE_451 = "Unavailable For Legal Reasons"; +// 5xx - Server Error Responses +const char *TXT_HTTP_RESPONSE_500 = "Internal Server Error"; +const char *TXT_HTTP_RESPONSE_501 = "Not Implemented"; +const char *TXT_HTTP_RESPONSE_502 = "Bad Gateway"; +const char *TXT_HTTP_RESPONSE_503 = "Service Unavailable"; +const char *TXT_HTTP_RESPONSE_504 = "Gateway Timeout"; +const char *TXT_HTTP_RESPONSE_505 = "HTTP Version Not Supported"; +const char *TXT_HTTP_RESPONSE_506 = "Variant Also Negotiates"; +const char *TXT_HTTP_RESPONSE_507 = "Insufficient Storage"; +const char *TXT_HTTP_RESPONSE_508 = "Loop Detected"; +const char *TXT_HTTP_RESPONSE_510 = "Not Extended"; +const char *TXT_HTTP_RESPONSE_511 = "Network Authentication Required"; + +// ARDUINOJSON DESERIALIZATION ERROR CODES +const char *TXT_DESERIALIZATION_ERROR_OK = "Deserialization OK"; +const char *TXT_DESERIALIZATION_ERROR_EMPTY_INPUT = "Deserialization Empty Input"; +const char *TXT_DESERIALIZATION_ERROR_INCOMPLETE_INPUT = "Deserialization Incomplete Input"; +const char *TXT_DESERIALIZATION_ERROR_INVALID_INPUT = "Deserialization Invalid Input"; +const char *TXT_DESERIALIZATION_ERROR_NO_MEMORY = "Deserialization No Memory"; +const char *TXT_DESERIALIZATION_ERROR_TOO_DEEP = "Deserialization Too Deep"; diff --git a/platformio/src/locales/locale_en_GB.inc b/platformio/src/locales/locale_en_GB.inc index e45a057b7..edd04fed8 100644 --- a/platformio/src/locales/locale_en_GB.inc +++ b/platformio/src/locales/locale_en_GB.inc @@ -202,18 +202,6 @@ const std::vector TERM_DUST = const std::vector TERM_STRONG_WIND = {"wind"}; -// COMPASS POINT -const char *COMPASS_POINT_NOTATION[32] = { -// 0° 11.25° 22.5° 33.75° 45° 56.25° 67.5° 78.75° - "N", "NbE", "NNE", "NEbN", "NE", "NEbE", "ENE", "EbN", -// 90° 101.25° 112.5° 123.75° 135° 146.25° 157.5° 168.75° - "E", "EbS", "ESE", "SEbE", "SE", "SEbS", "SSE", "SbE", -// 180° 191.25° 202.5° 213.75° 225° 236.25° 247.5° 258.75° - "S", "SbW", "SSW", "SWbS", "SW", "SWbW", "WSW", "WbS", -// 270° 281.25° 292.5° 303.75° 315° 326.25° 337.5° 348.75° - "W", "WbN", "WNW", "NWbW", "NW", "NWbN", "NNW", "NbW", -}; - // AIR QUALITY INDEX extern "C" { const char *AUSTRALIA_AQI_TXT[6] = @@ -299,3 +287,104 @@ const char *UNITED_STATES_AQI_TXT[6] = }; } // end extern "C" +// COMPASS POINT +const char *COMPASS_POINT_NOTATION[32] = { +// 0° 11.25° 22.5° 33.75° 45° 56.25° 67.5° 78.75° + "N", "NbE", "NNE", "NEbN", "NE", "NEbE", "ENE", "EbN", +// 90° 101.25° 112.5° 123.75° 135° 146.25° 157.5° 168.75° + "E", "EbS", "ESE", "SEbE", "SE", "SEbS", "SSE", "SbE", +// 180° 191.25° 202.5° 213.75° 225° 236.25° 247.5° 258.75° + "S", "SbW", "SSW", "SWbS", "SW", "SWbW", "WSW", "WbS", +// 270° 281.25° 292.5° 303.75° 315° 326.25° 337.5° 348.75° + "W", "WbN", "WNW", "NWbW", "NW", "NWbN", "NNW", "NbW", +}; + +// HTTP CLIENT ERRORS +const char *TXT_HTTPC_ERROR_CONNECTION_REFUSED = "Connection Refused"; +const char *TXT_HTTPC_ERROR_SEND_HEADER_FAILED = "Send Header Failed"; +const char *TXT_HTTPC_ERROR_SEND_PAYLOAD_FAILED = "Send Payload Failed"; +const char *TXT_HTTPC_ERROR_NOT_CONNECTED = "Not Connected"; +const char *TXT_HTTPC_ERROR_CONNECTION_LOST = "Connection Lost"; +const char *TXT_HTTPC_ERROR_NO_STREAM = "No Stream"; +const char *TXT_HTTPC_ERROR_NO_HTTP_SERVER = "No HTTP Server"; +const char *TXT_HTTPC_ERROR_TOO_LESS_RAM = "Too Less Ram"; +const char *TXT_HTTPC_ERROR_ENCODING = "Transfer-Encoding Not Supported"; +const char *TXT_HTTPC_ERROR_STREAM_WRITE = "Stream Write Error"; +const char *TXT_HTTPC_ERROR_READ_TIMEOUT = "Read Timeout"; + +// HTTP RESPONSE STATUS CODES +// 1xx - Informational Responses +const char *TXT_HTTP_RESPONSE_100 = "Continue"; +const char *TXT_HTTP_RESPONSE_101 = "Switching Protocols"; +const char *TXT_HTTP_RESPONSE_102 = "Processing"; +const char *TXT_HTTP_RESPONSE_103 = "Early Hints"; +// 2xx - Successful Responses +const char *TXT_HTTP_RESPONSE_200 = "OK"; +const char *TXT_HTTP_RESPONSE_201 = "Created"; +const char *TXT_HTTP_RESPONSE_202 = "Accepted"; +const char *TXT_HTTP_RESPONSE_203 = "Non-Authoritative Information"; +const char *TXT_HTTP_RESPONSE_204 = "No Content"; +const char *TXT_HTTP_RESPONSE_205 = "Reset Content"; +const char *TXT_HTTP_RESPONSE_206 = "Partial Content"; +const char *TXT_HTTP_RESPONSE_207 = "Multi-Status"; +const char *TXT_HTTP_RESPONSE_208 = "Already Reported"; +const char *TXT_HTTP_RESPONSE_226 = "IM Used"; +// 3xx - Redirection Responses +const char *TXT_HTTP_RESPONSE_300 = "Multiple Choices"; +const char *TXT_HTTP_RESPONSE_301 = "Moved Permanently"; +const char *TXT_HTTP_RESPONSE_302 = "Found"; +const char *TXT_HTTP_RESPONSE_303 = "See Other"; +const char *TXT_HTTP_RESPONSE_304 = "Not Modified"; +const char *TXT_HTTP_RESPONSE_305 = "Use Proxy"; +const char *TXT_HTTP_RESPONSE_307 = "Temporary Redirect"; +const char *TXT_HTTP_RESPONSE_308 = "Permanent Redirect"; +// 4xx - Client Error Responses +const char *TXT_HTTP_RESPONSE_400 = "Bad Request"; +const char *TXT_HTTP_RESPONSE_401 = "Unauthorized"; +const char *TXT_HTTP_RESPONSE_402 = "Payment Required"; +const char *TXT_HTTP_RESPONSE_403 = "Forbidden"; +const char *TXT_HTTP_RESPONSE_404 = "Not Found"; +const char *TXT_HTTP_RESPONSE_405 = "Method Not Allowed"; +const char *TXT_HTTP_RESPONSE_406 = "Not Acceptable"; +const char *TXT_HTTP_RESPONSE_407 = "Proxy Authentication Required"; +const char *TXT_HTTP_RESPONSE_408 = "Request Timeout"; +const char *TXT_HTTP_RESPONSE_409 = "Conflict"; +const char *TXT_HTTP_RESPONSE_410 = "Gone"; +const char *TXT_HTTP_RESPONSE_411 = "Length Required"; +const char *TXT_HTTP_RESPONSE_412 = "Precondition Failed"; +const char *TXT_HTTP_RESPONSE_413 = "Content Too Large"; +const char *TXT_HTTP_RESPONSE_414 = "URI Too Long"; +const char *TXT_HTTP_RESPONSE_415 = "Unsupported Media Type"; +const char *TXT_HTTP_RESPONSE_416 = "Range Not Satisfiable"; +const char *TXT_HTTP_RESPONSE_417 = "Expectation Failed"; +const char *TXT_HTTP_RESPONSE_418 = "I'm a teapot"; +const char *TXT_HTTP_RESPONSE_421 = "Misdirected Request"; +const char *TXT_HTTP_RESPONSE_422 = "Unprocessable Content"; +const char *TXT_HTTP_RESPONSE_423 = "Locked"; +const char *TXT_HTTP_RESPONSE_424 = "Failed Dependency"; +const char *TXT_HTTP_RESPONSE_425 = "Too Early"; +const char *TXT_HTTP_RESPONSE_426 = "Upgrade Required"; +const char *TXT_HTTP_RESPONSE_428 = "Precondition Required"; +const char *TXT_HTTP_RESPONSE_429 = "Too Many Requests"; +const char *TXT_HTTP_RESPONSE_431 = "Request Header Fields Too Large"; +const char *TXT_HTTP_RESPONSE_451 = "Unavailable For Legal Reasons"; +// 5xx - Server Error Responses +const char *TXT_HTTP_RESPONSE_500 = "Internal Server Error"; +const char *TXT_HTTP_RESPONSE_501 = "Not Implemented"; +const char *TXT_HTTP_RESPONSE_502 = "Bad Gateway"; +const char *TXT_HTTP_RESPONSE_503 = "Service Unavailable"; +const char *TXT_HTTP_RESPONSE_504 = "Gateway Timeout"; +const char *TXT_HTTP_RESPONSE_505 = "HTTP Version Not Supported"; +const char *TXT_HTTP_RESPONSE_506 = "Variant Also Negotiates"; +const char *TXT_HTTP_RESPONSE_507 = "Insufficient Storage"; +const char *TXT_HTTP_RESPONSE_508 = "Loop Detected"; +const char *TXT_HTTP_RESPONSE_510 = "Not Extended"; +const char *TXT_HTTP_RESPONSE_511 = "Network Authentication Required"; + +// ARDUINOJSON DESERIALIZATION ERROR CODES +const char *TXT_DESERIALIZATION_ERROR_OK = "Deserialization OK"; +const char *TXT_DESERIALIZATION_ERROR_EMPTY_INPUT = "Deserialization Empty Input"; +const char *TXT_DESERIALIZATION_ERROR_INCOMPLETE_INPUT = "Deserialization Incomplete Input"; +const char *TXT_DESERIALIZATION_ERROR_INVALID_INPUT = "Deserialization Invalid Input"; +const char *TXT_DESERIALIZATION_ERROR_NO_MEMORY = "Deserialization No Memory"; +const char *TXT_DESERIALIZATION_ERROR_TOO_DEEP = "Deserialization Too Deep"; diff --git a/platformio/src/locales/locale_en_US.inc b/platformio/src/locales/locale_en_US.inc index eb02e1fbb..27416701b 100644 --- a/platformio/src/locales/locale_en_US.inc +++ b/platformio/src/locales/locale_en_US.inc @@ -202,18 +202,6 @@ const std::vector TERM_DUST = const std::vector TERM_STRONG_WIND = {"wind"}; -// COMPASS POINT -const char *COMPASS_POINT_NOTATION[32] = { -// 0° 11.25° 22.5° 33.75° 45° 56.25° 67.5° 78.75° - "N", "NbE", "NNE", "NEbN", "NE", "NEbE", "ENE", "EbN", -// 90° 101.25° 112.5° 123.75° 135° 146.25° 157.5° 168.75° - "E", "EbS", "ESE", "SEbE", "SE", "SEbS", "SSE", "SbE", -// 180° 191.25° 202.5° 213.75° 225° 236.25° 247.5° 258.75° - "S", "SbW", "SSW", "SWbS", "SW", "SWbW", "WSW", "WbS", -// 270° 281.25° 292.5° 303.75° 315° 326.25° 337.5° 348.75° - "W", "WbN", "WNW", "NWbW", "NW", "NWbN", "NNW", "NbW", -}; - // AIR QUALITY INDEX extern "C" { const char *AUSTRALIA_AQI_TXT[6] = @@ -299,3 +287,104 @@ const char *UNITED_STATES_AQI_TXT[6] = }; } // end extern "C" +// COMPASS POINT +const char *COMPASS_POINT_NOTATION[32] = { +// 0° 11.25° 22.5° 33.75° 45° 56.25° 67.5° 78.75° + "N", "NbE", "NNE", "NEbN", "NE", "NEbE", "ENE", "EbN", +// 90° 101.25° 112.5° 123.75° 135° 146.25° 157.5° 168.75° + "E", "EbS", "ESE", "SEbE", "SE", "SEbS", "SSE", "SbE", +// 180° 191.25° 202.5° 213.75° 225° 236.25° 247.5° 258.75° + "S", "SbW", "SSW", "SWbS", "SW", "SWbW", "WSW", "WbS", +// 270° 281.25° 292.5° 303.75° 315° 326.25° 337.5° 348.75° + "W", "WbN", "WNW", "NWbW", "NW", "NWbN", "NNW", "NbW", +}; + +// HTTP CLIENT ERRORS +const char *TXT_HTTPC_ERROR_CONNECTION_REFUSED = "Connection Refused"; +const char *TXT_HTTPC_ERROR_SEND_HEADER_FAILED = "Send Header Failed"; +const char *TXT_HTTPC_ERROR_SEND_PAYLOAD_FAILED = "Send Payload Failed"; +const char *TXT_HTTPC_ERROR_NOT_CONNECTED = "Not Connected"; +const char *TXT_HTTPC_ERROR_CONNECTION_LOST = "Connection Lost"; +const char *TXT_HTTPC_ERROR_NO_STREAM = "No Stream"; +const char *TXT_HTTPC_ERROR_NO_HTTP_SERVER = "No HTTP Server"; +const char *TXT_HTTPC_ERROR_TOO_LESS_RAM = "Too Less Ram"; +const char *TXT_HTTPC_ERROR_ENCODING = "Transfer-Encoding Not Supported"; +const char *TXT_HTTPC_ERROR_STREAM_WRITE = "Stream Write Error"; +const char *TXT_HTTPC_ERROR_READ_TIMEOUT = "Read Timeout"; + +// HTTP RESPONSE STATUS CODES +// 1xx - Informational Responses +const char *TXT_HTTP_RESPONSE_100 = "Continue"; +const char *TXT_HTTP_RESPONSE_101 = "Switching Protocols"; +const char *TXT_HTTP_RESPONSE_102 = "Processing"; +const char *TXT_HTTP_RESPONSE_103 = "Early Hints"; +// 2xx - Successful Responses +const char *TXT_HTTP_RESPONSE_200 = "OK"; +const char *TXT_HTTP_RESPONSE_201 = "Created"; +const char *TXT_HTTP_RESPONSE_202 = "Accepted"; +const char *TXT_HTTP_RESPONSE_203 = "Non-Authoritative Information"; +const char *TXT_HTTP_RESPONSE_204 = "No Content"; +const char *TXT_HTTP_RESPONSE_205 = "Reset Content"; +const char *TXT_HTTP_RESPONSE_206 = "Partial Content"; +const char *TXT_HTTP_RESPONSE_207 = "Multi-Status"; +const char *TXT_HTTP_RESPONSE_208 = "Already Reported"; +const char *TXT_HTTP_RESPONSE_226 = "IM Used"; +// 3xx - Redirection Responses +const char *TXT_HTTP_RESPONSE_300 = "Multiple Choices"; +const char *TXT_HTTP_RESPONSE_301 = "Moved Permanently"; +const char *TXT_HTTP_RESPONSE_302 = "Found"; +const char *TXT_HTTP_RESPONSE_303 = "See Other"; +const char *TXT_HTTP_RESPONSE_304 = "Not Modified"; +const char *TXT_HTTP_RESPONSE_305 = "Use Proxy"; +const char *TXT_HTTP_RESPONSE_307 = "Temporary Redirect"; +const char *TXT_HTTP_RESPONSE_308 = "Permanent Redirect"; +// 4xx - Client Error Responses +const char *TXT_HTTP_RESPONSE_400 = "Bad Request"; +const char *TXT_HTTP_RESPONSE_401 = "Unauthorized"; +const char *TXT_HTTP_RESPONSE_402 = "Payment Required"; +const char *TXT_HTTP_RESPONSE_403 = "Forbidden"; +const char *TXT_HTTP_RESPONSE_404 = "Not Found"; +const char *TXT_HTTP_RESPONSE_405 = "Method Not Allowed"; +const char *TXT_HTTP_RESPONSE_406 = "Not Acceptable"; +const char *TXT_HTTP_RESPONSE_407 = "Proxy Authentication Required"; +const char *TXT_HTTP_RESPONSE_408 = "Request Timeout"; +const char *TXT_HTTP_RESPONSE_409 = "Conflict"; +const char *TXT_HTTP_RESPONSE_410 = "Gone"; +const char *TXT_HTTP_RESPONSE_411 = "Length Required"; +const char *TXT_HTTP_RESPONSE_412 = "Precondition Failed"; +const char *TXT_HTTP_RESPONSE_413 = "Content Too Large"; +const char *TXT_HTTP_RESPONSE_414 = "URI Too Long"; +const char *TXT_HTTP_RESPONSE_415 = "Unsupported Media Type"; +const char *TXT_HTTP_RESPONSE_416 = "Range Not Satisfiable"; +const char *TXT_HTTP_RESPONSE_417 = "Expectation Failed"; +const char *TXT_HTTP_RESPONSE_418 = "I'm a teapot"; +const char *TXT_HTTP_RESPONSE_421 = "Misdirected Request"; +const char *TXT_HTTP_RESPONSE_422 = "Unprocessable Content"; +const char *TXT_HTTP_RESPONSE_423 = "Locked"; +const char *TXT_HTTP_RESPONSE_424 = "Failed Dependency"; +const char *TXT_HTTP_RESPONSE_425 = "Too Early"; +const char *TXT_HTTP_RESPONSE_426 = "Upgrade Required"; +const char *TXT_HTTP_RESPONSE_428 = "Precondition Required"; +const char *TXT_HTTP_RESPONSE_429 = "Too Many Requests"; +const char *TXT_HTTP_RESPONSE_431 = "Request Header Fields Too Large"; +const char *TXT_HTTP_RESPONSE_451 = "Unavailable For Legal Reasons"; +// 5xx - Server Error Responses +const char *TXT_HTTP_RESPONSE_500 = "Internal Server Error"; +const char *TXT_HTTP_RESPONSE_501 = "Not Implemented"; +const char *TXT_HTTP_RESPONSE_502 = "Bad Gateway"; +const char *TXT_HTTP_RESPONSE_503 = "Service Unavailable"; +const char *TXT_HTTP_RESPONSE_504 = "Gateway Timeout"; +const char *TXT_HTTP_RESPONSE_505 = "HTTP Version Not Supported"; +const char *TXT_HTTP_RESPONSE_506 = "Variant Also Negotiates"; +const char *TXT_HTTP_RESPONSE_507 = "Insufficient Storage"; +const char *TXT_HTTP_RESPONSE_508 = "Loop Detected"; +const char *TXT_HTTP_RESPONSE_510 = "Not Extended"; +const char *TXT_HTTP_RESPONSE_511 = "Network Authentication Required"; + +// ARDUINOJSON DESERIALIZATION ERROR CODES +const char *TXT_DESERIALIZATION_ERROR_OK = "Deserialization OK"; +const char *TXT_DESERIALIZATION_ERROR_EMPTY_INPUT = "Deserialization Empty Input"; +const char *TXT_DESERIALIZATION_ERROR_INCOMPLETE_INPUT = "Deserialization Incomplete Input"; +const char *TXT_DESERIALIZATION_ERROR_INVALID_INPUT = "Deserialization Invalid Input"; +const char *TXT_DESERIALIZATION_ERROR_NO_MEMORY = "Deserialization No Memory"; +const char *TXT_DESERIALIZATION_ERROR_TOO_DEEP = "Deserialization Too Deep"; diff --git a/platformio/src/locales/locale_fr_FR.inc b/platformio/src/locales/locale_fr_FR.inc index ad587349f..805cc8c28 100644 --- a/platformio/src/locales/locale_fr_FR.inc +++ b/platformio/src/locales/locale_fr_FR.inc @@ -210,18 +210,6 @@ const std::vector TERM_DUST = const std::vector TERM_STRONG_WIND = {"wind"}; -// COMPASS POINT -const char *COMPASS_POINT_NOTATION[32] = { -// 0° 11.25° 22.5° 33.75° 45° 56.25° 67.5° 78.75° - "N", "NbE", "NNE", "NEbN", "NE", "NEbE", "ENE", "EbN", -// 90° 101.25° 112.5° 123.75° 135° 146.25° 157.5° 168.75° - "E", "EbS", "ESE", "SEbE", "SE", "SEbS", "SSE", "SbE", -// 180° 191.25° 202.5° 213.75° 225° 236.25° 247.5° 258.75° - "S", "SbO", "SSO", "SObS", "SO", "SObO", "OSO", "ObS", -// 270° 281.25° 292.5° 303.75° 315° 326.25° 337.5° 348.75° - "O", "ObN", "ONO", "NObO", "NO", "NObN", "NNO", "NbO", -}; - // AIR QUALITY INDEX extern "C" { const char *AUSTRALIA_AQI_TXT[6] = @@ -307,3 +295,104 @@ const char *UNITED_STATES_AQI_TXT[6] = }; } // end extern "C" +// COMPASS POINT +const char *COMPASS_POINT_NOTATION[32] = { +// 0° 11.25° 22.5° 33.75° 45° 56.25° 67.5° 78.75° + "N", "NbE", "NNE", "NEbN", "NE", "NEbE", "ENE", "EbN", +// 90° 101.25° 112.5° 123.75° 135° 146.25° 157.5° 168.75° + "E", "EbS", "ESE", "SEbE", "SE", "SEbS", "SSE", "SbE", +// 180° 191.25° 202.5° 213.75° 225° 236.25° 247.5° 258.75° + "S", "SbO", "SSO", "SObS", "SO", "SObO", "OSO", "ObS", +// 270° 281.25° 292.5° 303.75° 315° 326.25° 337.5° 348.75° + "O", "ObN", "ONO", "NObO", "NO", "NObN", "NNO", "NbO", +}; + +// HTTP CLIENT ERRORS +const char *TXT_HTTPC_ERROR_CONNECTION_REFUSED = "Connection Refused"; +const char *TXT_HTTPC_ERROR_SEND_HEADER_FAILED = "Send Header Failed"; +const char *TXT_HTTPC_ERROR_SEND_PAYLOAD_FAILED = "Send Payload Failed"; +const char *TXT_HTTPC_ERROR_NOT_CONNECTED = "Not Connected"; +const char *TXT_HTTPC_ERROR_CONNECTION_LOST = "Connection Lost"; +const char *TXT_HTTPC_ERROR_NO_STREAM = "No Stream"; +const char *TXT_HTTPC_ERROR_NO_HTTP_SERVER = "No HTTP Server"; +const char *TXT_HTTPC_ERROR_TOO_LESS_RAM = "Too Less Ram"; +const char *TXT_HTTPC_ERROR_ENCODING = "Transfer-Encoding Not Supported"; +const char *TXT_HTTPC_ERROR_STREAM_WRITE = "Stream Write Error"; +const char *TXT_HTTPC_ERROR_READ_TIMEOUT = "Read Timeout"; + +// HTTP RESPONSE STATUS CODES +// 1xx - Informational Responses +const char *TXT_HTTP_RESPONSE_100 = "Continue"; +const char *TXT_HTTP_RESPONSE_101 = "Switching Protocols"; +const char *TXT_HTTP_RESPONSE_102 = "Processing"; +const char *TXT_HTTP_RESPONSE_103 = "Early Hints"; +// 2xx - Successful Responses +const char *TXT_HTTP_RESPONSE_200 = "OK"; +const char *TXT_HTTP_RESPONSE_201 = "Created"; +const char *TXT_HTTP_RESPONSE_202 = "Accepted"; +const char *TXT_HTTP_RESPONSE_203 = "Non-Authoritative Information"; +const char *TXT_HTTP_RESPONSE_204 = "No Content"; +const char *TXT_HTTP_RESPONSE_205 = "Reset Content"; +const char *TXT_HTTP_RESPONSE_206 = "Partial Content"; +const char *TXT_HTTP_RESPONSE_207 = "Multi-Status"; +const char *TXT_HTTP_RESPONSE_208 = "Already Reported"; +const char *TXT_HTTP_RESPONSE_226 = "IM Used"; +// 3xx - Redirection Responses +const char *TXT_HTTP_RESPONSE_300 = "Multiple Choices"; +const char *TXT_HTTP_RESPONSE_301 = "Moved Permanently"; +const char *TXT_HTTP_RESPONSE_302 = "Found"; +const char *TXT_HTTP_RESPONSE_303 = "See Other"; +const char *TXT_HTTP_RESPONSE_304 = "Not Modified"; +const char *TXT_HTTP_RESPONSE_305 = "Use Proxy"; +const char *TXT_HTTP_RESPONSE_307 = "Temporary Redirect"; +const char *TXT_HTTP_RESPONSE_308 = "Permanent Redirect"; +// 4xx - Client Error Responses +const char *TXT_HTTP_RESPONSE_400 = "Bad Request"; +const char *TXT_HTTP_RESPONSE_401 = "Unauthorized"; +const char *TXT_HTTP_RESPONSE_402 = "Payment Required"; +const char *TXT_HTTP_RESPONSE_403 = "Forbidden"; +const char *TXT_HTTP_RESPONSE_404 = "Not Found"; +const char *TXT_HTTP_RESPONSE_405 = "Method Not Allowed"; +const char *TXT_HTTP_RESPONSE_406 = "Not Acceptable"; +const char *TXT_HTTP_RESPONSE_407 = "Proxy Authentication Required"; +const char *TXT_HTTP_RESPONSE_408 = "Request Timeout"; +const char *TXT_HTTP_RESPONSE_409 = "Conflict"; +const char *TXT_HTTP_RESPONSE_410 = "Gone"; +const char *TXT_HTTP_RESPONSE_411 = "Length Required"; +const char *TXT_HTTP_RESPONSE_412 = "Precondition Failed"; +const char *TXT_HTTP_RESPONSE_413 = "Content Too Large"; +const char *TXT_HTTP_RESPONSE_414 = "URI Too Long"; +const char *TXT_HTTP_RESPONSE_415 = "Unsupported Media Type"; +const char *TXT_HTTP_RESPONSE_416 = "Range Not Satisfiable"; +const char *TXT_HTTP_RESPONSE_417 = "Expectation Failed"; +const char *TXT_HTTP_RESPONSE_418 = "I'm a teapot"; +const char *TXT_HTTP_RESPONSE_421 = "Misdirected Request"; +const char *TXT_HTTP_RESPONSE_422 = "Unprocessable Content"; +const char *TXT_HTTP_RESPONSE_423 = "Locked"; +const char *TXT_HTTP_RESPONSE_424 = "Failed Dependency"; +const char *TXT_HTTP_RESPONSE_425 = "Too Early"; +const char *TXT_HTTP_RESPONSE_426 = "Upgrade Required"; +const char *TXT_HTTP_RESPONSE_428 = "Precondition Required"; +const char *TXT_HTTP_RESPONSE_429 = "Too Many Requests"; +const char *TXT_HTTP_RESPONSE_431 = "Request Header Fields Too Large"; +const char *TXT_HTTP_RESPONSE_451 = "Unavailable For Legal Reasons"; +// 5xx - Server Error Responses +const char *TXT_HTTP_RESPONSE_500 = "Internal Server Error"; +const char *TXT_HTTP_RESPONSE_501 = "Not Implemented"; +const char *TXT_HTTP_RESPONSE_502 = "Bad Gateway"; +const char *TXT_HTTP_RESPONSE_503 = "Service Unavailable"; +const char *TXT_HTTP_RESPONSE_504 = "Gateway Timeout"; +const char *TXT_HTTP_RESPONSE_505 = "HTTP Version Not Supported"; +const char *TXT_HTTP_RESPONSE_506 = "Variant Also Negotiates"; +const char *TXT_HTTP_RESPONSE_507 = "Insufficient Storage"; +const char *TXT_HTTP_RESPONSE_508 = "Loop Detected"; +const char *TXT_HTTP_RESPONSE_510 = "Not Extended"; +const char *TXT_HTTP_RESPONSE_511 = "Network Authentication Required"; + +// ARDUINOJSON DESERIALIZATION ERROR CODES +const char *TXT_DESERIALIZATION_ERROR_OK = "Deserialization OK"; +const char *TXT_DESERIALIZATION_ERROR_EMPTY_INPUT = "Deserialization Empty Input"; +const char *TXT_DESERIALIZATION_ERROR_INCOMPLETE_INPUT = "Deserialization Incomplete Input"; +const char *TXT_DESERIALIZATION_ERROR_INVALID_INPUT = "Deserialization Invalid Input"; +const char *TXT_DESERIALIZATION_ERROR_NO_MEMORY = "Deserialization No Memory"; +const char *TXT_DESERIALIZATION_ERROR_TOO_DEEP = "Deserialization Too Deep"; diff --git a/platformio/src/locales/locale_nl_BE.inc b/platformio/src/locales/locale_nl_BE.inc index 1bd7ce62d..18b79d9c6 100644 --- a/platformio/src/locales/locale_nl_BE.inc +++ b/platformio/src/locales/locale_nl_BE.inc @@ -209,18 +209,6 @@ const std::vector TERM_DUST = const std::vector TERM_STRONG_WIND = {"wind"}; -// COMPASS POINT -const char *COMPASS_POINT_NOTATION[32] = { -// 0° 11.25° 22.5° 33.75° 45° 56.25° 67.5° 78.75° - "N", "NbO", "NNO", "NObN", "NO", "NObO", "ONO", "ObN", -// 90° 101.25° 112.5° 123.75° 135° 146.25° 157.5° 168.75° - "O", "ObZ", "OZO", "ZObO", "ZO", "ZObZ", "ZZO", "ZbO", -// 180° 191.25° 202.5° 213.75° 225° 236.25° 247.5° 258.75° - "Z", "ZbW", "ZZW", "ZWbZ", "ZW", "ZWbW", "WZW", "WbZ", -// 270° 281.25° 292.5° 303.75° 315° 326.25° 337.5° 348.75° - "W", "WbN", "WNW", "NWbW", "NW", "NWbN", "NNW", "NbW", -}; - // AIR QUALITY INDEX extern "C" { const char *AUSTRALIA_AQI_TXT[6] = @@ -306,3 +294,104 @@ const char *UNITED_STATES_AQI_TXT[6] = }; } // end extern "C" +// COMPASS POINT +const char *COMPASS_POINT_NOTATION[32] = { +// 0° 11.25° 22.5° 33.75° 45° 56.25° 67.5° 78.75° + "N", "NbO", "NNO", "NObN", "NO", "NObO", "ONO", "ObN", +// 90° 101.25° 112.5° 123.75° 135° 146.25° 157.5° 168.75° + "O", "ObZ", "OZO", "ZObO", "ZO", "ZObZ", "ZZO", "ZbO", +// 180° 191.25° 202.5° 213.75° 225° 236.25° 247.5° 258.75° + "Z", "ZbW", "ZZW", "ZWbZ", "ZW", "ZWbW", "WZW", "WbZ", +// 270° 281.25° 292.5° 303.75° 315° 326.25° 337.5° 348.75° + "W", "WbN", "WNW", "NWbW", "NW", "NWbN", "NNW", "NbW", +}; + +// HTTP CLIENT ERRORS +const char *TXT_HTTPC_ERROR_CONNECTION_REFUSED = "Connection Refused"; +const char *TXT_HTTPC_ERROR_SEND_HEADER_FAILED = "Send Header Failed"; +const char *TXT_HTTPC_ERROR_SEND_PAYLOAD_FAILED = "Send Payload Failed"; +const char *TXT_HTTPC_ERROR_NOT_CONNECTED = "Not Connected"; +const char *TXT_HTTPC_ERROR_CONNECTION_LOST = "Connection Lost"; +const char *TXT_HTTPC_ERROR_NO_STREAM = "No Stream"; +const char *TXT_HTTPC_ERROR_NO_HTTP_SERVER = "No HTTP Server"; +const char *TXT_HTTPC_ERROR_TOO_LESS_RAM = "Too Less Ram"; +const char *TXT_HTTPC_ERROR_ENCODING = "Transfer-Encoding Not Supported"; +const char *TXT_HTTPC_ERROR_STREAM_WRITE = "Stream Write Error"; +const char *TXT_HTTPC_ERROR_READ_TIMEOUT = "Read Timeout"; + +// HTTP RESPONSE STATUS CODES +// 1xx - Informational Responses +const char *TXT_HTTP_RESPONSE_100 = "Continue"; +const char *TXT_HTTP_RESPONSE_101 = "Switching Protocols"; +const char *TXT_HTTP_RESPONSE_102 = "Processing"; +const char *TXT_HTTP_RESPONSE_103 = "Early Hints"; +// 2xx - Successful Responses +const char *TXT_HTTP_RESPONSE_200 = "OK"; +const char *TXT_HTTP_RESPONSE_201 = "Created"; +const char *TXT_HTTP_RESPONSE_202 = "Accepted"; +const char *TXT_HTTP_RESPONSE_203 = "Non-Authoritative Information"; +const char *TXT_HTTP_RESPONSE_204 = "No Content"; +const char *TXT_HTTP_RESPONSE_205 = "Reset Content"; +const char *TXT_HTTP_RESPONSE_206 = "Partial Content"; +const char *TXT_HTTP_RESPONSE_207 = "Multi-Status"; +const char *TXT_HTTP_RESPONSE_208 = "Already Reported"; +const char *TXT_HTTP_RESPONSE_226 = "IM Used"; +// 3xx - Redirection Responses +const char *TXT_HTTP_RESPONSE_300 = "Multiple Choices"; +const char *TXT_HTTP_RESPONSE_301 = "Moved Permanently"; +const char *TXT_HTTP_RESPONSE_302 = "Found"; +const char *TXT_HTTP_RESPONSE_303 = "See Other"; +const char *TXT_HTTP_RESPONSE_304 = "Not Modified"; +const char *TXT_HTTP_RESPONSE_305 = "Use Proxy"; +const char *TXT_HTTP_RESPONSE_307 = "Temporary Redirect"; +const char *TXT_HTTP_RESPONSE_308 = "Permanent Redirect"; +// 4xx - Client Error Responses +const char *TXT_HTTP_RESPONSE_400 = "Bad Request"; +const char *TXT_HTTP_RESPONSE_401 = "Unauthorized"; +const char *TXT_HTTP_RESPONSE_402 = "Payment Required"; +const char *TXT_HTTP_RESPONSE_403 = "Forbidden"; +const char *TXT_HTTP_RESPONSE_404 = "Not Found"; +const char *TXT_HTTP_RESPONSE_405 = "Method Not Allowed"; +const char *TXT_HTTP_RESPONSE_406 = "Not Acceptable"; +const char *TXT_HTTP_RESPONSE_407 = "Proxy Authentication Required"; +const char *TXT_HTTP_RESPONSE_408 = "Request Timeout"; +const char *TXT_HTTP_RESPONSE_409 = "Conflict"; +const char *TXT_HTTP_RESPONSE_410 = "Gone"; +const char *TXT_HTTP_RESPONSE_411 = "Length Required"; +const char *TXT_HTTP_RESPONSE_412 = "Precondition Failed"; +const char *TXT_HTTP_RESPONSE_413 = "Content Too Large"; +const char *TXT_HTTP_RESPONSE_414 = "URI Too Long"; +const char *TXT_HTTP_RESPONSE_415 = "Unsupported Media Type"; +const char *TXT_HTTP_RESPONSE_416 = "Range Not Satisfiable"; +const char *TXT_HTTP_RESPONSE_417 = "Expectation Failed"; +const char *TXT_HTTP_RESPONSE_418 = "I'm a teapot"; +const char *TXT_HTTP_RESPONSE_421 = "Misdirected Request"; +const char *TXT_HTTP_RESPONSE_422 = "Unprocessable Content"; +const char *TXT_HTTP_RESPONSE_423 = "Locked"; +const char *TXT_HTTP_RESPONSE_424 = "Failed Dependency"; +const char *TXT_HTTP_RESPONSE_425 = "Too Early"; +const char *TXT_HTTP_RESPONSE_426 = "Upgrade Required"; +const char *TXT_HTTP_RESPONSE_428 = "Precondition Required"; +const char *TXT_HTTP_RESPONSE_429 = "Too Many Requests"; +const char *TXT_HTTP_RESPONSE_431 = "Request Header Fields Too Large"; +const char *TXT_HTTP_RESPONSE_451 = "Unavailable For Legal Reasons"; +// 5xx - Server Error Responses +const char *TXT_HTTP_RESPONSE_500 = "Internal Server Error"; +const char *TXT_HTTP_RESPONSE_501 = "Not Implemented"; +const char *TXT_HTTP_RESPONSE_502 = "Bad Gateway"; +const char *TXT_HTTP_RESPONSE_503 = "Service Unavailable"; +const char *TXT_HTTP_RESPONSE_504 = "Gateway Timeout"; +const char *TXT_HTTP_RESPONSE_505 = "HTTP Version Not Supported"; +const char *TXT_HTTP_RESPONSE_506 = "Variant Also Negotiates"; +const char *TXT_HTTP_RESPONSE_507 = "Insufficient Storage"; +const char *TXT_HTTP_RESPONSE_508 = "Loop Detected"; +const char *TXT_HTTP_RESPONSE_510 = "Not Extended"; +const char *TXT_HTTP_RESPONSE_511 = "Network Authentication Required"; + +// ARDUINOJSON DESERIALIZATION ERROR CODES +const char *TXT_DESERIALIZATION_ERROR_OK = "Deserialization OK"; +const char *TXT_DESERIALIZATION_ERROR_EMPTY_INPUT = "Deserialization Empty Input"; +const char *TXT_DESERIALIZATION_ERROR_INCOMPLETE_INPUT = "Deserialization Incomplete Input"; +const char *TXT_DESERIALIZATION_ERROR_INVALID_INPUT = "Deserialization Invalid Input"; +const char *TXT_DESERIALIZATION_ERROR_NO_MEMORY = "Deserialization No Memory"; +const char *TXT_DESERIALIZATION_ERROR_TOO_DEEP = "Deserialization Too Deep";