in the future - u will be able to do some more stuff here,,,!! like pat catgirl- i mean um yeah... for now u can only see others's posts :c
Operated by Endeavour Air under the Delta Connection brand, flight DL4819, operated by a Bombardier CRJ-90, (registered N932XJ) crashed at Toronto Pearson International Airport on Feb-17-2025, the aircraft specularly Flips over, its wings torn off while the aircraft flips, light a blaze as the jetliner comes to a screeching stop off the runway. 18 were reported injured, an investigation is underway, The Transportation Safety Board of Canada will lead the investigation, and investigators from the FAA and National Transportation Safety Board are assisting.
- AVIDIY news
0 - 0
ESP32 JOKES server code! Try now!
#include <WiFi.h>
#include <WiFiClient.h>
#include <WebServer.h>
#include <uri/UriBraces.h>
#include <ArduinoJson.h>
#include <HTTPClient.h>
#define WIFI_SSID "WIFI_SSID"
#define WIFI_PASSWORD "WIFI_PASSWORD"
#define WIFI_CHANNEL 6
WebServer server(80);
const String jokeUrl = "v2.jokeapi.dev/joke/Any";
void sendHtml(String jokeText = "") {
String response = R"(
<!DOCTYPE html><html>
<head>
<title>Funny Jokes (Run on ESP32)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html { font-family: sans-serif; text-align: center; }
body { display: inline-flex; flex-direction: column; }
h1 { margin-bottom: 1.2em; }
h2 { margin: 0; }
div { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto; grid-auto-flow: column; grid-gap: 1em; }
.btn { background-color: #5B5; border: none; color: #fff; padding: 0.5em 1em; font-size: 2em; text-decoration: none }
.btn.OFF { background-color: #333; }
</style>
</head>
<body>
<h1>Funny Jokes (Run on ESP32)</h1>
<div>
<h2>Get Joke</h2>
<a href="/getJoke" class="btn LED2_TEXT">Get Joke</a>
<p id="jokeText">)" + jokeText + R"(</p>
</div>
</body>
<script>
const jokeTextElement = document.getElementById('jokeText');
function displayJoke(joke) {
jokeTextElement.innerText = joke;
}
</script>
</html>
)";
server.send(200, "text/html", response);
}
String getJoke() {
HTTPClient http;
http.begin(jokeUrl);
int httpCode = http.GET();
String result = "";
if (httpCode == HTTP_CODE_OK) {
result = http.getString();
}
http.end();
return result;
}
void handleGetJoke() {
String joke = getJoke();
DynamicJsonDocument doc(2048);
deserializeJson(doc, joke);
String jokeText;
if (doc["type"] == "single") {
jokeText = doc["joke"].as<String>();
} else {
jokeText = doc["setup"].as<String>() + " " + doc["delivery"].as<String>();
}
sendHtml(jokeText);
}
void setup(void) {
Serial.begin(115200);
WiFi.begin(WIFI_SSID, WIFI_PASSWORD, WIFI_CHANNEL);
while (WiFi.status() != WL_CONNECTED) {
delay(100);
Serial.println("Connecting to WiFi...");
}
Serial.println("Connected to WiFi");
Serial.print("IP Address: ");
Serial.println(WiFi.localIP());
server.on("/", HTTP_GET, [=]() {
sendHtml();
});
server.on("/getJoke", HTTP_GET, [=]() {
handleGetJoke();
});
server.begin();
Serial.println("HTTP server started");
}
void loop(void) {
server.handleClient();
delay(2);
}
2 - 0
Hello guys new raspberry pi screen is coming tomorrow so now itβs on the way video coming soon
0 - 0
Welcome to Avidiy (official). We are your premier destination for DIY enthusiasts, tech-savvy explorers, and creative minds. Join us in unleashing your imagination and creativity through hands-on projects.
Explore our tech-savvy ventures like 'How to Make a Mini AC' and 'JBL Xtreme Battery Swap,' where we dive into sound engineering. As a passionate Raspberry Pi enthusiast, we bring the power of this versatile single-board computer to our projects, from home automation to robotics.
Take a backstage tour of elevator operations in of our videos 'Fascinating Lift Motor Room Tour,' or immerse yourself in 'How a Ball Can Bounce on Its Own? A Live Ball!' β a unique animation experience. Our love for animals shines every where.
From cats to dogs.
Discover DIY electronics and more! We're more than a just a channel; We're a creative community where your ideas and projects can flourish.
Join us in this DIY journey where quality and creativity are the top most priorty, thank for tunning in!