BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Great Weekend Project: Blynk app for your OpenWrt router

router
openwrt
lua

#1

I decided to create a small project, that explains how to use my Blynk for Lua library in real life. Enjoy! :zap:

Functionality:

  • Turn WiFi ON/OFF
  • Number of clients (interesting for WiFi)
  • Internet traffic charts
  • Charts for CPU, RAM, NAS (HDD) usage
  • Offline notification

Screenshot:

Let me know if have any other interesting ideas. What do you think about all this?


MikroTik Router Monitoring
#2

@blezek @raphik @blavery check this out!


#3

@scargill, What do you think about this?


#4

good project. as soon as I’m installing the Openwrt on my mikrotik metarouter and testing. and a request: can you write an arduino sketch to monitoring SNMP protocol ?

thanks.


#5

For any reason the command

wget -qO- https://github.com/vshymanskyy/blynk-library-lua/archive/v0.1.3.tar.gz | tar xvz

doesn’t work under OpenWrt (what is probably related to some Busybox incompatibility issue, because it does work under regular Linux as Ubuntu is).

Instead, a command that does the work under OpenWrt is
wget -qO- --no-check-certificate https://github.com/vshymanskyy/blynk-library-lua/archive/v0.1.3.tar.gz | tar -xvzf - -C ~

Has the same happened to someone else?


#6

Please provide more details. Like, how does it fail?


#7

root@LEDE:~# wget -qO- https://github.com/vshymanskyy/blynk-library-lua/archive/v0.1.3.tar.gz | tar xvz
tar: invalid magic
tar: short read


#8

root@LEDE:~# wget -qO- --no-check-certificate https://github.com/vshymanskyy/blynk-library-lua/archive/v0.1.3.tar.gz | tar -xvzf - -C ~
blynk-library-lua-0.1.3/
blynk-library-lua-0.1.3/.gitignore
blynk-library-lua-0.1.3/LICENSE
blynk-library-lua-0.1.3/README.md
blynk-library-lua-0.1.3/blynk.lua
blynk-library-lua-0.1.3/blynk/
blynk-library-lua-0.1.3/blynk/nodemcu.lua
blynk-library-lua-0.1.3/blynk/pipe.lua
blynk-library-lua-0.1.3/blynk/socket.lua
blynk-library-lua-0.1.3/examples/
blynk-library-lua-0.1.3/examples/client.lua
blynk-library-lua-0.1.3/examples/nodemcu.lua
blynk-library-lua-0.1.3/timer.lua


#9

what does wget -qO- --no-check-certificate https://github.com/vshymanskyy/blynk-library-lua/archive/v0.1.3.tar.gz itself output?


#10

root@LEDE:~# wget -qO- --no-check-certificate https://github.com/vshymanskyy/blynk-library-lua/archive/v0.1.3.tar.gz

                                                   �80y�� ��G����{���C6�m�bSh*��00u,��_m�>��_����܌Җ��/��m���;Slyp3����l73����B�c�M� ��¿����S����ƃ�Y�vM�}�]�[```

#11

oops… i meant without --no-check-certificate. obviously that one works


#12

Without -qO- :

root@LEDE:~# wget --no-check-certificate https://github.com/vshymanskyy/blynk-library-lua/archive/v0.1.3.tar.gz
Downloading ‘https://github.com/vshymanskyy/blynk-library-lua/archive/v0.1.3.tar.gz
Connecting to 192.30.253.113:443
Redirected to /vshymanskyy/blynk-library-lua/tar.gz/v0.1.3 on codeload.github.com
Writing to ‘v0.1.3’
v0.1.3 6004 --:–:-- ETA
Download completed (6004 bytes)


#13

root@LEDE:~# wget https://github.com/vshymanskyy/blynk-library-lua/archive/v0.1.3.tar.gz
Downloading ‘https://github.com/vshymanskyy/blynk-library-lua/archive/v0.1.3.tar.gz
Connecting to 192.30.253.112:443
Connection error: Invalid SSL certificate


#14

hmm. looks like your OpenWRT misses some packages with certificates. I’d probably just change the default readme instructions. Thx!


#15

You are welcome!