Jump to content

Recommended Posts

Posted

Надеюсь будет полезно. Простенький скрипт на nodejs показывает в консоль какие клиенты подключены в данный момен и сколько они передали данных. Opkg для этого не требуется, т.к. скрипт запускается на компьютере.

Выглядит так:

screen.png.8d8cd9cb26ac99224ac78b501191ff36.png

 

Данные беруться через веб-интерфейс (API) с интервалом 30 сек.

 

Инструкция как установить:

1. Добавить на роутере пользователя и задать ему права доступа к веб интерфейсу только на чтение:

permissions.png.18b1ac4736b80c86464232b1bb706966.png

2. Скачать репозиторй 

git clone git@github.com:Hukuta/router-mon.git

3. Установить модули nodejs: перейти в директорию router-mon и выполнить команду npm install (должен быть уже установлен npm, если нету, то придется установить)

4. Пропишите в router-devices.js доступы (домен, логин, пароль нового юзера)

5. Запускаем через node router-devices.js

  • Thanks 1
  • Upvote 4
  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.