Notify on error via IFTTT

Du möchtest Deinen Automower in Deine Hausautomatisierung einbinden oder eine eigene App entwicklen?
Hier wird diese offene Schnittstelle zum Robonect Hx Modul beschrieben.
pirni
Beiträge: 115
Registriert: Fr 24. Feb 2017, 15:58
Mäher: Gardena R45Li
Firmware des Mähers (MSW): MSW 6.xx.xx
Herstellungsjahr: 2016
Robonect-Modul: Robonect Hx (Rev.3)
Robonect Firmware: v1.1b

Re: Notify on error via IFTTT

Beitrag von pirni »

@Gambit can you help a little more?

Since it is another "project", can you maybe create a new Topic regarding this?
Maybe in German, since it would be much easier to understand ;)

I succesfully installed Telegram CLI on the Pi and a Apache with PHP.

In your script you are refering to "/home/pi/tg/telegram_send_home.sh"
can you maybe provide this script aswell please?

pirni
Beiträge: 115
Registriert: Fr 24. Feb 2017, 15:58
Mäher: Gardena R45Li
Firmware des Mähers (MSW): MSW 6.xx.xx
Herstellungsjahr: 2016
Robonect-Modul: Robonect Hx (Rev.3)
Robonect Firmware: v1.1b

Re: Notify on error via IFTTT

Beitrag von pirni »

Finally i got it to work.
Thanks guys for the idea, and the help.

luci
Beiträge: 1
Registriert: Do 25. Mai 2017, 19:04
Mäher: Husqvarna Automower 330X
Firmware des Mähers (MSW): MSW 5.xx.xx
Herstellungsjahr: 2014
Robonect-Modul: Robonect Hx (Rev.3)
Robonect Firmware: -1.0

Re: Notify on error via IFTTT

Beitrag von luci »

Hi. I will use IFTTT but I am not realy sure how to configure the first part off IFTTT. I am gone use Pushover to get messages. Can you post some picture how to do it? Or step by step maybe?

Thank's in advance!
Lucian

mightym
Beiträge: 4
Registriert: Mi 10. Mai 2017, 14:40
Mäher: Gardena R70Li
Robonect-Modul: Robonect Hx (Rev.3)
Robonect Firmware: 0.9

Re: Notify on error via IFTTT

Beitrag von mightym »

Hi David,

Awseome stuff, thank you for this!
Will try to set it up right away.

Is this script also able to set a mode for the mower?
I would want to send the mower home once my Netatmo rain sensor detects rainfall. Since Netatmo is also able to work with IFTTT it could work like a charme.

Best regards
Matthias

larsan
Beiträge: 85
Registriert: So 26. Mär 2017, 11:31
Wohnort: Sweden
Mäher: Gardena R40Li
Firmware des Mähers (MSW): MSW 5.xx.xx
Herstellungsjahr: 2012
Robonect-Modul: Robonect H30x (Rev.2)
Robonect Firmware: 1.2RC0

Re: Notify on error via IFTTT

Beitrag von larsan »

luci hat geschrieben:
Fr 9. Jun 2017, 17:11
Hi. I will use IFTTT but I am not realy sure how to configure the first part off IFTTT. I am gone use Pushover to get messages. Can you post some picture how to do it? Or step by step maybe?

Thank's in advance!
Lucian
Sorry I have not replied. Did you figure it out? If not, please let me know and I'll give you some pointers.
Best regards,
David from Sweden

larsan
Beiträge: 85
Registriert: So 26. Mär 2017, 11:31
Wohnort: Sweden
Mäher: Gardena R40Li
Firmware des Mähers (MSW): MSW 5.xx.xx
Herstellungsjahr: 2012
Robonect-Modul: Robonect H30x (Rev.2)
Robonect Firmware: 1.2RC0

Re: Notify on error via IFTTT

Beitrag von larsan »

mightym hat geschrieben:
Sa 22. Jul 2017, 13:16
Hi David,

