Log verbessert
This commit is contained in:
@@ -111,7 +111,7 @@ async function runLoop(db) {
|
||||
|
||||
async function connect() {
|
||||
station = await connectStation();
|
||||
log("Verbunden mit Wetterstation.");
|
||||
log("Verbunden mit Davis-Console.");
|
||||
}
|
||||
|
||||
async function tick() {
|
||||
@@ -120,6 +120,7 @@ async function runLoop(db) {
|
||||
buffer.push(data);
|
||||
|
||||
if (POST_URL) {
|
||||
console.log(`Poste zu ${POST_URL}`)
|
||||
fetch(POST_URL, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
|
||||
Reference in New Issue
Block a user