Im trying to set up a scene to capture a image from my camera on a scene execution. So far I have managed to be able to pull the image with a os.execute but im unable to get it to rename.
My basic lua is :
os.execute(“wget http://192.168.0.18:9040/snapshot -P /root/nas1/foscam/”)
os.execute(“mv snapshot $(date +%F-%H:%M).jpg”)
The mv command works in ssh as standard mv command but not in my scene? Can anyone help?