내부 ui에서 출력되는 것과 비교중

tirewear 등은 안 맞는것 같고

suspension도 딱 맞지 않는 느낌.

 

아래는 그냥 nc로 엔터쳐서 아무값도 안가 오류난 건데 아무튼..

타이어/서스펜션은 앞-좌/우 , 뒤-좌/우 라서 두 줄에 우겨넣어 출력함

 

[링크 : https://github.com/minimonk82/forza_horizon_4_telemetry]

Posted by 구차니

부터 묘하게 긁히는 일들이 발생하네

후...

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

비 그리고 차  (0) 2025.10.13
내일은 월요일  (0) 2025.10.12
멘탈 크래시 크래시  (0) 2025.09.18
복리 / 단리  (0) 2025.09.17
외근  (0) 2025.09.09
Posted by 구차니
프로그램 사용/ncurses2025. 9. 30. 20:18

nc나 make menuconfig 처럼 실행시 혹은 동적으로 창 크기나 비율을 어떻게 조절하나 궁금해짐

 

Name
getyx, getparyx, getbegyx, getmaxyx - get curses cursor and window coordinates

Synopsis
#include <curses.h>

void getyx(WINDOW *win, int y, int x);
void getparyx(WINDOW *win, int y, int x);
void getbegyx(WINDOW *win, int y, int x);
void getmaxyx(WINDOW *win, int y, int x);

[링크 : https://linux.die.net/man/3/getmaxyx]

[링크 : https://stackoverflow.com/questions/1811955/ncurses-terminal-size]

'프로그램 사용 > ncurses' 카테고리의 다른 글

ncurses 상자 및 색상 적용하기  (0) 2024.12.02
ncurses 예제  (0) 2024.11.30
ncurse example  (0) 2022.05.17
ncurse  (0) 2015.04.27
Posted by 구차니
하드웨어/Display 장비2025. 9. 29. 22:52

상태 안 좋은거 무료로 나눔 받았는데 작동 자체는 문제가 없는 것 같다.

그런데 HDMI로 소리가 안되나? 장치 자체에는 분명 스피커가 있는데 왜 안되는걸까..

[링크 : https://dlpworld.jpg3.kr/pjmania/catalogue/sk_smartbeam_manual.pdf]

[링크 : https://prod.danawa.com/info/?pcode=1924494]

 

cu 편의점택배 선불로 보내주셨다.

 

상태가 좋진 않은데 보내주실때 안켜지는것 같다고 해서 일단 분해하고 땜질해보려고 시도!

 

뒷면도 원래는 스피커 고정하는 먼가가 있어야 하는데 사라졌다.

 

그 와중에 스피커 끊어먹고 땜질 -_ㅠ

 

micro HDMI에 micro USB.

전원 버튼도 사라져서 손톱으로 눌리지 않는다.

 

인증번호로 찾은 모델명 IC200T

요즘은 보기 힘든어진 MHL

 

켜면 로고 이후에 깔끔한 디자인의 연결 아이콘이 뜬다.

 

대충 60cm 거리에 15인치 급?

해상도는 640x480으로 뜨는데 HDMI 사운드로 잡히지 않는다. 머가 문제지?

 

대충 1미터에 32인치 급?

 

전원을 누르면 깔끔한 아이콘과 함께 good bye~

'하드웨어 > Display 장비' 카테고리의 다른 글

lg pw700 지름 + 3d  (4) 2025.10.26
benq mp780st 마운트  (0) 2025.10.19
3d dlp 120Hz가 왜 망했냐면..  (0) 2023.08.27
benq part 3.. HDMI 720p120  (0) 2023.08.21
3d 영상을 리눅스에서 재생하기  (0) 2023.08.20
Posted by 구차니

def main() 이 없으니까

독립적으로 실행중인지, import 되어 다른데서 실행을 하는건지 알 필요가 있을때

아래의 문구를 통해서 실행하거나 라이브러리로 작동시키거나 할 수 있다.

if __name__ == "__main__":
    print("run!")

 

[링크 : https://dev-jy.tistory.com/14]

Posted by 구차니

gpt와 검색을 버무려서~

 

pip로 대~~~충 flask 설치하고

Flask 에 static_url_path와 static_folder 를 설정해서 정적으로 서빙할 경로를 지정한다.

template_folder는 template engine를 위한 경로 같긴한데, 지금은 그걸 하려는게 아니니 패스~ 하고

 

/ 로 요청이 들어오면 index.html을 던지도록 라우터 하나 설정하고

나머지는 자동으로 static 경로 하위에서 제공

그리고 /api 쪽은 별도로 라우터 지정해서 2개의 api를 생성해준다.

 

/app.py

from flask import Flask, jsonify, render_template

app = Flask(__name__,
            static_url_path='', 
            static_folder='static',
            template_folder='templates')

@app.route('/')
def serve_index():
    return app.send_static_file('index.html')

# REST API 라우트
@app.route('/api/hello')
def api_hello():
    return jsonify({"message": "Hello, this is a REST API response!"})

# 또 다른 REST API
@app.route('/api/sum/<int:a>/<int:b>')
def api_sum(a, b):
    return jsonify({"a": a, "b": b, "sum": a + b})


if __name__ == "__main__":
    # 디버그 모드 실행
    app.run(debug=True)

 

/static/index.html

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Flask Static + REST API</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
    <h1>Hello Flask</h1>
    <p>이 페이지는 Flask가 제공하는 정적 웹입니다.</p>

    <button onclick="callApi()">API 호출</button>
    <p id="result"></p>

    <script>
        async function callApi() {
            const res = await fetch("/api/hello");
            const data = await res.json();
            document.getElementById("result").innerText = data.message;
        }
    </script>
</body>
</html>

 

/static/test.html

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Flask Static + REST API</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
    <h1>this is test</h1>
</body>
</html>

 

/static/style.css

body {
    font-family: sans-serif;
    background: #f0f0f0;
    padding: 20px;
}
h1 {
    color: darkblue;
}

 

[링크 : https://stackoverflow.com/questions/20646822/how-to-serve-static-files-in-flask]

 

 

$ python3 app.py
 * Serving Flask app 'app'
 * Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:5000
Press CTRL+C to quit
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 997-788-229

 

웹에서 접속하면 아래처럼 뜨는데

보니 template 엔진을 이용해서 치환하도록 해놨어서 css가 안 읽혔군

127.0.0.1 - - [29/Sep/2025 10:48:26] "GET / HTTP/1.1" 304 -
127.0.0.1 - - [29/Sep/2025 10:48:26] "GET /{{%20url_for('static',%20filename='style.css')%20}} HTTP/1.1" 404 -

 

그럼 template 안쓸꺼니 수정해보자

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Flask Static + REST API</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <h1>Hello Flask</h1>
    <p>이 페이지는 Flask가 제공하는 정적 웹입니다.</p>

    <button onclick="callApi()">API 호출</button>
    <p id="result"></p>

    <script>
        async function callApi() {
            const res = await fetch("/api/hello");
            const data = await res.json();
            document.getElementById("result").innerText = data.message;
        }
    </script>
</body>
</html>

 

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Flask Static + REST API</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <h1>this is test</h1>
</body>
</html>

 

이쁘게 잘나온다. 그런데 처음 접속하면 static web이라도 제법 느린데 캐싱이 안되나?

 

localhost:5000/

localhost:5000/index.html

localhost:5000/test.html

localhost:5000/api/hello

localhost:5000/api/sum/2/3

'Programming > python(파이썬)' 카테고리의 다른 글

python switch-case -> match-case  (0) 2025.10.11
python __name__  (0) 2025.09.29
python simsimd  (0) 2025.08.28
python 원하는 버전 설치 및 연결하기  (0) 2025.08.26
pip 패키지 완전 삭제하기  (0) 2025.08.13
Posted by 구차니

게임내에서 제공되는 텔레메트리 정보인데

프로토콜에서 제공되는 내용보다 더 다양한거 같다?

켜놓으면 재미있긴 한데 지도가 사라져서 아쉽..

 

없어 보이는 데이터로는

손상 /  타이어 온도 / 타이어 정보(압력)

 

여기부터는 udp telemetry에 있는 값들 같다.

Posted by 구차니
게임2025. 9. 27. 22:46

이 게임을 구매했던 가장 큰 이유!

오로라를 보고 싶어서!!

 

오늘 설치하고

레고 에서 빠져나와서

미션 몇 개 하다가

산장 하나 구매하고

버기 탔더니

갑자기 계절이 바뀌더니

먼가 갑자기 열려서 고고!

 

아 오로라 만세!

 

'게임' 카테고리의 다른 글

forza horizon 4 - 가을시즌 획득!  (0) 2024.11.24
flight simulator X  (0) 2021.06.27
magicka chapter 9 포기 -_ㅠ  (0) 2020.04.01
magicka 포기?  (0) 2020.03.30
magicka 챕터 4까지 완료!  (0) 2020.03.21
Posted by 구차니

dvb 재생등을 위해 마우스 이벤트를 처리할 수 있을 것 같은데

navigationtest 라는 엘리먼트는 보이는데 이게 gstnavigation과 같은건가 확신이 안선다.

 

[링크 : https://gstreamer.freedesktop.org/documentation/video/gstnavigation.html?gi-language=c]

[링크 : https://gstreamer.freedesktop.org/documentation/plugin-development/advanced/events.html?gi-language=c]

[링크 : https://gstreamer.freedesktop.org/documentation/navigationtest/index.html?gi-language=c]

'프로그램 사용 > gstreamer' 카테고리의 다른 글

GstPipelineStudio on odroidc2  (0) 2025.09.21
GstPipelineStudio install on armbian  (0) 2025.09.20
GstPipelineStudio install 실패  (0) 2025.09.20
gstpipelinestudio  (0) 2025.09.11
gstreamer 기초  (0) 2025.08.27
Posted by 구차니
Linux/Ubuntu2025. 9. 26. 18:37

타임스탬프를 매 엔터마다 강제로 넣어주고 싶을때 쓰는 유틸리티

timestamp 에서 ts를 빼온것 같은데 정작 패키지 명은 moreutils다

 

[링크 : https://da-nika.tistory.com/194]

'Linux > Ubuntu' 카테고리의 다른 글

기본 터미널 변경하기  (0) 2025.09.22
intel dri 3?  (0) 2025.08.12
csvtool  (0) 2025.07.11
ubuntu dhcp lease log  (0) 2025.07.01
우분투에서 스타크래프트 시도.. 실패  (0) 2025.06.28
Posted by 구차니