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

Great Weekend Project: Blynk app for your OpenWrt router

Blynk.setProperty(V15, "url", camera1);

It is not proper syntax for Lua. The working one is below (example):

blynk:setProperty(42, "urls", "http://")
1 Like

Thanks Mavin7 I will give it a try!

Hi,

I am especially interested in WiFi on/off as a means of Parental control. that’s why i also look for options to create a Switch in the App that can kill the internet for my sons devices only (by MAC adress i.e.).

Also, i would like a button that extends his allowance of internet time with 30 minutes, meaning that i have to be able to restrict it by a timer first. I can offcourse set time limits in Luci and bind those rules to a groups where all MC adresses are part of.

Richard

I am planning to modify some scripts that i found for OpenHAB.

[https://community.openhab.org/t/openhab-and-openwrt-for-parental-control-of-internet-access/14375]

Anyone cares to comment is this could work?

Hi,

I figured out some options (as a newby!). Which of these could actually work (with some adaption) ?

Option 1:

blynk:on(“V21”, function(param)
if param[1] == “1” then
os.execute(“open_firewall_one.sh”)
else
os.execute(“close_firewall_one.sh”)
end
end)

Option 2:

blynk:on(“V23”, function(param)
if param[1] == “1” then
os.execute(“sendCommand Internet_One,“ON””)
else
os.execute(“sendCommand Internet_One,”OFF””)
end
end)

So this maybe a very optimistic idea, but if you could store connected MAC addresses (arp | grep br-lan | grep 0x2) and then run a timer to check new mac addresses if not found it send push notification of new device connection.

This has been a great start and I hope to release my whole project soon. As someone who got into coding through dabbling in bioinformatics\matlab i love the challenge, but some things are still past me!!

1 Like