Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dominique

Pages: [1] 2 3
1
Integration Ideas / Re: Plex
« on: June 05, 2020, 05:53:57 AM »
James how long ago did you make attempt at a Plex integration?  I saw on my dashboard an option for webhooks.



This is their documentation  https://support.plex.tv/articles/115002267687-webhooks/?utm_campaign=Plex%20Apps&utm_medium=Plex%20Web&utm_source=Plex%20Apps

Code: [Select]
Webhook Events
There are several events which cause webhooks to be hit, along with the name of the events in the payload:

New Content
library.on.deck – A new item is added that appears in the user’s On Deck. A poster is also attached to this event.
library.new – A new item is added to a library to which the user has access. A poster is also attached to this event.

Playback
media.pause – Media playback pauses.
media.play – Media starts playing. An appropriate poster is attached.
media.rate – Media is rated. A poster is also attached to this event.
media.resume – Media playback resumes.
media.scrobble – Media is viewed (played past the 90% mark).
media.stop – Media playback stops.

Server Owner
These events are sent only for the server owner/admin account and relate to events on the server in general.

admin.database.backup – A database backup is completed successfully via Scheduled Tasks.
admin.database.corrupted – Corruption is detected in the server database.
device.new – A device accesses the owner’s server for any reason, which may come from background connection testing and doesn’t necessarily indicate active browsing or playback.
playback.started – Playback is started by a shared user for the server. A poster is also attached to this event.

Webhook Payload
The payload consists of five different parts.

Top-level: This contains event, user, and owner attributes. The event attribute holds the name of the event, as specified above. The user and owner flags indicate whether the event is sent because the user has a webhook configured (user flag is set) or because the server owner has a webhook set (the owner flag is set). This can be very useful for certain scenarios. Note that if a server owner triggers an event, both user and owner flags will be set.
Account: The account object contains information about the user who triggered the event, including ID, title, and in some cases, a URL for the user’s avatar image. Note that the owner ID will always be 1.

Server: The server object contains information about the server from which the event was generated, including the title and UUID.
Player: The player object contains information about the player which generated the event, if applicable. It contains the title of the player, its UUID, the public IP address of the player, and a local flag indicating whether or not it was on the same network as the server.
Metadata: This last object contains detailed information about the media.

With the details available in the payload, it’s possible for a webhook receiver to perform detailed filtering on the events. It may want to only look for events for a single player, or a single user, or all players local to the server, e.g.

As stated above, the payload is sent in JSON format inside a multipart HTTP POST request. For the media.play and media.rate events, a second part of the POST request contains a JPEG thumbnail for the media.

Example Payload
Here is an example payload:


   "event": "media.play",
   "user": true,
   "owner": true,
   "Account": {
      "id": 1,
      "thumb": "https://plex.tv/users/1022b120ffbaa/avatar?c=1465525047",
      "title": "elan"
   },
   "Server": {
      "title": "Office",
      "uuid": "54664a3d8acc39983675640ec9ce00b70af9cc36"
   },
   "Player": {
      "local": true,
      "publicAddress": "200.200.200.200",
      "title": "Plex Web (Safari)",
      "uuid": "r6yfkdnfggbh2bdnvkffwbms"
   },
   "Metadata": {
      "librarySectionType": "artist",
      "ratingKey": "1936545",
      "key": "/library/metadata/1936545",
      "parentRatingKey": "1936544",
      "grandparentRatingKey": "1936543",
      "guid": "com.plexapp.agents.plexmusic://gracenote/track/7572499-91016293BE6BF7F1AB2F848F736E74E5/7572500-3CBAE310D4F3E66C285E104A1458B272?lang=en",
      "librarySectionID": 1224,
      "type": "track",
      "title": "Love The One You're With",
      "grandparentKey": "/library/metadata/1936543",
      "parentKey": "/library/metadata/1936544",
      "grandparentTitle": "Stephen Stills",
      "parentTitle": "Stephen Stills",
      "summary": "",
      "index": 1,
      "parentIndex": 1,
      "ratingCount": 6794,
      "thumb": "/library/metadata/1936544/thumb/1432897518",
      "art": "/library/metadata/1936543/art/1485951497",
      "parentThumb": "/library/metadata/1936544/thumb/1432897518",
      "grandparentThumb": "/library/metadata/1936543/thumb/1485951497",
      "grandparentArt": "/library/metadata/1936543/art/1485951497",
      "addedAt": 1000396126,
      "updatedAt": 1432897518
   }
}

