script with curl not working annymore
Moderator: leecollings
-
- Posts: 15
- Joined: Saturday 18 March 2017 9:05
- Target OS: -
- Domoticz version:
- Contact:
script with curl not working annymore
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
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
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: script with curl not working annymore
What happens when you run the script or Curl statement from the commandprompt ? Does it give any errors?
Jos
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
- emme
- Posts: 909
- Joined: Monday 27 June 2016 11:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: Milano, Italy
- Contact:
Re: script with curl not working annymore
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
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
The most dangerous phrase in any language is:
"We always done this way"
"We always done this way"
-
- Posts: 15
- Joined: Saturday 18 March 2017 9:05
- Target OS: -
- Domoticz version:
- Contact:
Re: script with curl not working annymore
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
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
-
- Posts: 15
- Joined: Saturday 18 March 2017 9:05
- Target OS: -
- Domoticz version:
- Contact:
Re: script with curl not working annymore
Nobody?????
Bump
Bump
-
- Posts: 1
- Joined: Sunday 03 September 2017 21:49
- Target OS: Windows
- Domoticz version:
- Contact:
Re: script with curl not working annymore
Have you solved this problem?
Always check all slots and software of your devices!
-
- Posts: 15
- Joined: Saturday 18 March 2017 9:05
- Target OS: -
- Domoticz version:
- Contact:
Re: script with curl not working annymore
Yes after an update it worked again
Verstuurd vanaf mijn SM-G930F met Tapatalk
Verstuurd vanaf mijn SM-G930F met Tapatalk
-
- Posts: 9
- Joined: Monday 09 February 2015 11:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: script with curl not working annymore
Hello,
After what update ? System, domoticz... ?
Regzrds
After what update ? System, domoticz... ?
Regzrds
RPI B - domotiga connected to my visonic alarm
RPI 2 - domoticz connected to 1 wire temp sensors and teleinfo ("power smartmeter")
RPI 3 - domoticz master with mysensors and RFLink gateways
RPI 2 - domoticz connected to 1 wire temp sensors and teleinfo ("power smartmeter")
RPI 3 - domoticz master with mysensors and RFLink gateways
-
- Posts: 20
- Joined: Wednesday 28 May 2014 22:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: script with curl not working annymore
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
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
- erem
- Posts: 230
- Joined: Tuesday 27 March 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Amsterdam/netherlands
- Contact:
Re: script with curl not working annymore
for windows install, use these instructions.
https://www.domoticz.com/wiki/Windows#Install
you are using the UNIX install cmd
https://www.domoticz.com/wiki/Windows#Install
you are using the UNIX install cmd
Regards,
Rob
Rob
-
- Posts: 20
- Joined: Wednesday 28 May 2014 22:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: script with curl not working annymore
Hi Rob, yes, I'm running Ubuntu, no Windows..
-
- Posts: 41
- Joined: Saturday 15 April 2017 20:04
- Target OS: Linux
- Domoticz version: 2020.2
- Location: USA
- Contact:
Re: script with curl not working annymore
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.
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.
Who is online
Users browsing this forum: No registered users and 0 guests