Page 1 of 1
script with curl not working annymore
Posted: Thursday 29 June 2017 23:57
by tweakertje
Hi all
I'm using an script to capture an picture from an dvr an sent it with curl to my phone (telegram api)
but for some strange reason ill get
2017-06-29 23:44:43.637 Error: Error executing script command (/usr/local/domoticz/var/scripts/voordeur.sh). returned: 15360
to make it more strange the script works for 3 months an now (maybe afrer an update) the picture is made but its not sended with curl
when I run it is putty it works...
please help...
This is the script (removed my id's)
#!/bin/sh
export DATETIME=`date +%Y-%m-%d-%H%M-%S`
/volume1/@appstore/ffmpeg/bin/ffmpeg -loglevel fatal -i rtsp://user:
[email protected]:XXX/cam/realmonitor?channel=7@subtype=0 -vframes 1 -r 1 /volume1/somewhere/$DATETIME.jpg
curl -s -X POST "
https://api.telegram.org/botmybot:bla bla/sendPhoto" -F chat_id=-mychatid -F caption=Post -F photo=@/volume1/somewhere/$DATETIME.jpg
Re: script with curl not working annymore
Posted: Friday 30 June 2017 8:53
by jvdz
What happens when you run the script or Curl statement from the commandprompt ? Does it give any errors?
Jos
Re: script with curl not working annymore
Posted: Friday 30 June 2017 9:10
by emme
uh... did you ugrade the PI with apt?
I had similar problems with photos and it was a user right problem
try to issue a
sudo chmod 777 /Volume1/somewhere/$DATETIME.jpg
and then the curl
Re: script with curl not working annymore
Posted: Friday 30 June 2017 10:24
by tweakertje
Hi,
Thank for respond.
when I run it in command prompt the script works.
for the rights I'm tried to send just an text message It just don't work in the script when called in domoticz, when I copy an paste the api link in domoticz it sends the text message.
so I think that curl does not work when called in an script that is called by domotics
by the way the the owner of the saved picture is root so I think that the scrips are running as root.
all of it is running on an syology ds916+ with domoticz v3.8005 from Jadahl
Re: script with curl not working annymore
Posted: Friday 07 July 2017 14:59
by tweakertje
Nobody?????
Bump
Re: script with curl not working annymore
Posted: Sunday 03 September 2017 23:54
by veracarpenter
Have you solved this problem?
Re: script with curl not working annymore
Posted: Monday 04 September 2017 8:13
by tweakertje
Yes after an update it worked again
Verstuurd vanaf mijn SM-G930F met Tapatalk
Re: script with curl not working annymore
Posted: Tuesday 24 October 2017 8:42
by KingOfNuls
Hello,
After what update ? System, domoticz... ?
Regzrds
Re: script with curl not working annymore
Posted: Sunday 09 February 2020 16:14
by tux21
Hi guys, I just tried to install Domoticz on my small x86 PC and after few missing components I've got error 404 which I'm unable to resolve. Could anybody take a look and try to say if this is something temporary or should I go the other way, please?
I used the command from download site:
curl -sSL install.domoticz.com | sudo bash
Link to printscreen:
https://drive.google.com/file/d/1UPulAk ... p=drivesdk
Top
Re: script with curl not working annymore
Posted: Saturday 15 February 2020 15:20
by erem
for windows install, use these instructions.
https://www.domoticz.com/wiki/Windows#Install
you are using the UNIX install cmd
Re: script with curl not working annymore
Posted: Saturday 15 February 2020 19:32
by tux21
Hi Rob, yes, I'm running Ubuntu, no Windows..
Re: script with curl not working annymore
Posted: Saturday 09 May 2020 3:50
by jackwan1
Hi
I have the same problem running on a ubuntu server. Error 404... Need help
I first found the domoticz I have is too old (3.7xx) I need to update it to 3.9xx in order to run python plugins for broadlink.
I tried to use ./updaterelease commend to no avail, so I deleted the entire domoticz subdirectory in my /home and try to use the curl command to reinstall, but at the end I received Error 404 not found and it is not installed.
I saw another post that he tried many times in multiple days and got it done. Is the website down or not?
Why 404? what the process is looking for> I saw many files were installed/downloaded.