Sample Code
We’ve made a few sample projects available so that you can see the sorts of things you can build using webhooks.

2
Integration Ideas / Re: Plex
« on: May 29, 2020, 04:30:19 AM »
I don't see how that applies.

One of the main problems is that the Plex API is mostly undocumented and has gone through a few transitions over the years so even when you think you've found something useful it often does not work anymore.

Another problem is that even using their own programs, the ability to control other clients can be quite hit and miss and is inconsistent in terms of which clients are willing to respond to which types of commands.

I spent a few hours trying to reverse engineer what the Plex web client sends when trying to control other clients and have made a bit of progress.  One issue I have found that could be a huge problem is that the Plex Media Player for Windows does not seems to be reliably "available" for other clients to control.  So you may be able to give it one command and then suddenly it will disappear.

Then there are other clients such as Roku, Chromecast (which I do not have access to), and I think a client for Kodi which is probably not even worth thinking about.

What client do you normally use with Plex?  So far the only client that seems to be reliable for me is the web client on Chrome.

I usually use Chormecast or my ps4.   

3
Integration Ideas / Re: Plex
« on: May 26, 2020, 06:09:53 PM »
Unfortunately, as far as we know no one has been able to figure out the Plex API for remote control. 

Their documentation is garbage and I don't even know if it works.  Attempts that I have made to play a movie come back with "400 Bad Request" with absolutely no other information to go on.

Thats unfortunate.  I combed through their forum and may have found a solution.  I just dont know how to implement it.

https://forums.plex.tv/t/remote-plex-access-not-working-error-parsing-http-request/33456/7

4
Integration Ideas / Plex
« on: May 24, 2020, 01:55:12 AM »
Plex hasnt been brought up in a while.  I do not really use Kodi/XBMC primarily because I dont really care for dealing with repos, channels, etc.  I like Plex because it simply works without dealing with any of that.

Anyhow, Plex (client not server) runs off a web browser with an localaddress: port: just like the Google Speech API.  Having said that, in theory it should be doable to get VC to control it.

Has anyone ever gotten Plex to work?  I did a forum search before posting this and did not see any integrations. 

5
Integration Ideas / Re: Easy Inexpensive Cell Phone Integration?
« on: November 16, 2017, 01:23:23 AM »
Not really a fan of Tasker cause it kills my phone battery more than usual.

If someone were to take this on, I would be willing to buy them a copy of Remote Phone Call.

6
Integration Ideas / Re: Samsung multiroom extensions
« on: November 15, 2017, 01:05:42 PM »
Woooooow.  I have a Samsung speaker.  Perhaps I should buy a few more. 

Thanks for the code.  I wanna try this.

7
Integration Ideas / Easy Inexpensive Cell Phone Integration?
« on: November 15, 2017, 12:55:44 PM »
Hey all, been a while.  Just got back from an extended break away from VC (Several years).

I am really needing a good cell phone integration.  I know of a good litter program called Remote Phone Call.  It has an SDK that could possibly work with VC.  If someone could get this going, it would be a really good inexpensive way to integrate our cell phones.  Sir, so-in-so is messaging you would like me to read it to you?  Or perhaps, sir, so-in-so is calling, would you like to answer it or have me tell them you will call them back?

Would be really cool.

https://www.justremotephone.com/ is their URL.

API URL can be found here...

https://www.justremotephone.com/sdk/Help/index.php

This is a video showing it off (KEEP IN MIND THIS IS A 2013 VIDEO)

https://youtu.be/7zBI8Gr4Kmg

8
Feature Requests / Re: plex integration
« on: August 17, 2015, 02:21:15 PM »
Which part is not working, did you run the main scripts to get a key and get clients and such? Any errors in VC would help as well.

Hmmm, I don't seem to know what you are talking about.  I just reinstalled VC after almost a year away so I do not remember much.  I am currently trying to re-familiarize myself with it.  Could you explain a little?  Thanks and sorry.

