Script for windows
Posted: Saturday 19 November 2016 11:50
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
#!/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