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 ?
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 ~
Works perfectly on OpenWRT dsl modem (DM200). In my application it returns a lot of diagnostic data to diagnose and monitor DSL line. Currently very simple, but returning almost 30 different parameters it MIGHT eventually help to diagnose some weakness better than LAZY technician, who then tried to charge me for undone service Thanks!
By the way: if a space on target device is a concern (as in my case) there is another way for downloading and putting “Blynk for LUA” on remote device. I simply downloaded the release package from github and put it on OpenWRT device with SCP, so the whole stuff with “wget” can be omitted. This specifically addresses some @raphik’s issues.
Wondering if anyone can help?
Do you know if the video stream Blynk.setProperty(V1, “url”, “http…”); works?
my code is:
local wanwan = getWanIP()
str = wanwan:gsub('[\r\n]','')
blynk:virtualWrite(12, wanwan)
local string camera1 = "https://"..str..":8080/video.url"
print(camera1)
local string camera2 = "https://"..str..":8080/video.url"
print(camera2)
Blynk.setProperty(V15, "url", camera1);
Blynk.setProperty(V16, "url", camera2);
And it returns with
https://80.189.158.233:8080/video.url
https://80.189.158.233:8080/video.url
lua: ./blynk.lua:61: attempt to index local 'self' (a nil value)
stack traceback:
./blynk.lua:61: in function 'setProperty'
blynkmon.lua:141: in function 'func'
./timer.lua:22: in function 'run'
blynkmon.lua:152: in main chunk
[C]: ?