9
Feature Requests / Re: plex integration
« on: August 17, 2015, 12:28:59 PM »
I just tried this.  Granted I have not used VC in a very long time.  So I am somewhat rusty in getting things done/connected.

I followed the instructions and it did not work.  I created the 2 folders in the VC folder.  I added the XML to create the Plex voice commands and it still did not work. 

Any suggestions?

10
Feature Requests / Re: plex integration
« on: August 17, 2015, 11:05:38 AM »
Ok so I think I have it cleaned up enough for someone to test if they want.

First I have installed VoxCommando in the c:\voxcommando folder, you will need to create 2 new folders inside that directory called PY and PlexPayloads. Copy plexAuth.py and getMovieOffset.py into the PY folder and modify using your plex.tv username and password so you can generate an auth token needed to access your server.

Import the VC XML I have attached and you will just need to change the "Generate PLEX map" script inside "PLEX admin 2.0.0" to include your server IP and port.

Once that is done you can run the Generate Auth token script, then "Generate PLEX map", and the "Generate plex xml vc2.0.0" script. By default the script will choose the first client on your network as the default client so you can say "Play movie spaceballs" and it will select the first client. You can also specify client names "Play movie spaceballs on bedroom roku" Or you can run the default client script and you can select a different default client. I haven't used it in a while and I think that resuming was working as well by saying "Resume, film or movie, then the movie title"

It should find your movie libraries and tv libraries automatically and if you have multiples of each like I do it will combine all movies and all tv shows. It will do the same for clients in your house which need to be running when you generate plex map and generate client payloads. once the payloads are saved and as long as the client is accessible you should not have to run generate client payload unless your client names change.

Music payloads are not working as I don't use plex for music at all so I apologize for that, it should be simple using my code as a base for adding that feature.

Many thanks to vulcanjedi and nime5ter for base code snippets and ideas as well as other people in the forums. Let me know if you have questions, comments, or feedback and I would be happy to help modify for fix issues or explain any methods to my madness.

Awesome, I am going to try this.  Is there any way we can get VC to send the movie to Chromecast?

11
Castle O/S uses Kinects all over the home in every room to do the very same thing.  The great thing is, the 1st gen Kinect is dirt cheap since the 360 was replaced by the Xbox One.  The guy seems to get pretty good dictation.

http://youtu.be/ksiJWthOxY0

Personally, I would much rather use VC instead of Castle OS since VC is so much more customizable.  However I am just showing you the concept of a whole home microphone setup.

12
Other Plugins / Re: Wemo Plugin
« on: September 01, 2014, 11:35:09 PM »
You don't know how to create your own commands?  You should check out the wiki and the many video tutorials we have created so that you can learn how to create your own commands.

There are a few very simple Wemo actions which you can use to turn switches on and off by name.  They are documented here: http://voxcommando.com/mediawiki/index.php?title=Plugin_Wemo but all that information is also available in the program when building commands.

I asked because there was nothing in the voicecommands tree for the wemo.  I had showed you in my video.  

I looked at the link before I even made this thread and it doesnt really say anything about altering the voice commands for toggling the Wemo devices.

13
Other Plugins / Re: Wemo Plugin
« on: September 01, 2014, 11:03:18 PM »
Hi Dominique.  Thanks posting that video.  It looks like it is the motion sensor that is causing problems.  Can you please try unplugging it and then test the plugin again to see if it works.  If it does then we can go on to the next step to try to figure out how to fix it so that the plugin will ignore only the sensor.

Hmmm, it appears you were right.  It was the motion sensor.

Could you now tell me how I can get these to toggle with voice commands?

Also, do you see a SmartThings plugin anytime soon?

14
Other Plugins / Re: Wemo Plugin
« on: September 01, 2014, 09:15:28 PM »
When does it crash?

Sending  you a PM with a video showing it.  Dont really wanna make that video public cause it shows my IP addresses and serial numbers for my devices.

15
Other Plugins / Re: Wemo Plugin
« on: September 01, 2014, 03:08:28 PM »
I cannot answer your initial question cause I never tried it that way prior to the plugin.

This unblock solution you suggested almost works but crashes every time.  It does detect the Wemos and the toggle works but still, it crashes.


Pages: [1] 2 3