Meet Phlex - A Google Home Action for Plex Control (And more!)

kireol

Senior Member
Sep 25, 2007
443
0
0
Royal Oak, MI
I just updated to latest commit: 32f6bcd73918168a4da2c0c8deffdce2db73bbd3

tried logging in to phlex. It told me invalid password (i use a password manager).

So I deleted phlex and cloned again. Went through all steps again, including relinking.

Google home is still talking to phlex.

phlex is still not talking to plex.

Test still says server not available.

Here's the only thing I see in the logs:

I/Wed, 22 Mar 2017 16:17:44 -0500: getCaller: AUTHENTICATION: Using API Token for authentication: 68c2b779271f07535264f191fa019536772c89050e
I/Wed, 22 Mar 2017 16:17:44 -0500: getCaller: API Token is a match, on to the wizard!
I/Wed, 22 Mar 2017 16:17:44 -0500: getCaller: Valid plex token used for authentication.
Can I make a suggestion that when phlex is at points where it works, make tags. Or develop in a branch and merge?
 

digitalhigh

Inactive Recognized Developer
Dec 28, 2010
3,622
11,927
0
Milwaukee, WI
www.facebook.com
I just updated to latest commit: 32f6bcd73918168a4da2c0c8deffdce2db73bbd3

tried logging in to phlex. It told me invalid password (i use a password manager).

So I deleted phlex and cloned again. Went through all steps again, including relinking.

Google home is still talking to phlex.

phlex is still not talking to plex.

Test still says server not available.

Here's the only thing I see in the logs:



Can I make a suggestion that when phlex is at points where it works, make tags. Or develop in a branch and merge?

I don't have that API token in the configs on the server. Please PM me your gmail address and public IP and I'll look and see why you can't communicate.


In terms of it "not working" - it works just fine for the vast majority of people. Any commits I'm making should, for the most part, be fixes and improvements.

Send me your details and I'd be happy to try and help you figure your issue out.
 

digitalhigh

Inactive Recognized Developer
Dec 28, 2010
3,622
11,927
0
Milwaukee, WI
www.facebook.com
Google home is saying "Sorry Flex TV is not responding" but starts playing anyways.

Any ideas what i'm missing?
Basically, there's a "hard" timeout from API.ai. If a response from the Phlex client takes longer than ~5sec to return, it times out, and you get a "not responding" message.

I've got some timeouts built into the master server where it *should* at least return a generic "I'll work on that for you" message in the event of these cutoffs. If you're still getting them, I'd like to examine the logs from your attempts and see what's going on for your case, dial in the timeout a bit more if possible.

If you could, send me a PM with your gmail address and your api Token, I can use these to find you in the logs.
 

trueppp

Member
Jan 13, 2009
19
0
0
Basically, there's a "hard" timeout from API.ai. If a response from the Phlex client takes longer than ~5sec to return, it times out, and you get a "not responding" message.

I've got some timeouts built into the master server where it *should* at least return a generic "I'll work on that for you" message in the event of these cutoffs. If you're still getting them, I'd like to examine the logs from your attempts and see what's going on for your case, dial in the timeout a bit more if possible.

If you could, send me a PM with your gmail address and your api Token, I can use these to find you in the logs.
I'm running the JS on my own server, do you want these logs too?
 

joelegg

New member
Apr 4, 2017
1
0
0
public address settings

hey all,

i'm really excited to get this going. I've got phlex installed and can access it with local host...

but even with firewall off, port forward of 9999 and updated xampp settings to use that new port.

canyouseeme says it can see me fine., so there is an issue with connecting to client. Whenever I try to register server i get check public address settings.

i've allowed a rule in windows firewall, but also totally disabled it as well. I've tried my direct external ip (i am not running vpns etc) and also a dyndns server, specifying the port and without the port and of course /phlex on it.

any tips would be greatly appreciated.
 

Brenex

Member
Feb 19, 2012
47
4
0
Davie
I'm just wondering if it is possible in my apartment to use google home to send plex commands to the local chromecast here even though the plex server is in an outside network (my server with plex running on it is in another house). I can log in to plex and do it manually with no issues.

For instance, when I load phlex on my apartment computer and click the dropdown chromecast button it says "Fatal error: call to undefined function socket_create() in C:\xampp\htdocs\phlex\cast\mdns.php on line 16"
 
Last edited:

Imacellist

