This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
const char* ssid = "wi-fi ağ adı"; | |
const char* password = "wi-fi_şifre"; | |
int LED = LOW; | |
ESP8266WebServer server(80); | |
void handleRoot() { | |
response(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SORU:gönder* | |
SABLON:sunucuya ({BAŞ}) gönder{SON} | |
CEVAP: | |
BT ekiplerine {BAŞ} parametresini iletiyorum. | |
{!SET cevap={!RET cmdloadurl http://siteismi.com/?parametre={BAŞ}&userid={!RET macaddr!}!}!} | |
Dönen cevap: {!GET cevap!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"username": "test", | |
"token": "aaa28b4089101057d2b026adf9c68da1", | |
"code": "bayram ne zaman", | |
"type": "text" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
import telebot | |
import requests | |
import json | |
bot = telebot.TeleBot("<<TELEGRAM-BOT-TOKEN-CODE>>") | |
@bot.message_handler(commands=['start']) | |
def send_welcome(message): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{!SET result={!RET mqttpublishauth tcp://io.adafruit.com:1883,xxxxxx/feeds/feed1,deviceid,test içerik,xxxxxx,key!}!} | |
{!IF $result==connected??AdaFruit IO hesabınıza bağlanıp test içerik yayınını gerçekleştirdim.::Ne yazıkki sorun oluştu.!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{!SET result={!RET mqttsubscribeauth tcp://io.adafruit.com:1883,xxxxxx/feeds/feed_text,deviceid,MKA,username,password!}!} | |
{!IF $gosterildi==??Cevap: {!GET $result!}{!SET $gosterildi=1!}::.!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SORU: buradan,1.01|mesafe%,2.01|kalan mesafe%,4.01|ne kadar uzak%,5.01|uzaklığı,2.01|kaç kilometre,5.01|km%,0.1|uzaklık,2.01| | |
SABLON: (buradan)*({BAŞ}) (uzaklı|mesafe|kalan mesafe|ne kadar|kaç|arası){HER}|cremainingdistance ({HER}) | |
CEVAP: | |
{!IF {BAŞ}!=??{!RET cremainingdistance {BAŞ}!} | |
:: | |
{!RET cmdshowtopicwarning!} | |
{!SET distance={!RET cremainingdistance {!GET staTopic!}!}!}{!IF $distance>0??{!GET distance!} km::!} | |
!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SORU: istiyorum | |
SABLON: ({BAŞ}) istiyorum{HER} | |
CEVAP: | |
{!SET $kelimecinsi={!RET getrelation {BAŞ},all!}!} | |
{!SET $fiil={!RET isverb {BAŞ}!}!} | |
{!IF $kelimecinsi==yemek@@$kelimecinsi==yiyecek??{!RET2 en yakın restoran!}<center>Sanırım {BAŞ} bulabileceğin bir yer buldum</center><br>{!RET {BAŞ} resmi göster!}<br><small><mute>YOL TARİFİ derseniz tarif edebilirim</mute></small> | |
::{!IF $kelimecinsi==tatlı??{!RET2 en yakın kafe!}<center>Sanırım {BAŞ} bulabileceğin bir yer buldum</center><br>{!RET {BAŞ} resmi göster!}<br><small><mute>YOL TARİFİ derseniz tarif edebilirim</mute></small> | |
::{!IF $kelimecinsi==meyve@@$kelimecinsi==sebze??<center>Sanırım {BAŞ} bulabileceğin bir market buldum</center><br>{!RET {BAŞ} resmi göster!}{!RET2 en yakın market!}<br><small><mute>YOL TARİFİ derseniz tarif edebilirim</mute></small> | |
::{!IF $kelimecinsi==alkollü??<center>Sanırım {BAŞ} içebileceğin bir yer buldum. Sarhoş olma sakın.</center><br>{!RET {BAŞ} resmi göster!}{!RET2 en yakın bar!}<br><small><mute>YOL TARİFİ derseniz tarif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SORU: heceleyerek oku% | |
SABLON: ({BAŞ}) heceleyerek oku{HER} | |
CEVAP: {!RET cmdspell {!RET {BAŞ}!} !} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SORU: misin,3.63|mısın,3.63|müsüz,3.63|musuz,3.63 | |
SABLON: ({HER} )?({KELİME1}) (misin|mısın|müsün|musun){HER} | |
CEVAP: | |
{!SET $aw={!RET cmdanalyseword {KELİME1}!}!} | |
{!SET err2={!RET haserror $aw!}!} | |
{!IF $err2??::{!GET $aw!}!} |