Hi, does someone know how to get this script to function on windows? Or is there a way to convert this script? I am a noob at scripting please help me a bit.
#!/bin/sh
SnapFile="/var/tmp/camsnapshot.jpg"
# Get snapshot via Domoticz server
wget -O $SnapFile "192.168.1.xx:8080/camsnapshot.jpg?idx=4"
# Send Telegram message with image
curl -s -X POST "https://api.telegram.org/bot1234567:AAF ... t=Doorbell is ringing!"
curl -s -X POST "https://api.telegram.org/bot1234567:AAF ... /sendPhoto" -F chat_id=-127498433 -F photo="@$SnapFile"
# Remove Image
/bin/rm $SnapFile
Thanks
Script for windows
Moderator: leecollings
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Script for windows
Install curl and wget.
-
- Posts: 287
- Joined: Sunday 09 October 2016 20:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Nederland
- Contact:
Re: Script for windows
thanks for your answer
i did intall both but i get "wget command not found"
what went wrong?
i did intall both but i get "wget command not found"
what went wrong?
-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: Script for windows
Both need to be in your path statement.
Move those files or add the path eg. c:\unix-ports to your path statement. Or use complete path-filename to executables.
Also change the forwardslashes to backslashed.
Move those files or add the path eg. c:\unix-ports to your path statement. Or use complete path-filename to executables.
Also change the forwardslashes to backslashed.
Who is online
Users browsing this forum: No registered users and 1 guest