d8ahazard / FlexTV

Other
215 stars 32 forks source link

Whitespaces #16

Closed PwnedPirate closed 5 years ago

PwnedPirate commented 5 years ago

IMPORANT, PLEASE READ FIRST:

Please read over the Notes/FAQ and networking sections before reporting an issue.

If your issue is not resolved, try to fill out the following as completely as possible. I'm not going to delete issues just because forms aren't filled out completely, but I will if you provide me no information whatsoever.

If submitting a feature request, these are not required.

1. Are you hosting your own version of Flex TV, or using the one at https://app.phlexchat.com?

Hosting my own version

If hosting your own version, please answer the below questions. Otherwise, proceed to #8.

2. On what OS are you running Flex TV?

Docker

3. Are you using a new instance of XAMPP, or an existing webserver?

Docker image install

3b. If not XAMPP, what WebServer stack are you using?

4. Have you enabled the sockets module and ensured PHP has write-access to the directory containing Flex TV?

Yes

5. Have you followed the (networking)[Talking-To-The-Outside-World] section?

Yes

6. If you're having issues with a specific command, please note the timestamp in the web UI, and take a look at Flex TV and Flex TV_error.log files. Paste anything that looks related as well.

[05-05-2019 19:23:50.488100] [ALERT] [Pwned_Pirate] [api::mapApiRequest] - Request is 'change player LG 55UH750V-ZA'. Data: [JSON] 1 [05-05-2019 19:23:50.488800] [INFO] [Pwned_Pirate] [api::mapApiRequest] - Intent is controlMedia 2 [05-05-2019 19:23:50.489200] [INFO] [Pwned_Pirate] [api::mapApiRequest] - Control command! 3 [05-05-2019 19:23:50.489600] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildQueryControl] - params: [] 4 [05-05-2019 19:23:50.490100] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildQueryControl] - Command and value are device.change and 5 [05-05-2019 19:23:50.490500] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildQueryControl] - Change device requested. 6 [05-05-2019 19:23:50.491000] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildQueryControl] - We have the params necessary to change device. 7 [05-05-2019 19:23:50.491400] [ERROR] [Pwned_Pirate] [api::mapApiRequest:buildQueryControl:findDevice] - Unable to find Client with a Name of 55UH750V-ZA. 8 [05-05-2019 19:23:50.491800] [ERROR] [Pwned_Pirate] [api::mapApiRequest:buildQueryControl] - Unable to find specified device. 9 [05-05-2019 19:23:50.492300] [DEBUG] [Pwned_Pirate] [api::mapApiRequest] - Outgoing: [JSON] 10 [05-05-2019 19:23:50.492700] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech] - Incoming: [JSON] 11 [05-05-2019 19:23:50.493200] [INFO] [Pwned_Pirate] [api::mapApiRequest:buildSpeech] - Retrieved data: false 12 [05-05-2019 19:23:50.493600] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech] - Intent is controlMedia 13 [05-05-2019 19:23:50.494000] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech] - Building a control query reply! 14 [05-05-2019 19:23:50.494400] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech:buildSpeechCommand] - Building speech for device.change 15 [05-05-2019 19:23:50.494800] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech:buildCards] - Incoming: false 16 [05-05-2019 19:23:50.495300] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech:buildCards] - Outgoing: [] 17 [05-05-2019 19:23:50.495700] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech] - Cards?: [] 18 [05-05-2019 19:23:50.496100] [DEBUG] [Pwned_Pirate] [api::mapApiRequest] - Clearing session context and media: [JSON] 19 [05-05-2019 19:23:50.496600] [ALERT] [Pwned_Pirate] [api::mapApiRequest:logCommand] - Final response for request of 'Change Player LG 55UH750V-ZA' is 'I'm Sorry, But I Couldn't Find A Client 55UH750V-ZA To Select.' 20 [05-05-2019 19:23:50.497800] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:logCommand:deleteData] - Got a command to delete commands - ["apiToken","stamp"] - ["79cf59f7163661c71c2b35afe9276944538548512f","2019-05-05 06:05:18"] 21 [05-05-2019 19:23:50.498300] [INFO] [Pwned_Pirate] [api::mapApiRequest:logCommand:deleteData:delete] - Deleting matching record: [JSON] 22 [05-05-2019 19:23:50.540000] [ALERT] [Pwned_Pirate] [api::mapApiRequest:bye] - -------TOTAL RUN TIME: 2.75s------- 23 [05-05-2019 19:23:50.562900] [ALERT] [Pwned_Pirate] [api::getUiData] - Sending 1 new command cards... 24 [05-05-2019 19:23:50.603700] [ALERT] [Pwned_Pirate] [api::bye] - -------TOTAL RUN TIME: 0.86s-------

BE SURE TO CHANGE ANY LINES CONTAINING API TOKENS OR OTHER PERSONAL IDENTIFYING INFORMATION

7. What are the last six digits of your server's API Token? (Settings -> Flex TV)

48512f

8. Please describe the issue.

When I want to change my player for LG 55UH750V-ZA it only takes LG and not the rest of the string so it can not find the player. I can not change the client name on LG TV so whitespace integration is mandatory for this to work. When selecting the player from UI it works. Is it possible to integrate " for example change player "LG 55UH750V-ZA" or could you give me the url called by the feature so I can use it in ifttt ?

d8ahazard commented 5 years ago

Hey there!

Sorry about the troubles. Player names are a tough one. I can usually match up the strings based on the presence of "on" in the request, but sometimes, DialogFlow just doesn't parse the name out properly.

I've gone through the history for the agent and trained it on your device name - give it a go again...it should work now.

Also, while not required, I'd recommend setting your TV to use a "friendly" name. "Basement TV" or "Bedroom TV" is common, and should automagically work. :D

