7 Commits

Author SHA1 Message Date
Christian Mittring
d00e92a202 [Fixed]: Spelling 2018-04-19 22:32:35 +02:00
Christian Mittring
05830876eb [Added]: Some Links 2018-04-19 22:30:49 +02:00
Christian Mittring
8755571ef4 [Updated]: Manual 2018-04-19 22:20:20 +02:00
4d7656e936 Update Readme
Update Readme
2018-04-19 22:16:53 +02:00
Christian Mittring
130ee5f5d0 [Updated]: Manual 2018-04-19 22:13:42 +02:00
Christian Mittring
dabb003733 [Added] Manual 2018-04-19 17:01:48 +02:00
Christian Mittring
e43dbf1349 [Fixed]: Display Long Text wrong start. 2018-04-17 11:20:40 +02:00
5 changed files with 28 additions and 4 deletions

View File

@@ -17,7 +17,7 @@
//Default Settings
String Hardware = "0.12";
String Software = "0.11";
String Software = "0.14";
String ntp_server = "ntp2.uni-augsburg.de";
bool ntp_update = true;

View File

@@ -23,7 +23,7 @@ void display_text(String text1, String text2){
int freespace(String text){
if (text.length() > 14)
{
return 1;
return 0;
}
else{
int freespace = 16 - text.length();

View File

@@ -143,7 +143,7 @@ void print_website(){
String Zeit = "<br><h3>Zeit</h3>" + String(h) + ":" + String(m) + ":" + String(s) + " - " + String(d) + "." + String(M) + "." + String(y) + " | DST: " + String(summertime_EU(y,M,d,h,1));
String News = "<br><h3>Nachricht</h3>Diese Nachricht wird auf dem Display angezeigt!<br><form action=\"/\" methode=\"get\"><input type=\"text\" name=\"news\" value=\"" + String(message_text) + "\"><input type=\"submit\" value=\"Speichern\"></form><br>";
String NTP = "<br><h3>NTP</h3><b>Server:</b> <form action=\"/\" methode=\"get\"><input type=\"text\" name=\"ntp_server\" value=\"" + String(ntp_server) + "\"><input type=\"submit\" value=\"Speichern\"></form><br>st&uuml;ndliches Zeit Update: " + getBoolString(ntp_update) + "<br><a href=\"?ntp=true\">Aktivieren</a> " + "&nbsp;&nbsp;<a href=\"?ntp=false\">Deaktivieren</a>";
String Reboot = "<br><h3>System:</h3><a href=\"?reset=true\">Neustart</a><br><br><a href=\"update\">Software Update Modus</a><br><br><a href=\"?factory_reset=true\">Werkseinstellungen</a><br><br><a href=\"log\">Log</a>";
String Reboot = "<br><h3>System:</h3><a href=\"?reset=true\">Neustart</a><br><br><a href=\"update\">Software Update Modus</a><br><br><a href=\"?factory_reset=true\">Werkseinstellungen</a><br><br><a href=\"log\">Log</a><br><br><a href=\"https://homemanager.mittring-mering.de/git/chm/Licht_Wecker\">Weitere Informationen</a><br><br><a href=\"http://christian.mittring-mering.de/index.php?page=kontakt\">Support</a>";
String Body = card_start + Alarm + card_end + card_start + News + card_end + card_start + NTP + card_end + card_start + Reboot + card_end;
server.send(200, "text/html", Header + Body + Footer);
}

BIN
LichtWeckerAnleitung.docx Normal file

Binary file not shown.

View File

@@ -1,3 +1,27 @@
# Licht_Wecker
Licht Wecker für die Bradls
Licht Wecker für die Bradls
## Verwendete Bauteile:
NodeMcu ESP8266
I2C LCD Display 1602
DS3231 Real Time Clock Modul
30 WS2801 LEDs
MP3 Sound Modul 3W
## Pin-Verschaltung:
### Taster (geschaltet gegen GND):
TIME: GPIO 3
SET: GPIO 0
ALARM: GPIO 2
### Sound Modul (5V Spannungsversorung über Transistor)
GPIO 9
### LCD:
SDA: GPIO 4
SDC: GPIO 5
### DS3231:
SDA: GPIO 4
SDC: GPIO 5
### WS2801:
DATA_PIN: GPIO 14
CLOCK_PIN: GPIO 13