@hg6806 sagte in Internet-Traffic anzeigen lassen:
@aleks-83 Kannst du mal die Einstellungen von Flot posten? Irgendwie bekomme ich das nicht so schön hin.
Sorry, habs voll übersehen.
Vielleicht hilft es dir ja noch!?
Hier mein FLOT:
http://10.0.0.12:8083/flot/index.html?range=30&zoom=true&axeX=lines&axeY=inside&hoverDetail=true&aggregate=onchange&chartType=step&live=10&instance=history.0&l%5B0%5D%5Bid%5D=javascript.0.FritzBoxTraffic.ByteReceiveRateMBit&l%5B0%5D%5Boffset%5D=0&l%5B0%5D%5Baggregate%5D=minmax&l%5B0%5D%5Bcolor%5D=%2327a818&l%5B0%5D%5Bthickness%5D=3&l%5B0%5D%5Bshadowsize%5D=3&l%5B0%5D%5Bsmoothing%5D=1&l%5B0%5D%5BafterComma%5D=0&l%5B0%5D%5BignoreNull%5D=true&l%5B0%5D%5BchartType%5D=line&l%5B0%5D%5BcommonYAxis%5D=1&l%5B0%5D%5Bdashes%5D=false&l%5B0%5D%5BdashLength%5D=10&l%5B0%5D%5BspaceLength%5D=10&l%5B0%5D%5Bname%5D=Download&l%5B0%5D%5Bmin%5D=0&l%5B0%5D%5Bxaxe%5D=bottom&l%5B0%5D%5Bunit%5D=MBit%2Fs&l%5B0%5D%5Bfill%5D=1&l%5B0%5D%5Bmax%5D=55&l%5B0%5D%5Bpoints%5D=false&l%5B0%5D%5Byaxe%5D=right&l%5B1%5D%5Bid%5D=javascript.0.FritzBoxTraffic.ByteSendRateMB&l%5B1%5D%5Boffset%5D=0&l%5B1%5D%5Baggregate%5D=minmax&l%5B1%5D%5Bcolor%5D=%230004ff&l%5B1%5D%5Bmin%5D=0&l%5B1%5D%5Bmax%5D=6.875&l%5B1%5D%5Bthickness%5D=3&l%5B1%5D%5Bshadowsize%5D=3&l%5B1%5D%5Bunit%5D=MB%2Fs&l%5B1%5D%5Bname%5D=Upload&l%5B1%5D%5Byaxe%5D=off&l%5B1%5D%5Bxaxe%5D=off&l%5B1%5D%5Bfill%5D=0&l%5B1%5D%5BafterComma%5D=0&l%5B1%5D%5Bdashes%5D=false&l%5B1%5D%5BdashLength%5D=10&l%5B1%5D%5BspaceLength%5D=10&aggregateType=count&aggregateSpan=1800&relativeEnd=now&timeType=relative&noBorder=noborder&timeFormat=%25H%3A%25M+%25d.%25m&useComma=true&noedit=true&animation=500&bg=2&x_labels_color=%23000000&barLabels=topunder&barFontColor=%23ffffff&titleColor=%23ffffff&barColor=%23&y_labels_color=%23000000&titleSize=12&legBgOpacity=1&grid_color=%23969696&legColumns=1&legBg=%23ffffff&window_bg=%23545454&title=Spritpreise&titlePos=top%3A35%3Bleft%3A65&legend=nw
Das allein wird dir aber nicht reichen.
Hier werden quasi die History EInträge zweier von mir angelegter Datenpunkte im FLOT dargestellt.
javascript.0.FritzBoxTraffic.ByteReceiveRateMBit
javascript.0.FritzBoxTraffic.ByteReceiveRateMB
Diese generieren sich wie folgt:
schedule("*/5 * * * * *", function () {
setState("upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetAddonInfos.request"/*Initiate poll*/, true);
});
on({id: "upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetAddonInfos.NewByteReceiveRate"/*NewByteReceiveRate*/, change: "ne"}, function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
setState("javascript.0.FritzBoxTraffic.ByteReceiveRateMBit"/*ByteReceiveRateMBit*/, (Math.round(getState("upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetAddonInfos.NewByteReceiveRate").val / 131072)));
setState("javascript.0.FritzBoxTraffic.ByteReceiveRateMB"/*ByteReceiveRateMB*/, (Math.round((getState("upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetAddonInfos.NewByteReceiveRate").val / 131072) * 8)));
});
on({id: "upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetAddonInfos.NewByteSendRate"/*NewByteSendRate*/, change: "ne"}, function (obj) {
var value = obj.state.val;
var oldValue = obj.oldState.val;
setState("javascript.0.FritzBoxTraffic.ByteSendRateMBit"/*ByteSendRateMBit*/, (Math.round(getState("upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetAddonInfos.NewByteSendRate").val / 131072)));
setState("javascript.0.FritzBoxTraffic.ByteSendRateMB"/*ByteSendRateMB*/, (Math.round(getState("upnp.0.WANDevice_-_FRITZ!Box_7490.WANDevice.WANCommonInterfaceConfig.GetAddonInfos.NewByteSendRate").val / (131072 * 8))));
});
Das funktioniert bei mir auch sehr genau und zufriedenstellend.