Any chance for database write permissions via WebUI?
Primarily intended at the author of advanced scripts and other add-on features in the firmware. Since the sqlite3 library is already there, I could add the sqlite3 user tool to allow scripters to store data in an sqlite3 database.
It could be limited to /www/ext, although I still don't think it's worth adding compared to just using lighttpd/nginx.And implementing callbacks to allow arbitrary writes to the filesystem would be a major security risks, since httpd has to run as root.
Yeah I considered moving from rrd to csv in the short term for chart.js, but a recent commit looks like I might just wait a little bitThis would be really nice considering the current lack of any data processing ability (technically cvs would work but ehhhh).
It could be limited to /www/ext, although I still don't think it's worth adding compared to just using lighttpd/nginx.
Whilst I do exploit creating SQL databases for my internal reporting etc., I believe currently there are only four public scripts? (three published by me) that use the sqlite3 user-space tool to read existing SQL databases, so adding the user-space tool to the firmware may have limited benefit, given most environments install Entware anyway.
..but +1 anyway.
Just curious (because I don't use Diversion) about how many different config settings you have? Generally speaking I'm strongly opposed to anything that stores simple data in a non-human-readable, binary format that relies on a specific tool to edit it "just because you can". OTOH I suppose it lets you easily update individual settings without having to re-write the entire file.Just the other day I was toying with the idea of using sqlite to store Diversions config settings and more.
Depending on the selected options, up to about 80. The problem I have is the locking and simultaneous writing to it. I try as best as I can to prevent it but the possibility is there that parts are not updated correctly when several processes want to write to the config file.Just curious (because I don't use Diversion) about how many different config settings you have? Generally speaking I'm strongly opposed to anything that stores simple data in a non-human-readable, binary format that relies on a specific tool to edit it "just because you can". OTOH I suppose it lets you easily update individual settings without having to re-write the entire file.
Will this replace Entware, then I am for this. However if all tools under AMTM still requires Entware I see no use for this. In my mind it is more a question like either Entware or sqlite3...?
No, it can't replace Entware, it is a program Entware installs.
Exactly my point ;-)
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!