Hi. Is there any way to send a notification or message to tasker of an android device, when CE has started?
Just opening a url to send a message to autoremote would be enough
Thanks
You can open some url with curl from /storage/.config/autostart.sh which is called just before Kodi is started.
Or you can use /storage/.kodi/userdata/autoexec.py which is called from Kodi itself.
So, if this is my autostart.sh:
#!/bin/sh
(
/storage/.config/acestream/autostart.sh
)&
nohup script.sh &
How can I add this url for the message to be correctly sent?:
https://autoremotejoaomgcd.appspot.com/sendmessage?key=xxxxx&message=coreelec%20started
Lot of thanks
In autostart.sh just use
(
#sleep 5
curl -s 'https://autoremotejoaomgcd.appspot.com/sendmessage?key=xxxxx&message=coreelec%20started' > /dev/null
/storage/.config/acestream/autostart.sh
)&
Also enable “wait for network” in CoreELEC settings. If curl still fails remove # with sleep command.
Thank you very much
1 Like