Coder Social home page Coder Social logo

debian-scripts's People

Contributors

awalon avatar bigjohnson avatar johnrambo1993 avatar jvandermeulen avatar nicolasbernaerts avatar poreklo avatar quentinwolf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

debian-scripts's Issues

Use Telegram Notify into another script

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

[telegram-notify] Bug for some messages

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.

output not formatted correctly

My heroku app is running this script as part of a scheduled job. This works fine without heroku involved but heroku must be rendering the text differently.

Screen Shot 2020-02-11 at 4 31 11 PM

It should look like this:

Screen Shot 2020-02-11 at 4 39 20 PM

[SOLVED] Script seems not to send the message

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?

adding location?

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 .

telegram-notify error with text messages having odd number of underscores

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

telegram-notify document sending problem

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!

Zoneminder Camera Wall

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

Telegram Notifier sends path instead of file content.

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:

image

I used the following command:
telegram-notify --question --title "Proxmox Disk Health" --text "/var/log/disccheck.log"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.