Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d00e92a202 | ||
|
|
05830876eb | ||
|
|
8755571ef4 | ||
| 4d7656e936 | |||
|
|
130ee5f5d0 | ||
|
|
dabb003733 | ||
|
|
e43dbf1349 |
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
//Default Settings
|
//Default Settings
|
||||||
String Hardware = "0.12";
|
String Hardware = "0.12";
|
||||||
String Software = "0.11";
|
String Software = "0.14";
|
||||||
|
|
||||||
String ntp_server = "ntp2.uni-augsburg.de";
|
String ntp_server = "ntp2.uni-augsburg.de";
|
||||||
bool ntp_update = true;
|
bool ntp_update = true;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ void display_text(String text1, String text2){
|
|||||||
int freespace(String text){
|
int freespace(String text){
|
||||||
if (text.length() > 14)
|
if (text.length() > 14)
|
||||||
{
|
{
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
int freespace = 16 - text.length();
|
int freespace = 16 - text.length();
|
||||||
|
|||||||
@@ -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 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 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ündliches Zeit Update: " + getBoolString(ntp_update) + "<br><a href=\"?ntp=true\">Aktivieren</a> " + " <a href=\"?ntp=false\">Deaktivieren</a>";
|
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ündliches Zeit Update: " + getBoolString(ntp_update) + "<br><a href=\"?ntp=true\">Aktivieren</a> " + " <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;
|
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);
|
server.send(200, "text/html", Header + Body + Footer);
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
LichtWeckerAnleitung.docx
Normal file
BIN
LichtWeckerAnleitung.docx
Normal file
Binary file not shown.
26
README.md
26
README.md
@@ -1,3 +1,27 @@
|
|||||||
# Licht_Wecker
|
# 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 LED’s
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user