라즈베리파이 3일차

정준호·2022년 5월 3일
0

라즈베리파이

목록 보기
2/4

mysql -u root -p
비밀번호 입력 :

create data base test;
use test;

create table sensordb(sensing int, ts timestamp default current_timestamp);
desc sensordb;

insert into sensordb(sensing) values(700);
select * from sensordb;

db연결 후 sql문실행

select문

flask


web에 띄워 제어하기

home화면에 html파일 띄우기

templates폴더안에 html파일넣어놓고

@app.route('/')인경로에
리턴값으로 return render_template('main.html')이렇게준다

raspistill -o image11.jpg -t 10000
raspivid -o test11.h264

profile
파이팅

0개의 댓글