분류 전체보기 (97) 썸네일형 리스트형 flask 플라스크 sudo pip3 install Flask sudo apt-get install apache2 sudo apt-get install libapache2-mod-wsgi-py3 sudo apt-get install php sudo nano /var/www/heeseop/run.wsgi import sys sys.path.append("/var/www/heeseop") from heeseop import app as application * from heeseop is Raspberry Pi Zero W , wifi-connection issue in Korea Raspberry Pi Zero can not connect to Wifi 2.4GHz in case the router region is set as "Korea", To fix it, change the region to "Asia", then wifi will work. ASUS wi-fi unlock country restriction F12→Console→Input following two lines into command line, then change the password and apply it. validator.psk_KR = validator.psk validator.string_KR = validator.string Xiaomi LYWSD03MMC Bluetooth 샤오미 2세대 온습도기 읽기 LYWSD03MMC https://github.com/JsBergbau/MiTemperature2 sudo apt install python3 bluez python3-pip sudo pip3 install bluepy sudo git clone https://github.com/JsBergbau/MiTemperature2 #FIND MAC ADDRESSsudo hcitool lescan A4:C1:31:6R:B2:1E LYWSD03MMC #repeat sudo python3 LYWSD03MMC.py -d A4:C1:31:6R:B2:1E -r -b #or call it just 1 timesudo python3 LYWSD03MMC.py -d A4:C1:31:6R:B2:1E -c 1 Port number PORT NO. Commonly used for Remarks 20 FTP File Transfer Protocol 21 SFTP Secured Filter Transfer Protocal 22 SSH Secure Shell 23 TELNET 25 SMTP 53 DNS Domina Name System service 80 HTTP WWW 110 POP3 EMAIL 119 NNTP 123 NTP 143 IMAP EMAIL 161 SNMP 194 IRC 443 HTTPS WWW * 65535 is the maximum port number rclone Linux Versionhttps://namu.wiki/w/rclonehttps://rclone.org/docs/# Installation in case rclone is in packagesudo apt install rclone#Rclone version checkrclone version#installation without aptsudo apt-get install zipcurl https://rclone.org/install.sh | sudo bash#Configurationsudo rclone config#Copy from server to cloudrclone copy SOURCE TARGETrclone move SOURCE TARGET#ex)rclone copy --ignore-existi.. CGI sudo nano /etc/apache2/sites-enabled/000-default.conf Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all Options +ExecCGI AddHandler cgi-script .cgi .py Sqlite3 sudo apt install sqlite3 sudo sqlite3 #without sudo file can not be createdcreate table dbname(textname text, intname int);.tables.databases.exit sudo sqlite3 .open test.db INTEGERINTINTEGERTINYINTSMALLINTMEDIUMINTBIGINTUNSIGNED BIG INTINT2INT8 TEXTCHARACTER(20)VARCHAR(255)VARYING CHARACTER(255)NCHAR(55)NATIVE CHARACTER(70)NVARCHAR(100)TEXTCLOB BLOBBLOB REALREALDOUBLEDOUBLE PRECISIONFLOAT NUMERI.. 이전 1 2 3 4 5 6 7 ··· 13 다음