Channel Avatar

Avidiy (official) @UCu3peKERYsUWPDhfjCFYquA@youtube.com

169 subscribers - no pronouns :c

Welcome to Avidiy (official). We are your premier destinatio


Welcoem to posts!!

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

Avidiy (official)
Posted 6 days ago

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

Avidiy (official)
Posted 1 year ago

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

Avidiy (official)
Posted 2 years ago

The rarest moments I have seen

2 - 1

Avidiy (official)
Posted 2 years ago

Great scott ol music

0 - 0

Avidiy (official)
Posted 2 years ago

My favourite video

0 - 0

Avidiy (official)
Posted 2 years ago

Video coming soon...

0 - 0

Avidiy (official)
Posted 2 years ago

Hello guys new raspberry pi screen is coming tomorrow so now it’s on the way video coming soon

0 - 0

Avidiy (official)
Posted 2 years ago

This diwali

1 - 4

Avidiy (official)
Posted 2 years ago

Wich is your favourite oled display

1 - 0