Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zone status change report to Telegram bot (help wanted) #183

Open
gargamelonly opened this issue Jun 12, 2021 · 5 comments
Open

Zone status change report to Telegram bot (help wanted) #183

gargamelonly opened this issue Jun 12, 2021 · 5 comments

Comments

@gargamelonly
Copy link

gargamelonly commented Jun 12, 2021

Hi,
I see there are options to send log by email in some old threads.
Is there a way also to send a message to a Telegram bot when a zone starts/stops irrigation?
I know how to setup a bot and get it's key.

Thank you.
[running the GreenIQ variant on an RPI]

@nhorvath
Copy link
Collaborator

There's an example shell script for sending emails but it's a nightly status report. There's no immediate notification.

@gargamelonly
Copy link
Author

Could you please suggest a modified script to send the report via Telegram message instead of email?
We could use the following: https://github.com/fabianonline/telegram.sh

@nhorvath
Copy link
Collaborator

actually i forgot i implemented something that can intercept zone changes. see this script https://github.com/rszimm/sprinklers_pi/blob/master/scripts/example_zone_script_passthrough.sh

if you still want the report that is in the same directory "report.sh"

@gargamelonly
Copy link
Author

Sorry. I don't understand how to use it.
Is simply copying the passthrough script to that folder will run it on every change of a GPIO?
Do I need to remove the wiringpi command?

@nhorvath
Copy link
Collaborator

nhorvath commented Jun 12, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants