nicolasbernaerts / debian-scripts Goto Github PK
View Code? Open in Web Editor NEWVarious installation & administration scripts for Debian server
Various installation & administration scripts for Debian server
Hello!
Please add support for the socks5 proxy!
Thank you!
Is it possible to do something like that? It seems not to work
#
# TR_APP_VERSION
# TR_TIME_LOCALTIME
# TR_TORRENT_DIR
# TR_TORRENT_HASH
# TR_TORRENT_ID
# TR_TORRENT_NAME
#
# message title for the notification
title=title"Torrent completed: $TR_TORRENT_NAME"
# the full message text (can use HTML)
message="Download <b>$TR_TORRENT_NAME</b> is completed. <br><br><br>$TR_TIME_LOCALTIME<br>"
echo 'text to be displayed' | /usr/local/sbin/telegram-notify $title $message
Hey,
Thank you for your great work!
I am not sure if i found a bug in your telegram-notify script.
When i use it with the following command ./telegram-notify.sh --user 123456789 --key 987654321:AABBCCDDEEFFGGHHIIJJ --text "test1"
(without a configuration file) i've get the output:
[Warning] Configuration file missing /etc/telegram-notify.conf
[Error] Nothing to notify
If i run it as ./telegram-notify.sh --user 123456789 --key 987654321:AABBCCDDEEFFGGHHIIJJ --text "test"
i've get
[Warning] Configuration file missing /etc/telegram-notify.conf
{"ok":false,"error_code":400,"description":"Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 16"}
It works for all other text inputs i've tried. The same happens when i pipe the texts in.
If its important: i haven't used the installation script but just copied the scipt from github.
I think some fonts is missing but which one in debian?
when I send
echo 'text to be displayed' | telegram-notify --success --text -
I got this
\u2705 text to be displayed
on Telegram
I followed the instruction, adding api-key and user-id but this is what the Terminal says
echo 'text to be displayed' | /usr/local/sbin/telegram-notify --success --text test
[Info] Using configuration file /etc/telegram-notify.conf
Is there some diagnostic mode to verify if all is working?
Hi,
I'm using your bash script since it appeared.
Is it possible to add location for telegram?
I want to send location via latitude and longitude .
To test use an example command like one given below which has text having an odd number of underscores
telegram-notify --success --text 'test_1:beta completed'
In my case I recieve the following error
{"ok":false,"error_code":400,"description":"Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 8"}
However on changing the text to one which has even number of underscores the error is fixed
telegram-notify --success --text 'test_1:beta_1 completed'
The error could be possibly related to the issue mentioned here
Hello!
The document sending (--document) doesn't work. When I'm using that parameter the message is not sent either.
Recently I tried with an older version, it worked.
Thanks!
Can you add support for the username and the password for the socks5-server?
When i try to cnnect to this page : http://bernaerts.dyndns.org/linux/75-debian/351-debian-send-telegram-notification
i have this error message :
Error: Failed to start application: Could not connect to MySQL server.
Hi !
I forked telegram folder only for custom use https://github.com/Radius17/Bash-Telegram.
When sending photo or document with title, there is missing --form parse_mode=${DISPLAY_MODE} parameter.
Also "%0A" is not recognizing.
But "\n" works fine in all modes.
So i modified script in my repository like this Radius17/Bash-Telegram@f963122
May be it will be usefull for you.
Best regards.
I just found this project but it looks like i cannot get it to pass the API authentication. The account seems to be fine and is working when testing on my desktop using
https://hostname/zm/api/monitors.json
I also tried testing on the command line of the server using
curl -d "username=camerawall&password=s3cr3t&action=login&view=console" -c cookies.txt https://hostname/zm/index.php
But the following is not authenticated
curl -b cookies.txt https://hostname/zm/api/monitors.json
It does not matter if i use http or https
The server is running Ubuntu 18.04.4 and ZoneMinder 1.34.9
Good day,
first of all super work that you have done there! The Telegram script runs great!
Unfortunately, I noticed that the server does not give me a log file content, but only the path to the file:
I used the following command:
telegram-notify --question --title "Proxmox Disk Health" --text "/var/log/disccheck.log"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.