a few docs/instructions on the new report php file

This commit is contained in:
Callan Bryant 2020-05-24 10:22:39 +01:00
parent 24446bc3d1
commit fb6ccee193
No known key found for this signature in database
GPG Key ID: C31FA9DF3ACBFFAA
3 changed files with 8 additions and 0 deletions

View File

@ -253,6 +253,10 @@ The report can be converted, for instance, into a HTML table as below:
![dsnet report table](https://raw.githubusercontent.com/naggie/dsnet/master/etc/report.png)
See
[etc/README.md](https://github.com/naggie/dsnet/blob/master/etc/dsnetreport.html)
for hugo and PHP code for rendering a similar table.
# FAQ
> Does dsnet support IPv6?

2
etc/README.md Normal file
View File

@ -0,0 +1,2 @@
* `dsnetreport.php`: A php file to render a report.
* `dsnetreport.html`: A hugo shortcode for rendering a report. See https://github.com/naggie/dsnet/issues/4#issuecomment-632928158 for background.

View File

@ -1,5 +1,7 @@
<?php
// Thanks to github.com/Write. See https://github.com/naggie/dsnet/issues/4#issuecomment-632928158 for background.
/* Look for dsnetreport.json in current directory */
/* Change "ReportFile": "/var/lib/dsnetreport.json" accordingly */
/* Also add a crontab to run "dsnet report" to refresh the dsnetreport file */