![]() ![]() # Device configuration syntax: # name = device # name : used in the URL mapping # device : device name # args : (optional) see device driver doc # Devices configured here are mapped on REST API /device/name # Devices are also accessible in custom scripts using deviceInstance(name) # See device driver doc for methods and URI scheme available # Raspberry native UART on GPIO, uncomment to enable # Don't forget to remove console on ttyAMA0 in /boot/cmdline.txt # And also disable getty on ttyAMA0 in /etc/inittab serial0 = Serial device:ttyAMA0 baudrate: 9600 # USB serial adapters usb0 = Serial device:ttyUSB0 baudrate: 9600 adc = MCP3008 See supported devices page for more information about devices, board and components you can use with webiopi. Myscript = /home/pi /webiopi/examples /scripts/macros /script.py Device registration You can add setup/loop/destroy function as well as register macros. You can also reset GPIO with WebIOPi shutdown. 21 = INĢ3 = OUT 0 24 = OUT 0 25 = OUT 1 GPIO reset You can set default GPIO setup at WebIOPi startup. enabled = true port = 5683 multicast = true GPIO setup By default, multicasting is enabled, you can disable it here. You can also enable or disable the CoAP server and change its port. enabled = true port = 8000 passwd-file = /etc/webiopi/passwdĭoc-root = /home/pi/webiopi/examples/scripts/macros You can also change the passwd file location and folder to look up for HTML files. You can enable or disable the HTTP as well as changing the port. The webiopi service use /etc/webiopi/config as a configuration file. Several section containing key=value pairs. The syntax is the same as windows INI files. ![]() The configuration file allows to setup the WebIOPi server when using webiopi command or service. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |