Paul Nederveen
TVWBB Member
This is a question for those who understand lua, js, etc. (Bryan, Steve...)
I'm experimenting with adding functionality along a specific tangent. Specifically I've added the mosquitto MQTT package into my build tree. I have access to some IoT tech that could possibly become available to the community if I can get things working.
Anyway, I want to add a button somewhere that fires a "Start Cook" script. For now it would be good enough if there was something I could click that I could attach a script to. Likely it would start a cron job during the initial experiments.
I've looked at ./linkmeter/luasrc/view/linkmeter/index.htm. Think an easy spot would be here:
Unfortunately I'm not very strong in LUA or JS so I'm not sure where/what code to add to fork&exec a script. It seems like ./controller/linkmeter/lmadmin.lua is a likely spot.
Would someone be willing to help me out? I plan on this eventually leading to some neat IoT application capabilities...
Thanks,
Paul
I'm experimenting with adding functionality along a specific tangent. Specifically I've added the mosquitto MQTT package into my build tree. I have access to some IoT tech that could possibly become available to the community if I can get things working.
Anyway, I want to add a button somewhere that fires a "Start Cook" script. For now it would be good enough if there was something I could click that I could attach a script to. Likely it would start a cron job during the initial experiments.
I've looked at ./linkmeter/luasrc/view/linkmeter/index.htm. Think an easy spot would be here:
Code:
write("<li><a href=%q>Alarms</a></li>" % build_url("admin/lm/alarm"))
write("<li><a href=%q>Archive</a></li>" % build_url("admin/lm/archive"))
write("<li><a href=%q>Configuration</a></li>" % build_url("admin/lm"))
Unfortunately I'm not very strong in LUA or JS so I'm not sure where/what code to add to fork&exec a script. It seems like ./controller/linkmeter/lmadmin.lua is a likely spot.
Would someone be willing to help me out? I plan on this eventually leading to some neat IoT application capabilities...
Thanks,
Paul