Hi! I monitor the output of:
curl -s --digest ""
and get this on motion events:
I know how to grep things from curl, but not from running curl events. Is curl the right tool for that?
my idea is to monitor events and if something with mp4 or jpeg happens, grep the line with the ftp-url and send a message with picture or movie to my telegram.
any ideas? I know the rest but don't know how to deal with the running curl command
thank you
curl -s --digest ""
and get this on motion events:
Code:
..SOME-OTHER-OUTPUT
Code=NewFile;action=Pulse;index=0;data={
"File" : "ftp:\/\/10.30.50.1\/cam\/camera\/Terrasse\/2021-07-03\/001_20.28.31_A_0_0_0.mp4",
"Size" : 9389611,
"StoragePoint" : "NULL"
}
SOME-OTHER-OUTPUT..
I know how to grep things from curl, but not from running curl events. Is curl the right tool for that?
my idea is to monitor events and if something with mp4 or jpeg happens, grep the line with the ftp-url and send a message with picture or movie to my telegram.
any ideas? I know the rest but don't know how to deal with the running curl command
thank you