Dreamaxx Premium Cinema Posted April 28 Share Posted April 28 Hello, I want to send Kodi via PSE action Module to Pause or Play the movie. Her is my File but it doesn´t work. I think that file is wrong. Can anybody help me with the file? Thanks in advance... I write in my action file: POST:http://192.168.xx.xx:8080/jsonrpc -u kodi:password -d {"jsonrpc":"2.0","method":"Player.PlayPause","params":{"playerid":0,"play":false},"id":1} Quote Link to comment Share on other sites More sharing options...
PreShow Supporter MidnightWatcher Posted April 28 PreShow Supporter Share Posted April 28 Is there a reason why you want to use an action file to play/pause and not the remote (or phone/keyboard)? Quote Link to comment Share on other sites More sharing options...
Dreamaxx Premium Cinema Posted April 28 Author Share Posted April 28 I would like to automatically pause the player after a specified time and start it again after a certain time. I do it a few years ago. but since Kodi 18 I think the http funktion doesn´t work. But I think there is a chance. Quote Link to comment Share on other sites More sharing options...
Dreamaxx Premium Cinema Posted April 28 Author Share Posted April 28 Basically, I had built in a 10 minute break for longer films. A notification was displayed, the projector was switched to sleep mode and the light was dimmed slightly. It would be a shame if it didn't work anymore. Actually, it can't be that difficult to send a command to Kodi via PSE. Quote Link to comment Share on other sites More sharing options...
Administrator Matt Posted April 28 Administrator Share Posted April 28 The code that you want is something along the lines of: sleep://3600000 http://username:password@ip#:8080/jsonrpc {"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"playpause"},"id":0} sleep://600000 http://username:password@ip#:8080/jsonrpc {"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"playpause"},"id":0} Add other functions a you want. Make sure you have your system set up to allow this in settings > services > control. Quote Link to comment Share on other sites More sharing options...
Dreamaxx Premium Cinema Posted April 28 Author Share Posted April 28 Thank You very much. I will try it tomorrow. Quote Link to comment Share on other sites More sharing options...
Dreamaxx Premium Cinema Posted May 3 Author Share Posted May 3 Hello, Now I finally got around to testing the script. I put it in front of the feature in PSE as a script.pseaction file. If I go to action and test in edit sequence, it shows that everything is ok. But if I let it run with a film, the pause doesn't work. Nothing happens. I have enabled “Allow control via http” in Kodi. Have I perhaps forgotten something? Have you an Idea? Another question would be, is it possible to display a reference to the break as an image.jpg before the break? Something Like this: sleep://3600000 http://username:password@ip#:8080/jsonrpc {"jsonrpc":"2.0","method":"GUI.ShowNotification","params": {"image":"image://test//hdr10.png", "displaytime":5000 },"id":"0} sleep://2000 http://username:password@ip#:8080/jsonrpc {"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"playpause"},"id":0} sleep://600000 http://username:password@ip#:8080/jsonrpc {"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"playpause"},"id":0} Quote Link to comment Share on other sites More sharing options...
Dreamaxx Premium Cinema Posted May 4 Author Share Posted May 4 I test a little bit and Matts pseaction file is running perfect. My fault, I test first with the default Sequence and that doesn´t work. If I test it with a new Sequence everything is running perfekt. I can also show a notification, but if anyone has an idea, how to show a image.jpg, I´m absolutely happy. Here is the pseaction Test with Notification before the Pause: sleep://20000 http://kodi:kodi@192.0.0.0:8080/jsonrpc {"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Pause","message":"10 Minuten","displaytime":7000},"id":0} sleep://2000 http://kodi:kodi@192.0.0.0:8080/jsonrpc {"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"playpause"},"id":0} sleep://20000 http://kodi:kodi@192.0.0.0:8080/jsonrpc {"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"playpause"},"id":0} 1 Quote Link to comment Share on other sites More sharing options...
Dreamaxx Premium Cinema Posted May 6 Author Share Posted May 6 Can someone at least tell me where I can find the KaiDialogToast.xml? Or, if this doesn't exist, as in my case, tell me what the xml is called with which I can influence the GUI.ShowNotification. In any case, KaiDialogToast.xml cannot be found under: \\SHIELD\internal\Android\data\org.xbmc.kodi\files\.kodi\addons\skin.estuary\xml. Thank you Quote Link to comment Share on other sites More sharing options...
Administrator Matt Posted May 6 Administrator Share Posted May 6 Are you trying to show an image for the intermission with GUI.ShowNotification? If so, I think that the only image in the notification is the icon. Quote Link to comment Share on other sites More sharing options...
Dreamaxx Posted May 6 Share Posted May 6 Ah okay, thanks for this Info. And where can I find the Image and what‘s the name of the Image? Quote Link to comment Share on other sites More sharing options...
Administrator Matt Posted May 7 Administrator Share Posted May 7 I think that the file you want to edit is DialogNotification.xml. 1 Quote Link to comment Share on other sites More sharing options...
Dreamaxx Premium Cinema Posted May 7 Author Share Posted May 7 It´s running. great thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.