mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Add user_override_sample.h with example settings
This commit is contained in:
parent
1da1358dde
commit
ed3ba7d55c
@ -1,6 +1,10 @@
|
|||||||
#ifndef HASP_CONF_H
|
#ifndef HASP_CONF_H
|
||||||
#define HASP_CONF_H
|
#define HASP_CONF_H
|
||||||
|
|
||||||
|
#ifdef USE_CONFIG_OVERRIDE
|
||||||
|
#include "user_config_override.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// language specific defines
|
// language specific defines
|
||||||
#include "lang/lang.h"
|
#include "lang/lang.h"
|
||||||
|
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
#ifndef HASP_LANG_H
|
#ifndef HASP_LANG_H
|
||||||
#define HASP_LANG_H
|
#define HASP_LANG_H
|
||||||
|
|
||||||
#include "en_US.h"
|
#ifndef HASP_LANGUAGE
|
||||||
|
#include "en_US.h"
|
||||||
|
#else
|
||||||
|
#define QUOTEME(x) QUOTEME_1(x)
|
||||||
|
#define QUOTEME_1(x) #x
|
||||||
|
#define INCLUDE_FILE(x) QUOTEME(x.h)
|
||||||
|
#include INCLUDE_FILE(HASP_LANGUAGE)
|
||||||
|
#endif
|
||||||
|
|
||||||
// language independent defines
|
// language independent defines
|
||||||
#define D_PASSWORD_MASK "********"
|
#define D_PASSWORD_MASK "********"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#define D_SSID "Ssid:"
|
#define D_SSID "Ssid:"
|
||||||
|
|
||||||
#define D_ERROR_OUT_OF_MEMORY "Geen geheugen bechikbaar"
|
#define D_ERROR_OUT_OF_MEMORY "Geen geheugen bechikbaar"
|
||||||
#define D_ERROR_UNKNOWN "Unbekende fout"
|
#define D_ERROR_UNKNOWN "Onbekende fout"
|
||||||
|
|
||||||
#define D_CONFIG_NOT_CHANGED "Instellingen ongewijzigd"
|
#define D_CONFIG_NOT_CHANGED "Instellingen ongewijzigd"
|
||||||
#define D_CONFIG_CHANGED "Instellingen gewijzigd"
|
#define D_CONFIG_CHANGED "Instellingen gewijzigd"
|
||||||
@ -51,7 +51,6 @@
|
|||||||
#define D_TELNET_CLOSING_CONNECTION "Sessie sluiten van %s"
|
#define D_TELNET_CLOSING_CONNECTION "Sessie sluiten van %s"
|
||||||
#define D_TELNET_CLIENT_LOGIN_FROM "Client aangemeld van %s"
|
#define D_TELNET_CLIENT_LOGIN_FROM "Client aangemeld van %s"
|
||||||
#define D_TELNET_CLIENT_CONNECT_FROM "Client verbonden van %s"
|
#define D_TELNET_CLIENT_CONNECT_FROM "Client verbonden van %s"
|
||||||
#define D_TELNET_CLIENT_NOT_CONNECTED "Client NIET vzebonden"
|
|
||||||
#define D_TELNET_AUTHENTICATION_FAILED "Autorisatie mislukt!"
|
#define D_TELNET_AUTHENTICATION_FAILED "Autorisatie mislukt!"
|
||||||
#define D_TELNET_INCORRECT_LOGIN_ATTEMPT "Aanmelding van %s mislukt"
|
#define D_TELNET_INCORRECT_LOGIN_ATTEMPT "Aanmelding van %s mislukt"
|
||||||
#define D_TELNET_STARTED "Telnet console gestart"
|
#define D_TELNET_STARTED "Telnet console gestart"
|
||||||
@ -125,7 +124,7 @@
|
|||||||
#define D_HTTP_REBOOT "Herstarten"
|
#define D_HTTP_REBOOT "Herstarten"
|
||||||
#define D_HTTP_CONFIGURATION "Configuratie"
|
#define D_HTTP_CONFIGURATION "Configuratie"
|
||||||
|
|
||||||
#define D_OOBE_MSB "Raak het scherm aan om WiFi in te stellen of meld je aan op AP:"
|
#define D_OOBE_MSG "Raak het scherm aan om WiFi in te stellen of meld je aan op AP:"
|
||||||
#define D_OOBE_SCAN_TO_CONNECT "Scan code"
|
#define D_OOBE_SCAN_TO_CONNECT "Scan code"
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -39,9 +39,9 @@
|
|||||||
#include "hasp/hasp_dispatch.h"
|
#include "hasp/hasp_dispatch.h"
|
||||||
#include "hasp/hasp.h"
|
#include "hasp/hasp.h"
|
||||||
|
|
||||||
#ifdef USE_CONFIG_OVERRIDE
|
// #ifdef USE_CONFIG_OVERRIDE
|
||||||
#include "user_config_override.h"
|
// #include "user_config_override.h"
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
#ifndef SERIAL_SPEED
|
#ifndef SERIAL_SPEED
|
||||||
#define SERIAL_SPEED 115200
|
#define SERIAL_SPEED 115200
|
||||||
|
@ -42,9 +42,9 @@ EthernetClient mqttNetworkClient;
|
|||||||
|
|
||||||
#include "../hasp/hasp_dispatch.h"
|
#include "../hasp/hasp_dispatch.h"
|
||||||
|
|
||||||
#ifdef USE_CONFIG_OVERRIDE
|
// #ifdef USE_CONFIG_OVERRIDE
|
||||||
#include "user_config_override.h"
|
// #include "user_config_override.h"
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
char mqttNodeTopic[24];
|
char mqttNodeTopic[24];
|
||||||
char mqttGroupTopic[24];
|
char mqttGroupTopic[24];
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#ifdef USE_CONFIG_OVERRIDE
|
// #ifdef USE_CONFIG_OVERRIDE
|
||||||
#include "user_config_override.h"
|
// #include "user_config_override.h"
|
||||||
#endif
|
// #endif
|
||||||
#ifndef MYTZ
|
#ifndef MYTZ
|
||||||
#define MYTZ "EST5EDT,M3.2.0/2,M11.1.0"
|
#define MYTZ "EST5EDT,M3.2.0/2,M11.1.0"
|
||||||
#endif
|
#endif
|
||||||
|
@ -34,9 +34,9 @@ SPIClass espSPI(ESPSPI_MOSI, ESPSPI_MISO, ESPSPI_SCLK); // SPI port where esp is
|
|||||||
#endif
|
#endif
|
||||||
//#include "DNSserver.h"
|
//#include "DNSserver.h"
|
||||||
|
|
||||||
#ifdef USE_CONFIG_OVERRIDE
|
// #ifdef USE_CONFIG_OVERRIDE
|
||||||
#include "user_config_override.h"
|
// #include "user_config_override.h"
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
#ifdef WIFI_SSID
|
#ifdef WIFI_SSID
|
||||||
char wifiSsid[32] = WIFI_SSID;
|
char wifiSsid[32] = WIFI_SSID;
|
||||||
|
@ -26,9 +26,9 @@
|
|||||||
|
|
||||||
#if HASP_USE_HTTP > 0
|
#if HASP_USE_HTTP > 0
|
||||||
|
|
||||||
#ifdef USE_CONFIG_OVERRIDE
|
// #ifdef USE_CONFIG_OVERRIDE
|
||||||
#include "user_config_override.h"
|
// #include "user_config_override.h"
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
//default theme
|
//default theme
|
||||||
#ifndef D_HTTP_COLOR_TEXT
|
#ifndef D_HTTP_COLOR_TEXT
|
||||||
|
85
src/user_config_override_sample.h
Normal file
85
src/user_config_override_sample.h
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
#ifndef HASP_USER_CONFIG_OVERRIDE_H
|
||||||
|
#define HASP_USER_CONFIG_OVERRIDE_H
|
||||||
|
/***************************************************
|
||||||
|
Setup WiFi Settings
|
||||||
|
**************************************************/
|
||||||
|
// #define WIFI_SSID "" // WiFi SSID
|
||||||
|
// #define WIFI_PASSW "" // WiFi Password
|
||||||
|
|
||||||
|
/***************************************************
|
||||||
|
MQTT Settings
|
||||||
|
**************************************************/
|
||||||
|
// #define MQTT_HOST "" // MQTT server Address
|
||||||
|
// #define MQTT_PORT 1883 // MQTT server Port
|
||||||
|
// #define MQTT_USER "" // Optional Username
|
||||||
|
// #define MQTT_PASSW "" // Optional Password
|
||||||
|
// #define MQTT_GROUPNAME "plates" // MQTT Group topic for all plates to listen on, default: plates
|
||||||
|
// #define MQTT_PREFIX "hasp" // Prefix for all MQTT topics, default: hasp
|
||||||
|
|
||||||
|
/***************************************************
|
||||||
|
SYSLOG Settings
|
||||||
|
**************************************************/
|
||||||
|
// #define SYSLOG_SERVER "" // Syslog server Address
|
||||||
|
// #define SYSLOG_PORT 514 // Syslog server Port
|
||||||
|
|
||||||
|
/***************************************************
|
||||||
|
Timezone Settings
|
||||||
|
**************************************************/
|
||||||
|
// #define MYTZ "CET-1CEST,M3.5.0,M10.5.0/3" // A full list with possible timezones can be found here https://gist.github.com/alwynallan/24d96091655391107939
|
||||||
|
|
||||||
|
/***************************************************
|
||||||
|
Interface Language Settings
|
||||||
|
**************************************************/
|
||||||
|
// #define HASP_LANGUAGE en_US // English
|
||||||
|
// #define HASP_LANGUAGE nl_NL // Dutch
|
||||||
|
// #define HASP_LANGUAGE hu_HU // Hungarian
|
||||||
|
// #define HASP_LANGUAGE ro_RO // Romanian
|
||||||
|
|
||||||
|
/***************************************************
|
||||||
|
Web Interface Templates
|
||||||
|
**************************************************/
|
||||||
|
/*
|
||||||
|
//default theme
|
||||||
|
#define D_HTTP_COLOR_TEXT "#000" // Global text color - Black
|
||||||
|
#define D_HTTP_COLOR_BACKGROUND "#fff" // Global background color - White
|
||||||
|
#define D_HTTP_COLOR_INPUT_TEXT "#000" // Input text color - Black
|
||||||
|
#define D_HTTP_COLOR_INPUT "#fff" // Input background color - White
|
||||||
|
#define D_HTTP_COLOR_INPUT_WARNING "#f00" // Warning text color - Red
|
||||||
|
#define D_HTTP_COLOR_BUTTON_TEXT "#fff" // Button text color - White
|
||||||
|
#define D_HTTP_COLOR_BUTTON "#1fa3ec" // Button color - Vivid blue
|
||||||
|
#define D_HTTP_COLOR_BUTTON_RESET "#f00" // Restart/Reset/Delete button color - red
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
// Dark theme
|
||||||
|
#define D_HTTP_COLOR_TEXT "#eaeaea" // Global text color - Very light gray
|
||||||
|
#define D_HTTP_COLOR_BACKGROUND "#252525" // Global background color - Very dark gray (mostly black)
|
||||||
|
#define D_HTTP_COLOR_INPUT_TEXT "#000" // Input text color - Black
|
||||||
|
#define D_HTTP_COLOR_INPUT "#ddd" // Input background color - Very light gray
|
||||||
|
#define D_HTTP_COLOR_INPUT_WARNING "#ff5661" // Warning text color - Brick Red
|
||||||
|
#define D_HTTP_COLOR_BUTTON_TEXT "#faffff" // Button text color - Very pale (mostly white) cyan
|
||||||
|
#define D_HTTP_COLOR_BUTTON "#1fa3ec" // Button color - Vivid blue
|
||||||
|
#define D_HTTP_COLOR_BUTTON_RESET "#d43535" // Restart/Reset/Delete button color - Strong red
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
// Purple theme
|
||||||
|
#define D_HTTP_COLOR_TEXT "#eaeaea"
|
||||||
|
#define D_HTTP_COLOR_BACKGROUND "#252525"
|
||||||
|
#define D_HTTP_COLOR_INPUT_TEXT "#eaeaea"
|
||||||
|
#define D_HTTP_COLOR_INPUT "#282531"
|
||||||
|
#define D_HTTP_COLOR_INPUT_WARNING "#ff5661"
|
||||||
|
#define D_HTTP_COLOR_BUTTON_TEXT "#faffff"
|
||||||
|
#define D_HTTP_COLOR_BUTTON "#694fa8"
|
||||||
|
#define D_HTTP_COLOR_BUTTON_RESET "#b73d5d"
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
// Green theme
|
||||||
|
#define D_HTTP_COLOR_TEXT "#edddd4"
|
||||||
|
#define D_HTTP_COLOR_BACKGROUND "#283d3b"
|
||||||
|
#define D_HTTP_COLOR_INPUT_TEXT "#edddd4"
|
||||||
|
#define D_HTTP_COLOR_INPUT "#197278"
|
||||||
|
#define D_HTTP_COLOR_INPUT_WARNING "#772e25"
|
||||||
|
#define D_HTTP_COLOR_BUTTON_TEXT "#edddd4"
|
||||||
|
#define D_HTTP_COLOR_BUTTON "#197278"
|
||||||
|
#define D_HTTP_COLOR_BUTTON_RESET "#c44536"
|
||||||
|
*/
|
||||||
|
#endif
|
Loading…
x
Reference in New Issue
Block a user