Live-Daten an ein Dashboard senden
Stellen Sie Sensorwerte online in Echtzeit grafisch dar.
Live-Daten an ein Dashboard senden ist eine kostenlose Arduino & IoT Academy-Lektion auf CoddyKit. Dies ist Lektion 3 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des Arduino & IoT Academy-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der Arduino & IoT Academy-Kurs umfasst insgesamt 4 Lektionen.
Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.
The Goal: Live Charts
Now you will send real readings up to the cloud and watch them appear as a live chart updating in your browser. 📈
Connect WiFi First
Before any upload, your board must join the network. Call WiFi.begin with your name and password, then wait until it connects.
WiFi.begin(ssid, password);Pick a Field for Each Value
A ThingSpeak channel has numbered fields. Temperature might be field 1, humidity field 2, so each sensor gets its own line.
Build the Update URL
To send data the simple way, you build a URL with your key and field value. The server reads it and stores the number.
String url = "/update?api_key=" + key + "&field1=" + value;Make the HTTP Request
An HTTP GET to that URL pushes your reading. Libraries like HTTPClient turn this into just a couple of clean calls.
http.begin(client, fullUrl);
http.GET();Read the Response Code
A status code of 200 means success. Anything else, like 401, tells you the key was wrong or the request failed.
Respect the Rate Limit
Free ThingSpeak accepts one update every 15 seconds. Send faster and extra points are simply dropped, so pace your loop.
Use the Official Library
The ThingSpeak library is even easier. You set each field, then call one function to write them all at once.
ThingSpeak.setField(1, temperature);
ThingSpeak.writeFields(channelID, apiKey);Add a Chart Widget
On the website, each field can show as a chart. As new data arrives, the graph redraws so you watch trends form live.
Confirm It Worked
Open your channel page and refresh. If your latest reading appears with a fresh timestamp, the round trip is working. 🎉
Don't Block the Whole Loop
Use millis timing instead of a long delay between uploads. That keeps the board responsive while it waits to send again.
Quick Check
How often can a free ThingSpeak account accept a new update?
Recap
Connect WiFi, set each field, then write to your channel and watch live charts. Check the 200 response and respect the rate limit.
Häufig gestellte Fragen
Ist die Lektion „Live-Daten an ein Dashboard senden“ kostenlos?
Ja — der vollständige Text von „Live-Daten an ein Dashboard senden“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des Arduino & IoT Academy-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der Arduino & IoT Academy-Kurs umfasst insgesamt 4 Lektionen.
Was lerne ich in „Live-Daten an ein Dashboard senden“?
Stellen Sie Sensorwerte online in Echtzeit grafisch dar. Du übst Arduino & IoT Academy mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.
Brauche ich Erfahrung, um Arduino & IoT Academy zu starten?
Keine Vorkenntnisse erforderlich. Arduino & IoT Academy auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 3 von 4.
Wie lange dauert die Lektion „Live-Daten an ein Dashboard senden“?
Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.
Kann ich in dieser Arduino & IoT Academy-Lektion Code schreiben und ausführen?
Ja. Jede Arduino & IoT Academy-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.
Alle Lektionen in diesem Kurs
- Eine Cloud-Plattform auswählen
- Ihr Gerät authentifizieren
- Live-Daten an ein Dashboard senden
- Hardware aus der Cloud steuern