This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
owst:start [2020/04/08 08:39] admin |
owst:start [2020/04/08 08:42] admin [Configuration] |
||
---|---|---|---|
Line 16: | Line 16: | ||
* The user/UID under which the code of the web interface is run must have access to the same at-queue as the user/UID who runs the timer program handler. | * The user/UID under which the code of the web interface is run must have access to the same at-queue as the user/UID who runs the timer program handler. | ||
* This can be accomplished by either using the same UID for both tasks (web interface and Timer Program Handler), or to grant the web-UID access to the at-queue of the UID which handles the timer programs by using sudo. | * This can be accomplished by either using the same UID for both tasks (web interface and Timer Program Handler), or to grant the web-UID access to the at-queue of the UID which handles the timer programs by using sudo. | ||
- | |||
- | Using sudo: you need to add the following line to your / | ||
- | www-data ALL = (tph) NOPASSWD: / | ||
- | |||
- | Run at boot | ||
- | |||
- | The Timer Program Handler needs to be run at boot in order to reset the One Wire chip properly. | ||
- | |||
- | # File / | ||
- | # adapt path names as required | ||
- | | ||
- | # at reboot empty the at-queue and call tp.php to reprogram all the at-jobs (-r) and to reset the | ||
- | # switches (-m) to their required states | ||
- | @reboot | ||
- | |||
* To configure the single switches you need to edit the SQLite database table ' | * To configure the single switches you need to edit the SQLite database table ' | ||
- | ===Nginx=== | ||
- | Protect files from direct web access | ||
- | < | ||
- | location ~ / | ||
- | deny all; | ||
- | } | ||
- | </ | ||
====Further notes==== | ====Further notes==== | ||
* 1-Wire is a registered trademark of Maxim Integrated Products, Inc. | * 1-Wire is a registered trademark of Maxim Integrated Products, Inc. | ||
- | * Linux is a registered trademark of Linus Torvalds. | ||
- | |||