I've been trying to set up index.html and script.py files in my webiopi project. My project is set up as follows: /home/pi/myproject/html/index.html and myproject/python/script.py
I started webiopi running using: sudo webiopi -d -c /etc/webiopi/config
I'm expecting to view my index.html on
http://myraspberrypi-ip:8000. but, I either get a 404 error, or the IOT Framework display pops up?
I have also seen this in a tutorial on Code:Google: "You can also put your HTML file in /usr/share/webiopi/htdocs " Webiopi seems to be getting the index.html file from htdocs not the config file?
Any idea why the webiopi/ config file settings are not being used?
The /etc/webiopi/config file is as follows:
[SCRIPTS]
# Load custom scripts syntax :
# name = sourcefile
# each sourcefile may have setup, loop and destroy functions and macros
myscript = /home/pi/myrobot/python/mybrobot.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"
# Use doc-root to change default HTML and resource files location
doc-root = /home/pi/mybrobot/html/index.html
# Use welcome-file to change the default "Welcome" file
welcome-file = index.html
Gulfboy