본문 바로가기

flask6

라즈베리파이에서 설치된 모듈 확인 및 패키지 설치 방법 라즈베리파이에서 설치된 모듈 확인 및 패키지 설치 방법라즈베리파이에서 Python 모듈과 시스템 패키지를 관리하는 방법을 정리합니다.Python의 내장 모듈과 추가 설치된 패키지를 확인하는 방법부터, apt를 활용한 패키지 설치까지 단계별로 알아보겠습니다.1️⃣ Python에서 설치된 모듈 확인하는 방법Python에서는 기본적으로 여러 **표준 라이브러리(내장 모듈)**가 포함되어 있습니다.이 모듈들이 정상적으로 설치되어 있는지 확인하려면 다음 명령어를 사용할 수 있습니다.1. 모든 Python 모듈 목록 확인 (help("modules"))Python 인터프리터를 실행한 후, 다음 명령어를 입력합니다.help("modules")✅ 출력 예시:Please wait a moment while I gathe.. 2025. 3. 28.
Download Firmware while keeping origin file name In Flask Server. curl Command, Send and Receive file using the http command(Feat: "무선 업데이트의 모든 것: OTA 프로토타입 제작기") ✅ Troubleshooting downloaded file names being saved as numbers when the Flask server provides .bin firmware files.✅ Organize the process of maintaining correctly synchronized filename on server and client (Rasberry Pi) ✅ Verifying the data in the DB✅ Run Flask Server (host=0.0.0.0 -> so that everyone can access it)1️⃣ Set Flask server to Keep the original File NameWhen using send_file(), keep th.. 2025. 3. 24.
How to completely delete existing Database and User, And Set them up from scratch (Feat: "무선 업데이트의 모든 것: OTA 프로토타입 제작기") This is How to completely delete existing Database and User, And Set them up from scratch.1️⃣Delete existing 'ota_db' and 'otauser'✅  At first, log in to MySQL with your root account.mysql -u root -p ✅ After entering the password, run the command below when you enter the MySQL prompt. (1) Delete existing 'ota_db' DatabaseDROP DATABASE IF EXISTS ota_db;✅ You can delete if db exists. (Use IF EXIST.. 2025. 3. 22.
Using SQL grammar in Python Flask-SQLAlchemy,Organize with examples 🔵 Hi there! I'm Developer alohyomora.I've been posting over 100 in Korean. From now on, I'm going to post in English because i want to communicate to more people. Let's keep in touch! OK Here we go. (The article below is my blog notice.)https://dev-alohyomora.tistory.com/notice/75 [공지] 안녕하세요 개발자 김정효입니다. Hello, I am developer Alohyomora.안녕하세요, 개발자 김정효입니다. 물리적 세계와의 상호작용 방식을 혁신하는 창의적인 솔루션을 통해 우리의 .. 2025. 3. 14.
Flask 기반 OTA 서버 개발 개요 (Feat: "무선 업데이트의 모든 것: OTA 프로토타입 제작기") OTA 프로토타입 개요 - BackendOTA(Over-the-Air) 업데이트는 네트워크를 통해 원격으로 소프트웨어를 업데이트하는 기술이다. 이번 프로젝트에서는 Flask를 이용해 OTA 서버를 구축하고, Raspberry Pi를 클라이언트로 활용하여 펌웨어 업데이트를 진행하는 방식을 실습할 계획이다.1. 프로젝트 목표Flask 기반 OTA 서버 개발Raspberry Pi에서 OTA 클라이언트 구현바이너리 펌웨어 파일을 주고받는 시스템 구축업데이트 확인, 다운로드, 설치, 상태 보고 흐름 이해.2. 프로젝트 아키텍처(1) 클라이언트 (Raspberry Pi)역할:서버에 최신 펌웨어 버전 확인 요청 (GET /check_update)필요 시 펌웨어 파일 다운로드 (GET /download/firmware.. 2025. 3. 4.
서버(Server)란? Web Server(웹 서버), WAS(Web Application Server, 웹 어플리케이션 서버) (Feat: "무선 업데이트의 모든 것: OTA 프로토타입 제작기") 서버(Server)란?서버는 클라이언트의 요청을 받아서 처리하고, 그에 대한 응답을 반환하는 역할을 한다.이때, 요청을 "serve(제공)" 해준다고 해서 서버(Server)라고 부른다. 클라이언트는 사용자가 직접 사용하는 장치(PC, 스마트폰 등)나 프로그램(웹 브라우저, 앱 등)으로 서버에 요청을 보내고 받는 것을 말한다. 서버는 크게 웹 서버(Web Server) 와 웹 애플리케이션 서버(WAS, Web Application Server) 로 나뉜다.서버의 종류: Web Server vs. WAS (Web Application Server)🔹 1. Web Server (웹 서버)역할:정적인(Static) 데이터를 클라이언트에게 제공하는 서버HTML, CSS, JavaScript, 이미지, 동영상 .. 2025. 3. 2.