I did not get your point at this, devision by 2 to make it per second? I wanted to get result in Meba Bytes so I have done below things
round(int(meas_2['netdev']['INTERNET_tx'], base=16) / 1024 / 1024)
it works perfect, I have tested by downloading 100 Mega Bytes file.
At least division by 2 is not giving me correct result.
Sorry if I am wrong, explain me, thanks, by the way nice article. I have used this script on Raspberry Pi.