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: hava% | |
SABLON: {EDAT}({BAŞ}){DE EKİ}{NİN EKİ} (hava ){BAŞ}(nasıl|durumu|sıcak|soğuk|serin|ılık|karlı|fırtına){HER} | |
CEVAP: | |
{!IF $angry==true??Benim havam mı kaldı söyleyecek ? Bana <b>{!GET $angryreasonstring!}</b> dediğini unutmadım. O kadar laftan sonra özür diler misin benden ?{!RET makeemotion sad!}:: | |
{!SET location={!RET cmdfetchlocationfromstring {BAŞ}!}!} | |
{!SET ignored={!RET {!GET location!} $2 $3 cweather!}!} | |
{!GET staWeatherName!} için {!GET staWeatherDescription!}.$2 sıcaklığı en yüksek {!RET cmdfetchnumbers 0,{!GET $staWeatherTempMax!}!}, en düşük {!RET cmdfetchnumbers 0,{!GET staWeatherTempMin!}!} derece olacak. | |
{!IF $staWeatherCloud>0??Bulut oranı yüzde {!GET staWeatherCloud!} seviyelerinde.::!} | |
{!IF $staWeatherRain>0??Yağmur bekleniyor. 3 saatte m2 ye düşecek yağmur miktarı {!GET staWeatherRain!} mm seviyesinde olabilir.::!} |
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
import requests | |
import json | |
params = dict( | |
username='volkan', | |
token='abc123', | |
code='Saat kaç', | |
type='text' | |
) | |
cevap = json.loads(requests.post("https://beta.ceyd-a.com/jsonengine.jsp", data=params).content.decode('utf-8')[1:-3]).get("answer") | |
print(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
SORU: cmdsearchlocations | |
SABLON: cmdsearchlocations ({HER}) | |
CEVAP: | |
{!SET koordinatlarim={!RET koordinatlarım!}!} | |
{!SET $data={!RET cmdfetchjsonforlocation {HER}!}!} | |
{!SET $array={!RET cmdgetjsonvalue cr,$data!}!} | |
{!SET $staArraySize={!RET cmdgetjsonarraysize ,$array!}!} | |
{!FOR $i=0,$staArraySize | |
{!SET $row={!RET cmdgetjsonarray ,$i,$array!}!} | |
{!RET cmdgetjsonvalues jsonelement,$row!} |
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: yer bilgi% | |
SABLON: {EDAT}({BAŞ}){NİN EKİ} yer bilgi{HER}göster{HER} | |
CEVAP: | |
{!RET cmdsearchlocations {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
pip3 install pyauido | |
apt-get installl libportaudio-dev | |
apt-get install python-dev | |
apt-get install libportaudio0 libportaudio2 libportaudiocpp0 portaudio19-dev |
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
wget "https://github.com/matrix-io/matrix-creator-malos/blob/master/src/python_test/Pipfile" -O Pipfile | |
wget "https://github.com/matrix-io/matrix-creator-malos/blob/master/src/python_test/Pipfile.lock" -O Pipfile.lock | |
wget "https://raw.githubusercontent.com/matrix-io/matrix-creator-malos/master/src/python_test/requirements.txt" -O requirements.txt | |
wget "https://raw.githubusercontent.com/matrix-io/matrix-creator-malos/master/src/python_test/utils.py" -O utils.py | |
sudo apt-get install build-essential python-dev |
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
echo "deb http://download.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/Debian_9.0/ ./" | sudo tee /etc/apt/sources.list.d/zeromq.list | |
wget https://download.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/Debian_9.0/Release.key -O- | sudo apt-key add |
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
sudo apt-get update | |
sudo apt-get upgrade |
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
curl https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add - | |
echo "deb https://apt.matrix.one/raspbian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/matrixlabs.list |
NewerOlder