라즈베리파이 pyWebView

pyWebView 설치

1
2
3
4
apt-get install python3-webview
apt-get install python3-pyqt5
apt-get install python3-pyqt5.qtwebkit
apt-get install libqt5webkit5-dev

주기적으로 리로딩

1
2
3
4
5
6
7
8
9
10
11
12
13
import webview
import time

def reload(window):
while True:
time.sleep(5)
window.load_url('index.html')


if __name__ == '__main__':1
window = webview.create_window('hello', 'index.html')

webview.start(reload, window, http_server=True)
공유하기