Send Tonidomessage from Shellscript

Support for your TonidoPlug
User avatar
Veteran Tonidoid
Veteran Tonidoid
Posts: 77
Joined: Tue Dec 14, 2010 9:25 am

Send Tonidomessage from Shellscript

Postby agrajag » Fri May 27, 2011 6:10 am

I've a shellscript on my Plug witch runs periodically via cron.
This script writes the results of the steps and commands in a log-File.
I would now like in the end of the skript to send this log (or the content of it) to my tonido Profile and to a Tonido Profile on another Plug, so that you can see the Results in the Tonido Message-Box.
Is this possible?
And if yes, how do i do that?

User avatar
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA

Re: Send Tonidomessage from Shellscript

Postby madhan » Fri May 27, 2011 2:25 pm

Yes, it is possible. But you have to do a lot of HTTP API kungfu.
1. You need to authenticate and login into the system and get Tonido's cookie
2. Then make the sendmessage call via HTTP using the cookie

Studying our PHP API might help.

Return to “TonidoPlug Support”

Who is online

Users browsing this forum: No registered users and 13 guests