実現したいこと
webiopi内にmyProjectというディレクトリを作成してその中にindex.html とscript.pyのフォルダを作成しました。webiopiを起動したときにhtmlとscriptsが適応されるように設定をしたはずなのですがlocalhost:8000とラズパイのブラウザで入ろうとしてもサーバーが見つかりませんと出てきてしまいます。これの対応方法を教えてください。
webiopi/config
[SCRIPTS]
Load custom scripts syntax :
name = sourcefile
each sourcefile may have setup, loop and destroy functions and macros
#myscript = /home/pi/webiopi/examples/scripts/macros/script.py
myscript = /home/pi/WebIOPi-0.7.1/myProject/script.py
HTTP]
HTTP Server configuration
enabled = true
port = 8000
File containing sha256(base64("user:password"))
Use webiopi-passwd command to generate it
passwd-file = /etc/webiopi/passwd
Change login prompt message
prompt = "WebIOPi"
enabled = true
port = 8000
File containing sha256(base64("user:password"))
Use webiopi-passwd command to generate it
passwd-file = /etc/webiopi/passwd
Change login prompt message
prompt = "WebIOPi"
Use doc-root to change default HTML and resource files location
doc-root = /home/pi/WebIOPi-0.7.1/myProject/html
Use welcome-file to change the default "Welcome" file
#welcome-file = index.html
あなたの回答
tips
プレビュー