edirpedro / vnstat-reports

A PHP version for vnStat Reports
2 stars 1 forks source link

Error vnstat #1

Open elRadix opened 8 years ago

elRadix commented 8 years ago

Hi,

I receive the below message, can you please how this can be fixed?

Fatal error: Call to undefined function json_decode() in /tmp/mnt/opt/entware-ng.arm/share/www/net/helpers.php on line 228

json output: {"vnstatversion":"1.15","jsonversion":"1","interfaces":[{"id":"br0","nick":"br0","created":{"date":{"year":2016,"month":9,"day":19}},"updated":{"date":{"year":2016,"month":9,"day":21},"time":{"hour":18,"minutes":43}},"traffic":{"total":{"rx":17869192,"tx":18128960},"days":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":4580627,"tx":10817315},{"id":1,"date":{"year":2016,"month":9,"day":20},"rx":9455251,"tx":4441513},{"id":2,"date":{"year":2016,"month":9,"day":19},"rx":3833314,"tx":2870132}],"months":[{"id":0,"date":{"year":2016,"month":9},"rx":17869192,"tx":18128960}],"tops":[{"id":0,"date":{"year":2016,"month":9,"day":20},"time":{"hour":0,"minutes":0},"rx":9455251,"tx":4441513},{"id":1,"date":{"year":2016,"month":9,"day":19},"time":{"hour":20,"minutes":16},"rx":3833314,"tx":2870132}],"hours":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":9743,"tx":45464},{"id":1,"date":{"year":2016,"month":9,"day":21},"rx":8474,"tx":54363},{"id":2,"date":{"year":2016,"month":9,"day":21},"rx":33046,"tx":1051669},{"id":3,"date":{"year":2016,"month":9,"day":21},"rx":37982,"tx":1124199},{"id":4,"date":{"year":2016,"month":9,"day":21},"rx":8540,"tx":84105},{"id":5,"date":{"year":2016,"month":9,"day":21},"rx":9843,"tx":97433},{"id":6,"date":{"year":2016,"month":9,"day":21},"rx":116381,"tx":4931219},{"id":7,"date":{"year":2016,"month":9,"day":21},"rx":25224,"tx":372203},{"id":8,"date":{"year":2016,"month":9,"day":21},"rx":25044,"tx":184483},{"id":9,"date":{"year":2016,"month":9,"day":21},"rx":52569,"tx":81069},{"id":10,"date":{"year":2016,"month":9,"day":21},"rx":30217,"tx":343253},{"id":11,"date":{"year":2016,"month":9,"day":21},"rx":636151,"tx":164121},{"id":12,"date":{"year":2016,"month":9,"day":21},"rx":306693,"tx":314514},{"id":13,"date":{"year":2016,"month":9,"day":21},"rx":13961,"tx":147062},{"id":14,"date":{"year":2016,"month":9,"day":21},"rx":744496,"tx":206399},{"id":15,"date":{"year":2016,"month":9,"day":21},"rx":2163715,"tx":730320},{"id":16,"date":{"year":2016,"month":9,"day":21},"rx":21848,"tx":612550},{"id":17,"date":{"year":2016,"month":9,"day":21},"rx":24920,"tx":98833},{"id":18,"date":{"year":2016,"month":9,"day":21},"rx":311780,"tx":174056},{"id":19,"date":{"year":2016,"month":9,"day":20},"rx":2455321,"tx":325134},{"id":20,"date":{"year":2016,"month":9,"day":20},"rx":2313247,"tx":580559},{"id":21,"date":{"year":2016,"month":9,"day":20},"rx":2244367,"tx":188385},{"id":22,"date":{"year":2016,"month":9,"day":20},"rx":429809,"tx":131082},{"id":23,"date":{"year":2016,"month":9,"day":20},"rx":214306,"tx":103028}]}},{"id":"v6tun0","nick":"v6tun0","created":{"date":{"year":2016,"month":9,"day":19}},"updated":{"date":{"year":2016,"month":9,"day":21},"time":{"hour":18,"minutes":43}},"traffic":{"total":{"rx":4552683,"tx":4244752},"days":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":2655340,"tx":4092158},{"id":1,"date":{"year":2016,"month":9,"day":20},"rx":1565324,"tx":125394},{"id":2,"date":{"year":2016,"month":9,"day":19},"rx":332019,"tx":27200}],"months":[{"id":0,"date":{"year":2016,"month":9},"rx":4552683,"tx":4244752}],"tops":[{"id":0,"date":{"year":2016,"month":9,"day":20},"time":{"hour":0,"minutes":0},"rx":1565324,"tx":125394},{"id":1,"date":{"year":2016,"month":9,"day":19},"time":{"hour":20,"minutes":17},"rx":332019,"tx":27200}],"hours":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":1604,"tx":962},{"id":1,"date":{"year":2016,"month":9,"day":21},"rx":6177,"tx":2530},{"id":2,"date":{"year":2016,"month":9,"day":21},"rx":17887,"tx":3623},{"id":3,"date":{"year":2016,"month":9,"day":21},"rx":17708,"tx":2538},{"id":4,"date":{"year":2016,"month":9,"day":21},"rx":1822,"tx":480},{"id":5,"date":{"year":2016,"month":9,"day":21},"rx":16350,"tx":1267},{"id":6,"date":{"year":2016,"month":9,"day":21},"rx":2235949,"tx":4030497},{"id":7,"date":{"year":2016,"month":9,"day":21},"rx":166652,"tx":5281},{"id":8,"date":{"year":2016,"month":9,"day":21},"rx":29294,"tx":3489},{"id":9,"date":{"year":2016,"month":9,"day":21},"rx":6257,"tx":2839},{"id":10,"date":{"year":2016,"month":9,"day":21},"rx":5603,"tx":4889},{"id":11,"date":{"year":2016,"month":9,"day":21},"rx":12250,"tx":5838},{"id":12,"date":{"year":2016,"month":9,"day":21},"rx":51314,"tx":9073},{"id":13,"date":{"year":2016,"month":9,"day":21},"rx":11299,"tx":2063},{"id":14,"date":{"year":2016,"month":9,"day":21},"rx":5606,"tx":3974},{"id":15,"date":{"year":2016,"month":9,"day":21},"rx":10945,"tx":4334},{"id":16,"date":{"year":2016,"month":9,"day":21},"rx":27545,"tx":2428},{"id":17,"date":{"year":2016,"month":9,"day":21},"rx":19313,"tx":3608},{"id":18,"date":{"year":2016,"month":9,"day":21},"rx":11765,"tx":2445},{"id":19,"date":{"year":2016,"month":9,"day":20},"rx":212698,"tx":9211},{"id":20,"date":{"year":2016,"month":9,"day":20},"rx":362017,"tx":15042},{"id":21,"date":{"year":2016,"month":9,"day":20},"rx":31264,"tx":3089},{"id":22,"date":{"year":2016,"month":9,"day":20},"rx":101618,"tx":4300},{"id":23,"date":{"year":2016,"month":9,"day":20},"rx":74066,"tx":3824}]}},{"id":"vlan2","nick":"vlan2","created":{"date":{"year":2016,"month":9,"day":19}},"updated":{"date":{"year":2016,"month":9,"day":21},"time":{"hour":18,"minutes":43}},"traffic":{"total":{"rx":0,"tx":0},"days":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":1,"date":{"year":2016,"month":9,"day":20},"rx":0,"tx":0},{"id":2,"date":{"year":2016,"month":9,"day":19},"rx":0,"tx":0}],"months":[{"id":0,"date":{"year":2016,"month":9},"rx":0,"tx":0}],"tops":[],"hours":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":1,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":2,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":3,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":4,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":5,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":6,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":7,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":8,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":9,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":10,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":11,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":12,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":13,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":14,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":15,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":16,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":17,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":18,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":0},{"id":19,"date":{"year":2016,"month":9,"day":20},"rx":0,"tx":0},{"id":20,"date":{"year":2016,"month":9,"day":20},"rx":0,"tx":0},{"id":21,"date":{"year":2016,"month":9,"day":20},"rx":0,"tx":0},{"id":22,"date":{"year":2016,"month":9,"day":20},"rx":0,"tx":0},{"id":23,"date":{"year":2016,"month":9,"day":20},"rx":0,"tx":0}]}},{"id":"ppp0","nick":"ppp0","created":{"date":{"year":2016,"month":9,"day":19}},"updated":{"date":{"year":2016,"month":9,"day":21},"time":{"hour":18,"minutes":43}},"traffic":{"total":{"rx":15320871,"tx":15562499},"days":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":10447675,"tx":4485939},{"id":1,"date":{"year":2016,"month":9,"day":20},"rx":4057586,"tx":9352527},{"id":2,"date":{"year":2016,"month":9,"day":19},"rx":815610,"tx":1724033}],"months":[{"id":0,"date":{"year":2016,"month":9},"rx":15320871,"tx":15562499}],"tops":[{"id":0,"date":{"year":2016,"month":9,"day":20},"time":{"hour":0,"minutes":0},"rx":4057586,"tx":9352527},{"id":1,"date":{"year":2016,"month":9,"day":19},"time":{"hour":20,"minutes":16},"rx":815610,"tx":1724033}],"hours":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":33832,"tx":7093},{"id":1,"date":{"year":2016,"month":9,"day":21},"rx":42913,"tx":6153},{"id":2,"date":{"year":2016,"month":9,"day":21},"rx":1030310,"tx":30842},{"id":3,"date":{"year":2016,"month":9,"day":21},"rx":1101907,"tx":35746},{"id":4,"date":{"year":2016,"month":9,"day":21},"rx":72145,"tx":5887},{"id":5,"date":{"year":2016,"month":9,"day":21},"rx":85455,"tx":7301},{"id":6,"date":{"year":2016,"month":9,"day":21},"rx":4848718,"tx":91951},{"id":7,"date":{"year":2016,"month":9,"day":21},"rx":355080,"tx":19888},{"id":8,"date":{"year":2016,"month":9,"day":21},"rx":172252,"tx":20367},{"id":9,"date":{"year":2016,"month":9,"day":21},"rx":70840,"tx":48890},{"id":10,"date":{"year":2016,"month":9,"day":21},"rx":333622,"tx":26676},{"id":11,"date":{"year":2016,"month":9,"day":21},"rx":151760,"tx":634295},{"id":12,"date":{"year":2016,"month":9,"day":21},"rx":296010,"tx":300613},{"id":13,"date":{"year":2016,"month":9,"day":21},"rx":135111,"tx":11270},{"id":14,"date":{"year":2016,"month":9,"day":21},"rx":184039,"tx":738205},{"id":15,"date":{"year":2016,"month":9,"day":21},"rx":698293,"tx":2158839},{"id":16,"date":{"year":2016,"month":9,"day":21},"rx":589234,"tx":17726},{"id":17,"date":{"year":2016,"month":9,"day":21},"rx":73272,"tx":16002},{"id":18,"date":{"year":2016,"month":9,"day":21},"rx":172882,"tx":308195},{"id":19,"date":{"year":2016,"month":9,"day":20},"rx":288555,"tx":2446594},{"id":20,"date":{"year":2016,"month":9,"day":20},"rx":546531,"tx":2307597},{"id":21,"date":{"year":2016,"month":9,"day":20},"rx":163233,"tx":2241233},{"id":22,"date":{"year":2016,"month":9,"day":20},"rx":117789,"tx":427987},{"id":23,"date":{"year":2016,"month":9,"day":20},"rx":89794,"tx":212409}]}},{"id":"eth0","nick":"eth0","created":{"date":{"year":2016,"month":9,"day":19}},"updated":{"date":{"year":2016,"month":9,"day":21},"time":{"hour":18,"minutes":43}},"traffic":{"total":{"rx":23800147,"tx":22601984},"days":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":7942960,"tx":7357834},{"id":1,"date":{"year":2016,"month":9,"day":20},"rx":12665804,"tx":12124499},{"id":2,"date":{"year":2016,"month":9,"day":19},"rx":3191383,"tx":3119651}],"months":[{"id":0,"date":{"year":2016,"month":9},"rx":23800147,"tx":22601984}],"tops":[{"id":0,"date":{"year":2016,"month":9,"day":20},"time":{"hour":0,"minutes":0},"rx":12665804,"tx":12124499},{"id":1,"date":{"year":2016,"month":9,"day":19},"time":{"hour":20,"minutes":16},"rx":3191383,"tx":3119651}],"hours":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":42442,"tx":52099},{"id":1,"date":{"year":2016,"month":9,"day":21},"rx":53302,"tx":61002},{"id":2,"date":{"year":2016,"month":9,"day":21},"rx":102496,"tx":109653},{"id":3,"date":{"year":2016,"month":9,"day":21},"rx":273149,"tx":278169},{"id":4,"date":{"year":2016,"month":9,"day":21},"rx":83259,"tx":90586},{"id":5,"date":{"year":2016,"month":9,"day":21},"rx":94306,"tx":47947},{"id":6,"date":{"year":2016,"month":9,"day":21},"rx":51692,"tx":62940},{"id":7,"date":{"year":2016,"month":9,"day":21},"rx":375565,"tx":109952},{"id":8,"date":{"year":2016,"month":9,"day":21},"rx":192309,"tx":171598},{"id":9,"date":{"year":2016,"month":9,"day":21},"rx":83563,"tx":72178},{"id":10,"date":{"year":2016,"month":9,"day":21},"rx":357746,"tx":354459},{"id":11,"date":{"year":2016,"month":9,"day":21},"rx":799511,"tx":767192},{"id":12,"date":{"year":2016,"month":9,"day":21},"rx":603222,"tx":455583},{"id":13,"date":{"year":2016,"month":9,"day":21},"rx":149074,"tx":140628},{"id":14,"date":{"year":2016,"month":9,"day":21},"rx":936258,"tx":943912},{"id":15,"date":{"year":2016,"month":9,"day":21},"rx":2526298,"tx":2524682},{"id":16,"date":{"year":2016,"month":9,"day":21},"rx":625252,"tx":616346},{"id":17,"date":{"year":2016,"month":9,"day":21},"rx":102058,"tx":115637},{"id":18,"date":{"year":2016,"month":9,"day":21},"rx":491458,"tx":383271},{"id":19,"date":{"year":2016,"month":9,"day":20},"rx":2815808,"tx":2814714},{"id":20,"date":{"year":2016,"month":9,"day":20},"rx":2925133,"tx":2785186},{"id":21,"date":{"year":2016,"month":9,"day":20},"rx":2465904,"tx":2430495},{"id":22,"date":{"year":2016,"month":9,"day":20},"rx":557491,"tx":465032},{"id":23,"date":{"year":2016,"month":9,"day":20},"rx":297760,"tx":246197}]}},{"id":"ifb0","nick":"ifb0","created":{"date":{"year":2016,"month":9,"day":19}},"updated":{"date":{"year":2016,"month":9,"day":19},"time":{"hour":20,"minutes":50}},"traffic":{"total":{"rx":0,"tx":0},"days":[{"id":0,"date":{"year":2016,"month":9,"day":19},"rx":0,"tx":0}],"months":[{"id":0,"date":{"year":2016,"month":9},"rx":0,"tx":0}],"tops":[],"hours":[{"id":20,"date":{"year":2016,"month":9,"day":19},"rx":0,"tx":0}]}},{"id":"eth2","nick":"eth2","created":{"date":{"year":2016,"month":9,"day":19}},"updated":{"date":{"year":2016,"month":9,"day":21},"time":{"hour":18,"minutes":43}},"traffic":{"total":{"rx":354338,"tx":2044140},"days":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":154489,"tx":890034},{"id":1,"date":{"year":2016,"month":9,"day":20},"rx":173869,"tx":909867},{"id":2,"date":{"year":2016,"month":9,"day":19},"rx":25980,"tx":244239}],"months":[{"id":0,"date":{"year":2016,"month":9},"rx":354338,"tx":2044140}],"tops":[{"id":0,"date":{"year":2016,"month":9,"day":20},"time":{"hour":0,"minutes":0},"rx":173869,"tx":909867},{"id":1,"date":{"year":2016,"month":9,"day":19},"time":{"hour":20,"minutes":16},"rx":25980,"tx":244239}],"hours":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":3259,"tx":4191},{"id":1,"date":{"year":2016,"month":9,"day":21},"rx":485,"tx":3130},{"id":2,"date":{"year":2016,"month":9,"day":21},"rx":225,"tx":2674},{"id":3,"date":{"year":2016,"month":9,"day":21},"rx":771,"tx":3807},{"id":4,"date":{"year":2016,"month":9,"day":21},"rx":751,"tx":3726},{"id":5,"date":{"year":2016,"month":9,"day":21},"rx":4218,"tx":61355},{"id":6,"date":{"year":2016,"month":9,"day":21},"rx":622,"tx":3346},{"id":7,"date":{"year":2016,"month":9,"day":21},"rx":15971,"tx":291438},{"id":8,"date":{"year":2016,"month":9,"day":21},"rx":12444,"tx":39136},{"id":9,"date":{"year":2016,"month":9,"day":21},"rx":45608,"tx":64381},{"id":10,"date":{"year":2016,"month":9,"day":21},"rx":15352,"tx":22712},{"id":11,"date":{"year":2016,"month":9,"day":21},"rx":11981,"tx":47964},{"id":12,"date":{"year":2016,"month":9,"day":21},"rx":17244,"tx":171269},{"id":13,"date":{"year":2016,"month":9,"day":21},"rx":5138,"tx":22468},{"id":14,"date":{"year":2016,"month":9,"day":21},"rx":11399,"tx":5964},{"id":15,"date":{"year":2016,"month":9,"day":21},"rx":1081,"tx":6195},{"id":16,"date":{"year":2016,"month":9,"day":21},"rx":1307,"tx":22485},{"id":17,"date":{"year":2016,"month":9,"day":21},"rx":1176,"tx":4455},{"id":18,"date":{"year":2016,"month":9,"day":21},"rx":5457,"tx":109338},{"id":19,"date":{"year":2016,"month":9,"day":20},"rx":3083,"tx":6154},{"id":20,"date":{"year":2016,"month":9,"day":20},"rx":7833,"tx":151340},{"id":21,"date":{"year":2016,"month":9,"day":20},"rx":2514,"tx":40899},{"id":22,"date":{"year":2016,"month":9,"day":20},"rx":4673,"tx":106472},{"id":23,"date":{"year":2016,"month":9,"day":20},"rx":18128,"tx":79087}]}},{"id":"vlan1","nick":"vlan1","created":{"date":{"year":2016,"month":9,"day":19}},"updated":{"date":{"year":2016,"month":9,"day":21},"time":{"hour":18,"minutes":43}},"traffic":{"total":{"rx":16408262,"tx":8159300},"days":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":4306622,"tx":3287472},{"id":1,"date":{"year":2016,"month":9,"day":20},"rx":9292538,"tx":2618807},{"id":2,"date":{"year":2016,"month":9,"day":19},"rx":2809102,"tx":2253021}],"months":[{"id":0,"date":{"year":2016,"month":9},"rx":16408262,"tx":8159300}],"tops":[{"id":0,"date":{"year":2016,"month":9,"day":20},"time":{"hour":0,"minutes":0},"rx":9292538,"tx":2618807},{"id":1,"date":{"year":2016,"month":9,"day":19},"time":{"hour":20,"minutes":16},"rx":2809102,"tx":2253021}],"hours":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":6596,"tx":44189},{"id":1,"date":{"year":2016,"month":9,"day":21},"rx":8042,"tx":53958},{"id":2,"date":{"year":2016,"month":9,"day":21},"rx":12575,"tx":97364},{"id":3,"date":{"year":2016,"month":9,"day":21},"rx":17950,"tx":258755},{"id":4,"date":{"year":2016,"month":9,"day":21},"rx":7935,"tx":83412},{"id":5,"date":{"year":2016,"month":9,"day":21},"rx":5947,"tx":39463},{"id":6,"date":{"year":2016,"month":9,"day":21},"rx":22702,"tx":57198},{"id":7,"date":{"year":2016,"month":9,"day":21},"rx":11181,"tx":86619},{"id":8,"date":{"year":2016,"month":9,"day":21},"rx":13742,"tx":148578},{"id":9,"date":{"year":2016,"month":9,"day":21},"rx":6999,"tx":20414},{"id":10,"date":{"year":2016,"month":9,"day":21},"rx":14226,"tx":324066},{"id":11,"date":{"year":2016,"month":9,"day":21},"rx":627047,"tx":120686},{"id":12,"date":{"year":2016,"month":9,"day":21},"rx":291403,"tx":148048},{"id":13,"date":{"year":2016,"month":9,"day":21},"rx":9326,"tx":127433},{"id":14,"date":{"year":2016,"month":9,"day":21},"rx":730360,"tx":192454},{"id":15,"date":{"year":2016,"month":9,"day":21},"rx":2168066,"tx":724416},{"id":16,"date":{"year":2016,"month":9,"day":21},"rx":21157,"tx":594786},{"id":17,"date":{"year":2016,"month":9,"day":21},"rx":24036,"tx":97739},{"id":18,"date":{"year":2016,"month":9,"day":21},"rx":307332,"tx":67894},{"id":19,"date":{"year":2016,"month":9,"day":20},"rx":2459686,"tx":327128},{"id":20,"date":{"year":2016,"month":9,"day":20},"rx":2313418,"tx":438784},{"id":21,"date":{"year":2016,"month":9,"day":20},"rx":2247828,"tx":154420},{"id":22,"date":{"year":2016,"month":9,"day":20},"rx":426771,"tx":29339},{"id":23,"date":{"year":2016,"month":9,"day":20},"rx":197423,"tx":28138}]}},{"id":"eth1","nick":"eth1","created":{"date":{"year":2016,"month":9,"day":19}},"updated":{"date":{"year":2016,"month":9,"day":21},"time":{"hour":18,"minutes":43}},"traffic":{"total":{"rx":7225,"tx":124281},"days":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":6437,"tx":55863},{"id":1,"date":{"year":2016,"month":9,"day":20},"rx":723,"tx":57045},{"id":2,"date":{"year":2016,"month":9,"day":19},"rx":65,"tx":11373}],"months":[{"id":0,"date":{"year":2016,"month":9},"rx":7225,"tx":124281}],"tops":[{"id":0,"date":{"year":2016,"month":9,"day":20},"time":{"hour":0,"minutes":0},"rx":723,"tx":57045},{"id":1,"date":{"year":2016,"month":9,"day":19},"time":{"hour":20,"minutes":16},"rx":65,"tx":11373}],"hours":[{"id":0,"date":{"year":2016,"month":9,"day":21},"rx":12,"tx":2411},{"id":1,"date":{"year":2016,"month":9,"day":21},"rx":75,"tx":2568},{"id":2,"date":{"year":2016,"month":9,"day":21},"rx":82,"tx":2522},{"id":3,"date":{"year":2016,"month":9,"day":21},"rx":30,"tx":2456},{"id":4,"date":{"year":2016,"month":9,"day":21},"rx":12,"tx":2411},{"id":5,"date":{"year":2016,"month":9,"day":21},"rx":13,"tx":2401},{"id":6,"date":{"year":2016,"month":9,"day":21},"rx":13,"tx":2474},{"id":7,"date":{"year":2016,"month":9,"day":21},"rx":43,"tx":2235},{"id":8,"date":{"year":2016,"month":9,"day":21},"rx":12,"tx":888},{"id":9,"date":{"year":2016,"month":9,"day":21},"rx":31,"tx":1290},{"id":10,"date":{"year":2016,"month":9,"day":21},"rx":13,"tx":906},{"id":11,"date":{"year":2016,"month":9,"day":21},"rx":0,"tx":1100},{"id":12,"date":{"year":2016,"month":9,"day":21},"rx":14,"tx":1021},{"id":13,"date":{"year":2016,"month":9,"day":21},"rx":12,"tx":964},{"id":14,"date":{"year":2016,"month":9,"day":21},"rx":5182,"tx":14268},{"id":15,"date":{"year":2016,"month":9,"day":21},"rx":837,"tx":9101},{"id":16,"date":{"year":2016,"month":9,"day":21},"rx":16,"tx":2527},{"id":17,"date":{"year":2016,"month":9,"day":21},"rx":13,"tx":2482},{"id":18,"date":{"year":2016,"month":9,"day":21},"rx":27,"tx":1838},{"id":19,"date":{"year":2016,"month":9,"day":20},"rx":14,"tx":2501},{"id":20,"date":{"year":2016,"month":9,"day":20},"rx":12,"tx":2570},{"id":21,"date":{"year":2016,"month":9,"day":20},"rx":169,"tx":2749},{"id":22,"date":{"year":2016,"month":9,"day":20},"rx":29,"tx":2501},{"id":23,"date":{"year":2016,"month":9,"day":20},"rx":129,"tx":2574}]}}]}

edirpedro commented 8 years ago

Check your PHP version and update to 5.4 at least. According to documentation, json_decode() is available since PHP 5.2 (http://php.net/json_decode)

elRadix commented 8 years ago

Okay, partially fixed with 'opkg install php5-mod-json'

Now I receive the following message when I click on 'all interface' only with 4 times the error message

Warning: array_key_exists(): The first argument should be either a string or an integer in /tmp/mnt/opt/entware-ng.arm/share/www/net/helpers.php on line 72

Warning: array_key_exists(): The first argument should be either a string or an integer in /tmp/mnt/opt/entware-ng.arm/share/www/net/helpers.php on line 72

Warning: array_key_exists(): The first argument should be either a string or an integer in /tmp/mnt/opt/entware-ng.arm/share/www/net/helpers.php on line 72

Warning: array_key_exists(): The first argument should be either a string or an integer in /tmp/mnt/opt/entware-ng.arm/share/www/net/helpers.php on line 72

edirpedro commented 8 years ago

I've tested with your Json and got no errors. The message points an error on $timestamp variable in that line that came from a mktime() function that is not returning a right value.