Awseome stuff, thank you for this!
Will try to set it up right away.

Is this script also able to set a mode for the mower?
I would want to send the mower home once my Netatmo rain sensor detects rainfall. Since Netatmo is also able to work with IFTTT it could work like a charme.

Best regards
Matthias
Hi Matthias.

You'd be better off accessing the mode-URL of the mower directly.
Can the Netatmo make web requests?

If yes, then make sure you've got your mower reachable from the internet.
Then send it home by simply making a URL request like this; http://user:pass@url-to-your-server/jso ... &mode=home
Best regards,
David from Sweden

mightym
Beiträge: 4
Registriert: Mi 10. Mai 2017, 14:40
Mäher: Gardena R70Li
Robonect-Modul: Robonect Hx (Rev.3)
Robonect Firmware: 0.9

Re: Notify on error via IFTTT

Beitrag von mightym »

Thank you David,

I´´´m actually also struggeling setting up the IFTTT end. What to set as the Trigger there?

The netatmo itself can´t send the URl request itself I believe but I you can use IFTTT again to do this since Netatmo´ s API works with it.

Thanks in advance for your help!
BR
Matthias

Bild
Dateianhänge
Unbenannt.png
Unbenannt.png (93.95 KiB) 3018 mal betrachtet

Raul1
Beiträge: 1
Registriert: So 16. Jul 2017, 08:29
Mäher: Husqvarna Automower 305

Re: Notify on error via IFTTT

Beitrag von Raul1 »

luci hat geschrieben:
Fr 9. Jun 2017, 17:11
Hi. I will use IFTTT but I am not realy sure how to configure the first part off IFTTT. I am gone use Pushover to get messages. Can you post some picture how to do it? Or step by step maybe?

Thank's in advance!
Lucian
To use Pushover you just replace line 61-81 with this:

Code: Alles auswählen

if ($statusnum ne "") {
        use LWP::UserAgent;

LWP::UserAgent->new()->post(
  "https://api.pushover.net/1/messages.json", [
  "token" => "APP_TOKEN",
  "user" => "USER_KEY",
  "message" => "Status:$response \nBatteri:$battery \n$errmsg",
]);

mightym
Beiträge: 4
Registriert: Mi 10. Mai 2017, 14:40
Mäher: Gardena R70Li
Robonect-Modul: Robonect Hx (Rev.3)
Robonect Firmware: 0.9

Re: Notify on error via IFTTT

Beitrag von mightym »

Meanwhile I got the IFTTT end to work with the webhooks.

however the script isn´t runing correctly on my synology. I keep on getting error 500 when pointing to it in my browser.
I´ve set chmod to 755, used correct Perl path and installes Perl through the package manager.

Any hint from somebody using also Synology?

Thanks in advance
Matthias

larsan
Beiträge: 85
Registriert: So 26. Mär 2017, 11:31
Wohnort: Sweden
Mäher: Gardena R40Li
Firmware des Mähers (MSW): MSW 5.xx.xx
Herstellungsjahr: 2012
Robonect-Modul: Robonect H30x (Rev.2)
Robonect Firmware: 1.2RC0

Re: Notify on error via IFTTT

Beitrag von larsan »

mightym hat geschrieben:
Di 25. Jul 2017, 17:21
Meanwhile I got the IFTTT end to work with the webhooks.

however the script isn´t runing correctly on my synology. I keep on getting error 500 when pointing to it in my browser.
I´ve set chmod to 755, used correct Perl path and installes Perl through the package manager.

Any hint from somebody using also Synology?

Thanks in advance
Matthias
I'm running it through the web admins scheduler (Synology).
See attached image.
Skärmavbild 2017-08-07 kl. 19.47.42.png
Skärmavbild 2017-08-07 kl. 19.47.42.png (230.8 KiB) 2873 mal betrachtet
Best regards,
David from Sweden

Antworten

Zurück zu „API für Robonect® Hx“