Monitor network data usage

It could be useful to monitor network data usage, especially on a 750-8217, to avoid a bad surprise on your mobile operator’s bill.

With the vnstat package, you can monitor the data consumed on each interface.
It provides a simple but efficient webpage to get access to information.
You can also export data as JSON output, or even get information using command line.
A script could be easilly set up to get the data in the IEC61131 program using the WagoAppConfigTool library.

A dockerised version of this application can be found here :
https://github.com/vergoh/vnstat-docker

You can easily set it up using the following command :

docker run -d \
    --restart=unless-stopped \
    --network=host \
    -e HTTP_PORT=8685 \
    -v /etc/localtime:/etc/localtime:ro \
    -v /etc/timezone:/etc/timezone:ro \
    --name vnstat \
    vergoh/vnstat

Enjoy !

4 Likes