Senior Member
Oct 20, 2011
517
196
0
Modesto, CA
How would one go about enabling the socket for chromecast devices
You need to enable it in php.ini. If you set it up using xampp it is pretty simple. Find your php.ini file (default would be in C:\xampp\php\ and remove the ; from the line ;extension=php_sockets.dll

I'm just wondering if it is possible in my apartment to use google home to send plex commands to the local chromecast here even though the plex server is in an outside network (my server with plex running on it is in another house). I can log in to plex and do it manually with no issues.

For instance, when I load phlex on my apartment computer and click the dropdown chromecast button it says "Fatal error: call to undefined function socket_create() in C:\xampp\htdocs\phlex\cast\mdns.php on line 16"
Yes it is definitely possible, you do just need to host phlex in your apartment, plex does not need to be local. You can choose the server you want to pull from, and I see my local one, and my friends one as well. For the chromecast error, see above, its caused by the sockets not being enabled.
 
  • Like
Reactions: Brenex

TonyFrend

New member
Nov 18, 2015
4
0
0
Playing music to the Google Home Speaker

First of all, this seems to be a great project that will allow us to free ourselves from the subscription model.

I have just decided to buy a Google Home device (I live in the UK).

I have also started to install the Phlex package on my Synology NAS device. This already has a Plex Media server, Web server, Apache and PHP services installed and running on it.

Is it possible to use Phlex to play music to the Google Home speaker? If so, how do I set it up?

Many thanks for your great work so far and any help you may be able to give me.

Best regards,

Tony
 

CharlesW123

Senior Member
Sep 19, 2008
195
44
0
Sheffield, UK
Issue re-linking Google account

Hi, as per reported issue #25 on github (added a comment on there too) I'm unable to get Phlex working :( Issue is the Register server option is failing to bring me to the option in my Google account to allow permissions (I did have it linked before but un-linked it whilst troubleshooting the fact that Phlex wasn;t working for me), does my account on your end need removing or something? Thanks
 

Pendazz

Member
Feb 2, 2014
5
1
0
Hi mate, thanks for your hardwork on this project!

I'm in the process of setting up phlex to work with my Ghome and local plex server- all seems to be good until i "Talk to Flex TV" Ghome tells me "Flex TV isn't available on devices setup for British English".

if i switch my ghome to US region all works fine. Is there any way around this without changing the region of my Ghome?

I'm not sure if phlex is aware of my chromecast (i've enabled sockets.dll in php.ini) if i log into the web interface for flex and select the chromecast icon i dropdown appears saying "Select a player to control" i feel like i should see my Chromcasts here?

If i say "Ok google, tell flex to play [movie name] on [Chromecast name]" it replies: "Sure here's Flex TV, I'll work on that for you" or "Sure here's Flex TV, Let me see if i can do that for you" but nothing happens after that?

Finally, The Flex Web Interface doesn't have any background, nor does it show any historic commands i've given - any ideas?

I'm running Plex and Xampp (latest version at time of writing) on the same server (windows server 2016) (http)

let me know if you need anymore information

and thanks again for all your work on this




Thanks in advance
 
Last edited:

MrMaxP

New member
Apr 24, 2017
3
0
0
I have the same problem with British English. I think this is just a setting when the developer configures the Google side of the system. It just needs the option adding. I imagine most if not all things will work with British English.

I'm not keen to switch my system to US so it would be amazing if this could get added.
 

digitalhigh

Inactive Recognized Developer
Dec 28, 2010
3,622
11,927
0
Milwaukee, WI
www.facebook.com
I have the same problem with British English. I think this is just a setting when the developer configures the Google side of the system. It just needs the option adding. I imagine most if not all things will work with British English.

I'm not keen to switch my system to US so it would be amazing if this could get added.
Currently, it's not something I'm in control of. The ability to allow UK English is just not made accessible to me by google.
 

MrMaxP

New member
Apr 24, 2017
3
0
0
When I try to set the device to use, the dropdown box just displays "SELECT A PLAYER TO CONTOL".

When I installed for the first time, I only had 1 Roku device in the house and it linked to that. However, I ran into the "British English" problem so abandoned it for a few weeks. I've since set my device to US English and completed the Google link registration. Now, however, I can't select my second Roku or Chromecast from this menu. It does, however happily play anything I ask for on the first Roku device. Any ideas?

Thanks,
Max