On Sun, May 5, 2019 at 2:30 PM PwnedPirate notifications@github.com wrote:

IMPORANT, PLEASE READ FIRST:

Please read over the Notes/FAQ http://Notes-FAQ and networking http://Talking-To-The-Outside-World sections before reporting an issue.

If your issue is not resolved, try to fill out the following as completely as possible. I'm not going to delete issues just because forms aren't filled out completely, but I will if you provide me no information whatsoever.

If submitting a feature request, these are not required.

  1. Are you hosting your own version of Flex TV, or using the one at https://app.phlexchat.com?

Hosting my own version If hosting your own version, please answer the below questions. Otherwise, proceed to #8 https://github.com/d8ahazard/FlexTV/issues/8. 2. On what OS are you running Flex TV?

Docker

  1. Are you using a new instance of XAMPP, or an existing webserver?

Docker image install 3b. If not XAMPP, what WebServer stack are you using? 4. Have you enabled the sockets module and ensured PHP has write-access to the directory containing Flex TV?

Yes

  1. Have you followed the (networking)[Talking-To-The-Outside-World] section?

Yes

  1. If you're having issues with a specific command, please note the timestamp in the web UI, and take a look at Flex TV and Flex TV_error.log files. Paste anything that looks related as well.

[05-05-2019 19:23:50.488100] [ALERT] [Pwned_Pirate] [api::mapApiRequest] - Request is 'change player LG 55UH750V-ZA'. Data: [JSON] 1 [05-05-2019 19:23:50.488800] [INFO] [Pwned_Pirate] [api::mapApiRequest] - Intent is controlMedia 2 [05-05-2019 19:23:50.489200] [INFO] [Pwned_Pirate] [api::mapApiRequest] - Control command! 3 [05-05-2019 19:23:50.489600] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildQueryControl] - params: [] 4 [05-05-2019 19:23:50.490100] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildQueryControl] - Command and value are device.change and 5 [05-05-2019 19:23:50.490500] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildQueryControl] - Change device requested. 6 [05-05-2019 19:23:50.491000] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildQueryControl] - We have the params necessary to change device. 7 [05-05-2019 19:23:50.491400] [ERROR] [Pwned_Pirate] [api::mapApiRequest:buildQueryControl:findDevice] - Unable to find Client with a Name of 55UH750V-ZA. 8 [05-05-2019 19:23:50.491800] [ERROR] [Pwned_Pirate] [api::mapApiRequest:buildQueryControl] - Unable to find specified device. 9 [05-05-2019 19:23:50.492300] [DEBUG] [Pwned_Pirate] [api::mapApiRequest] - Outgoing: [JSON] 10 [05-05-2019 19:23:50.492700] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech] - Incoming: [JSON] 11 [05-05-2019 19:23:50.493200] [INFO] [Pwned_Pirate] [api::mapApiRequest:buildSpeech] - Retrieved data: false 12 [05-05-2019 19:23:50.493600] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech] - Intent is controlMedia 13 [05-05-2019 19:23:50.494000] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech] - Building a control query reply! 14 [05-05-2019 19:23:50.494400] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech:buildSpeechCommand] - Building speech for device.change 15 [05-05-2019 19:23:50.494800] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech:buildCards] - Incoming: false 16 [05-05-2019 19:23:50.495300] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech:buildCards] - Outgoing: [] 17 [05-05-2019 19:23:50.495700] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:buildSpeech] - Cards?: [] 18 [05-05-2019 19:23:50.496100] [DEBUG] [Pwned_Pirate] [api::mapApiRequest] - Clearing session context and media: [JSON] 19 [05-05-2019 19:23:50.496600] [ALERT] [Pwned_Pirate] [api::mapApiRequest:logCommand] - Final response for request of 'Change Player LG 55UH750V-ZA' is 'I'm Sorry, But I Couldn't Find A Client 55UH750V-ZA To Select.' 20 [05-05-2019 19:23:50.497800] [DEBUG] [Pwned_Pirate] [api::mapApiRequest:logCommand:deleteData] - Got a command to delete commands - ["apiToken","stamp"] - ["79cf59f7163661c71c2b35afe9276944538548512f","2019-05-05 06:05:18"] 21 [05-05-2019 19:23:50.498300] [INFO] [Pwned_Pirate] [api::mapApiRequest:logCommand:deleteData:delete] - Deleting matching record: [JSON] 22 [05-05-2019 19:23:50.540000] [ALERT] [Pwned_Pirate] [api::mapApiRequest:bye] - -------TOTAL RUN TIME: 2.75s------- 23 [05-05-2019 19:23:50.562900] [ALERT] [Pwned_Pirate] [api::getUiData] - Sending 1 new command cards... 24 [05-05-2019 19:23:50.603700] [ALERT] [Pwned_Pirate] [api::bye] - -------TOTAL RUN TIME: 0.86s-------

BE SURE TO CHANGE ANY LINES CONTAINING API TOKENS OR OTHER PERSONAL IDENTIFYING INFORMATION

  1. What are the last six digits of your server's API Token? (Settings -> Flex TV)

48512f

  1. Please describe the issue.

When I want to change my player for LG 55UH750V-ZA it only takes LG and not the rest of the string so it can not find the player. I can not change the client name on LG TV so whitespace integration is mandatory for this to work. When selecting the player from UI it works. Is it possible to integrate " for example change player "LG 55UH750V-ZA" or could you give me the url called by the feature so I can use it in ifttt ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/d8ahazard/FlexTV/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMO4NCYDKIOOGHDWRINDKLPT4YV7ANCNFSM4HK37M4A .

PwnedPirate commented 5 years ago

Hey,

Awesome it works with changer player on blablabla !

You are the best ! Many thanks for your support :D