GithubHelp home page GithubHelp logo

Comments (13)

tomaae avatar tomaae commented on May 29, 2024

Could you export your queue config for me so I can have a look on some real settings? I dont use queues at all.
Thanks for info about translations, I have not updated to 0.109 yet.

from homeassistant-mikrotik_router.

bruxy70 avatar bruxy70 commented on May 29, 2024
# software id = B4KA-NAM9
#
# model = RB4011iGS+
# serial number = AAB10A424B92
/queue simple
add max-limit=2M/2M name=YOUTUBE packet-marks=Youtube target=bridge-main
add max-limit=4M/4M name=NETFLIX packet-marks=Netflix target=bridge-main
add max-limit=512k/512k name=APPLE packet-marks=Apple target=bridge-main
add max-limit=128k/512k name=Minecraft packet-marks=Minecraft target=bridge-main

It uses marks done in Mangle, but I do not think this is necessary for this (I have these queues automatically turn on during the day - my and my W use quite a bit of videoconferencing now days, and when kids decide to watch videos at the same time....)

from homeassistant-mikrotik_router.

bruxy70 avatar bruxy70 commented on May 29, 2024

Whilst you are at it. How hard would it be to get the download/upload rate for the query to the attributes? :) So I could detect if there is that kind of traffic....

from homeassistant-mikrotik_router.

tomaae avatar tomaae commented on May 29, 2024

Not sure, can you send me mangles for those as well? I will see what I can do about traffic.

from homeassistant-mikrotik_router.

bruxy70 avatar bruxy70 commented on May 29, 2024
/ip firewall mangle
add action=add-dst-to-address-list address-list=Youtube address-list-timeout=30m chain=prerouting comment=\
    "YOUTUBE add address list" content=youtube.com
add action=add-dst-to-address-list address-list=Youtube address-list-timeout=30m chain=prerouting comment=\
    "GOOGLE VIDEO add address list" content=googlevideo.com
add action=add-dst-to-address-list address-list=Netflix address-list-timeout=30m chain=prerouting comment=\
    "NETFLIX add address list" content=nflxvideo.net
add action=add-dst-to-address-list address-list=Netflix address-list-timeout=30m chain=prerouting comment=\
    "NETFLIX add address list" content=netflix.com
add action=mark-packet chain=forward comment="Mark YOUTUBE" new-packet-mark=Youtube passthrough=no \
    src-address-list=Youtube
add action=mark-packet chain=forward comment="Mark Apple" new-packet-mark=Apple passthrough=no \
    src-address-list=Apple
add action=mark-packet chain=forward comment="Mark NETFLIX" new-packet-mark=Netflix passthrough=no \
    src-address-list=Netflix

The rates are available in the queue columns.
image

from homeassistant-mikrotik_router.

bruxy70 avatar bruxy70 commented on May 29, 2024

Oh, and if you want to test it, disable fast path in IP settings. Otherwise the packets will go around mangle...

from homeassistant-mikrotik_router.

tomaae avatar tomaae commented on May 29, 2024

Thanks, this will help a lot to setup test environment for queues

from homeassistant-mikrotik_router.

tomaae avatar tomaae commented on May 29, 2024

Changes released in v1.5.6

from homeassistant-mikrotik_router.

tomaae avatar tomaae commented on May 29, 2024

It would be possible to also add sensors for rates, it that would be helpful.

from homeassistant-mikrotik_router.

bruxy70 avatar bruxy70 commented on May 29, 2024

Works beautifully, thank you. I think the sensor is not necessary, I will dig it out from the attributes. Love it. Thanks for the quick response!

from homeassistant-mikrotik_router.

bruxy70 avatar bruxy70 commented on May 29, 2024

image

sensor:
  - platform: template
    sensors:
      youtube_download:
        friendly_name: "Youtube download"
        unit_of_measurement: 'Kbps'
        value_template: >
          {% if is_state("switch.mikrotik_queue_youtube","on") %}
            {{ state_attr('switch.mikrotik_queue_youtube', 'Download rate') | regex_replace(find='[a-z]', replace='', ignorecase=True) | int }}
          {% else %}
            0
          {% endif %}

from homeassistant-mikrotik_router.

tomaae avatar tomaae commented on May 29, 2024

True, there are always template sensors.

from homeassistant-mikrotik_router.

github-actions avatar github-actions commented on May 29, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from homeassistant-mikrotik_router.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.