Hey Bob,
thanks for getting in touch.
I had no idea that too many people are still active around the IPCop community, but welcome to IPFire.
I guess this would be a great addition to IPFire although I could not find out which modems are supported. Is there any (bigger?) ISP handing out any compatible ones?
I had a look at the code that you linked and that looks quite good. It's clean and tidy and I think porting that over would not be too hard. However, we don't run the perl scripts any more to collect stats. We use collectd in IPFire 2.
Since we should not run the cron job to collect data for every since even when it doesn't have a compatible device, we should make this an add-on.
What you will need to do is check out the build system as described here:
https://wiki.ipfire.org/devel/ipfire-2.x/build-howto
Then you would have to create a file called lfs/adslmonitor or something similar and roughly follow these steps:
https://wiki.ipfire.org/devel/ipfire-2.x/addon-howto
I guess a good example to follow would be guardian which is also an add-on written in perl:
https://git.ipfire.org/?p=ipfire-2.x.git;a=blob;f=lfs/guardian;h=f3001c82128...
To add a button to the navigation, you will have to add a file with some information to /var/ipfire/menu.d. They are here in the source:
https://git.ipfire.org/?p=ipfire-2.x.git;a=tree;f=config/menu;h=64cd8c177135...
Just dropping a file into that directory will do it.
I hope that this gives you some good guidance. If you have any further questions please ask at any time.
Best, -Michael
On Tue, 2018-01-09 at 15:34 +0000, Bob Brewer wrote:
Hi
I am the author of the adslmonitor addon for ipcop (https://sourceforge.net/projects/adslmonitor/) and looking at porting it to ipfire.
I assume that I would need to use Pakfire to install the addon but I have so far been unsuccessful in finding any documentation that would help me modify the ipcop addon to be compatible with Ipfire (eg the Ipfire equivalent of the Ipcop command updatemenu.pl which adds the adslmonitor perl scripts to the cgi menus).
Could someone could point me to the relevant documentation.
Kind Regards
Bob