Closed Paku- closed 9 years ago
Logging is enabled in the system logs located at /var/log/GPIOServer.log. I didn't see the need to log into mysql since it is the bash script that does all of the dirty work.. I just used the system logs.
But the user does not have access there ... only the web page.
There is no way now to connect and see what happened in the system /on the PINs/ last days...
You're right, there isn't a way to check the log from the browser, but you can check it from the Pi itself, or via SSH. I'll have to think if there is a good way to have the log accessible via web.
Think like the user not the admin :)
Edit:
http://stackoverflow.com/questions/17997558/bash-script-to-insert-values-in-mysql
This is now partially fixed in 3f934ccafee0daec74609a46c77460fd76a60cfc. The log is not yet displayed to the user at this time.
Fixed in 4b1451bfdac525da6cf35ec75569186fb7da9846
MySQL log table would be a nice enhancement. (PIN state change per row)