GerryDazoo / Slinger

Reuse SlingBox hardware without SlingBox Servers
170 stars 34 forks source link

Two Slingboxes #6

Closed Mover480 closed 1 year ago

Mover480 commented 1 year ago

I had this working with one of my slingboxes remotely. Then I tried to connect to the other one and now I can't get either one to connect.

I have the .dat file and I put the config back to the original/first settings. When I run the bat file, it seems to be working ok but when I use vlc to connect to the slingbox, no video, nada. It just seems to time out.

Here is the log for a current run for the first box.

D:\Slingbox>( REM if code is not on your C drive switch to the correct drive letter REM g: REM use the full pathname to where your code is located cd d:/slingbox slingbox_server.exe REM or if your using python use the full path to whatever python interpreter you're using. REM "c:\Program Files\Python39\python.exe" slingbox_server.py ) Version : 1.01 Running on Windows-10-10.0.19044-SP0 Connection Manager Running 10 max streams.... Streamer Running: starting up on port 8080 Checking ('104.48.112.24', 5201) Using slingbox at ('104.48.112.24', 5201) Streamer: Waiting for first stream, flushing any IR requests that arrive while not connected to slingbox

Is there some way to flush everything and start over? And how to set up for two boxes?

Thanks

GerryDazoo commented 1 year ago

The config.ini and the keys.dat file are unique for each slingbox. I haven’t spent anytime is try to get the code to support multiple boxes at the same time, although you’re not the first to tell me they have more than one box.

Here’s my response to them:

“The current software does not support more than one slingbox out of the box. You would need to copy all the files into a separate folder so you can have unique config.ini and keys.dat files. Also you would need to change the port the server is listening on to avoid a collision.”

The you can run two instances of the software to get access to your boxes at any time. Don’t forget to delete the keys.dat file so the software will regenerate the proper keys.dat file for each slingbox when you first connect.

You should see some logs when your media player tries to connect,

07/17/2022, 18:03:59 connection from ('127.0.0.1', 36092)

Slinginfo "350/500" password 12 30 192.168.117.122 5001 3072 Starting Stream for 127.0.0.1:36092 Connecting... ('192.168.117.122', 5001) Control CHALLANGE bff95daed609364c8204f2bc5fbdc363 Fetching new encryption keys from web VideoParameters: Resolution= 12 FrameRate= 30 VideoBandwidth= 4000 VideoSmoothness= 63 IframeRate= 5 AudioBitRate= 64 Connecting... ('192.168.117.107', 5202) Stream Stream started at 07/17/2022, 18:04:01 577 2423

if you don’t see those then your request isn’t getting to the server either because of a badly formed stream definition

or maybe a firewall issue. http://youserveripaddress:8080/slingbox. Note the 8080 will be different for each of your boxes.

From: Mover480 @.> Sent: Sunday, July 17, 2022 9:56 PM To: GerryDazoo/Slinger @.> Cc: Subscribed @.***> Subject: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

I had this working with one of my slingboxes remotely. Then I tried to connect to the other one and now I can't get either one to connect.

I have the .dat file and I put the config back to the original/first settings. When I run the bat file, it seems to be working ok but when I use vlc to connect to the slingbox, no video, nada. It just seems to time out.

Here is the log for a current run for the first box.

D:\Slingbox>( REM if code is not on your C drive switch to the correct drive letter REM g: REM use the full pathname to where your code is located cd d:/slingbox slingbox_server.exe REM or if your using python use the full path to whatever python interpreter you're using. REM "c:\Program Files\Python39\python.exe" slingbox_server.py ) Version : 1.01 Running on Windows-10-10.0.19044-SP0 Connection Manager Running 10 max streams.... Streamer Running: starting up on port 8080 Checking ('104.48.112.24', 5201) Using slingbox at ('104.48.112.24', 5201) Streamer: Waiting for first stream, flushing any IR requests that arrive while not connected to slingbox

Is there some way to flush everything and start over? And how to set up for two boxes?

Thanks

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQPRTLV6AMZLN2VZLH3VUSTTJANCNFSM532TZD5A . You are receiving this because you are subscribed to this thread. https://github.com/notifications/beacon/AYOYVQLO2E3BRZFLM7Y6IQ3VUSTTJA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4TPLJBTQ.gif Message ID: @.***>

Mover480 commented 1 year ago

Gerry, It seems to be working now. I mapped port 65432 to 8080. and opened 8080 in the firewall.

Now that I have this part working, how do I view the video stream with VLC. Everything I've tried returns blank.

If I can get one of my boxes working, then I'll tackle two.

Thanks

Version : 1.01 Running on Windows-10-10.0.19044-SP0 Connection Manager Running 5 max streams.... Streamer Running: starting up on port 8080 Checking ('104.48.112.24', 5201) Using slingbox at ('104.48.112.24', 5201) Streamer: Waiting for first stream, flushing any IR requests that arrive while not connected to slingbox

Slinginfo 07/20/2022, 10:47:29 connection from ('192.168.2.116', 60938) 350/500 password 12 30 104.48.112.24 5201 3072 Starting Stream for 192.168.2.116:60937 Connecting... ('104.48.112.24', 5201) Control No request in time, hacker? CHALLANGE 720fc17802cf78cc000aa8aa2b5192f7 VideoParameters: Resolution= 12 FrameRate= 30 VideoBandwidth= 4000 VideoSmoothness= 63 IframeRate= 5 AudioBitRate= 32 Connecting... ('104.48.112.24', 5201) Stream h246_header_pos 744 744 Stream started at 07/20/2022, 10:47:33 744 .

GerryDazoo commented 1 year ago

The IP address for the slingbox should probably be on your local network

192.168.2.x.

Then to make sure everything is working connect to the server with VLC from some box in your local network

http://192.168.2.116:8080/slingbox

On your router map port 65432 to 192.168.2.116 port 8080

The you should be able to connect to (I’m assuming 104.48.112.24 is your external IP address )

http://104.48.112.24:65432/slingbox

Use this address for connecting when you’re away from home.

From: Mover480 @.> Sent: Wednesday, July 20, 2022 11:55 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Gerry, It seems to be working now. I mapped port 65432 to 8080. and opened 8080 in the firewall.

Now that I have this part working, how do I view the video stream with VLC. Everything I've tried returns blank.

If I can get one of my boxes working, then I'll tackle two.

Thanks

Version : 1.01 Running on Windows-10-10.0.19044-SP0 Connection Manager Running 5 max streams.... Streamer Running: starting up on port 8080 Checking ('104.48.112.24', 5201) Using slingbox at ('104.48.112.24', 5201) Streamer: Waiting for first stream, flushing any IR requests that arrive while not connected to slingbox

Slinginfo 07/20/2022, 10:47:29 connection from ('192.168.2.116', 60938) 350/500 password 12 30 104.48.112.24 5201 3072 Starting Stream for 192.168.2.116:60937 Connecting... ('104.48.112.24', 5201) Control No request in time, hacker? CHALLANGE 720fc17802cf78cc000aa8aa2b5192f7 VideoParameters: Resolution= 12 FrameRate= 30 VideoBandwidth= 4000 VideoSmoothness= 63 IframeRate= 5 AudioBitRate= 32 Connecting... ('104.48.112.24', 5201) Stream h246_header_pos 744 744 Stream started at 07/20/2022, 10:47:33 744 .

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1190390408 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQIEKMTGC4S4NKTWJKLVVAHMRANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQNWLZ4HFVAA6T7ZQIDVVAHMRA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI3Z6VCA.gif Message ID: @. @.> >

Mover480 commented 1 year ago

Gerry, Thanks for the reply.

I guess I really don't understand how this is supposed to work, but I did get it working.

Here's how.

My Slingboxes are in Louisiana and I am in Michigan. The ip of my internet connection in LA is 104.48.112.24. I have two routers and have forwarded the 5201 and 5221 ports on both routers for the two slingboxes. With the Slingplayer Desktop app, I have no problems watching either Slingbox from anywhere in the world.

My local MI windows computer ip is 192.168.2.116. On my local MI router, I've mapped ports 65432 to 8080 and 65433 to 8090. Both 8080 and 8090 ports are opened on my firewall.

With the slingbox_server.exe running with the config.ini and keys.dat for the 5201 Slingbox and the 8080 local port on my MI computer, VLC will connect to my Slingbox using a network address of http://192.168.2.116:8080/slingbox. It seems to work better with a caching setting of 2000ms though. Picture and sound are just fine and can be viewed on a TV with Chromecast.

With the slingbox_server.exe running with the config.ini and keys.dat for the 5221 Slingbox and the 8090 local port on my MI computer, VLC will connect to my Slingbox using a network address of http://192.168.2.116:8090/slingbox.

Using http://104.48.112.24:65432/slingbox in VLC does nothing.

Am I doing this correctly? or do I need to have the slingbox server running on my computer in LA? I can set this up remotely if needed.

Thanks for your help.

GerryDazoo commented 1 year ago

I understand now what you are trying to do. And yes it should work. In my network configuration the server is running locally on the same network as the slingboxes. Give me some time and I’ll whip up a network configuration guide powerpoint/pdf slide.

PS. Can I assume that you’re using some kind of VPN connection to get access to the network in LA? I was thinking you “could” run the connections to the slingboxes over the VPN. This would remove the need for the port mapping/forwarding entries in LA router and probably be a little more secure.

From: Mover480 @.> Sent: Wednesday, July 20, 2022 4:00 PM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Gerry, Thanks for the reply.

I guess I really don't understand how this is supposed to work, but I did get it working.

Here's how.

My Slingboxes are in Louisiana and I am in Michigan. The ip of my internet connection in LA is 104.48.112.24. I have two routers and have forwarded the 5201 and 5221 ports on both routers for the two slingboxes. With the Slingplayer Desktop app, I have no problems watching either Slingbox from anywhere in the world.

My local MI windows computer ip is 192.168.2.116. On my local MI router, I've mapped ports 65432 to 8080 and 65433 to 8090. Both 8080 and 8090 ports are opened on my firewall.

With the slingbox_server.exe running with the config.ini and keys.dat for the 5201 Slingbox and the 8080 local port on my MI computer, VLC will connect to my Slingbox using a network address of http://192.168.2.116:8080/slingbox. It seems to work better with a caching setting of 2000ms though. Picture and sound are just fine and can be viewed on a TV with Chromecast.

With the slingbox_server.exe running with the config.ini and keys.dat for the 5221 Slingbox and the 8090 local port on my MI computer, VLC will connect to my Slingbox using a network address of http://192.168.2.116:8090/slingbox.

Using http://104.48.112.24:65432/slingbox in VLC does nothing.

Am I doing this correctly? or do I need to have the slingbox server running on my computer in LA? I can set this up remotely if needed.

Thanks for your help.

— Reply to this email directly, https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1190643990 view it on GitHub, or https://github.com/notifications/unsubscribe-auth/AYOYVQN7BMN6OQ6HEPOEDKTVVBEENANCNFSM532TZD5A unsubscribe. You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQKPFMKULCESUKBPWSTVVBEENA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI334SFQ.gif Message ID: < @.> @.>

GerryDazoo commented 1 year ago

Here you go. Hopefully this will help.

From: Mover480 @.> Sent: Wednesday, July 20, 2022 4:00 PM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Gerry, Thanks for the reply.

I guess I really don't understand how this is supposed to work, but I did get it working.

Here's how.

My Slingboxes are in Louisiana and I am in Michigan. The ip of my internet connection in LA is 104.48.112.24. I have two routers and have forwarded the 5201 and 5221 ports on both routers for the two slingboxes. With the Slingplayer Desktop app, I have no problems watching either Slingbox from anywhere in the world.

My local MI windows computer ip is 192.168.2.116. On my local MI router, I've mapped ports 65432 to 8080 and 65433 to 8090. Both 8080 and 8090 ports are opened on my firewall.

With the slingbox_server.exe running with the config.ini and keys.dat for the 5201 Slingbox and the 8080 local port on my MI computer, VLC will connect to my Slingbox using a network address of http://192.168.2.116:8080/slingbox. It seems to work better with a caching setting of 2000ms though. Picture and sound are just fine and can be viewed on a TV with Chromecast.

With the slingbox_server.exe running with the config.ini and keys.dat for the 5221 Slingbox and the 8090 local port on my MI computer, VLC will connect to my Slingbox using a network address of http://192.168.2.116:8090/slingbox.

Using http://104.48.112.24:65432/slingbox in VLC does nothing.

Am I doing this correctly? or do I need to have the slingbox server running on my computer in LA? I can set this up remotely if needed.

Thanks for your help.

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1190643990 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQN7BMN6OQ6HEPOEDKTVVBEENANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQKPFMKULCESUKBPWSTVVBEENA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI334SFQ.gif Message ID: @. @.> >

Mover480 commented 1 year ago

No VPN Just Google Chrome Remote Desktop.

Was there supposed to be an attachment?

GerryDazoo commented 1 year ago

On it’s way. The diagram doesn’t show the web browser to Server connections for the remote control.

From: Mover480 @.> Sent: Wednesday, July 20, 2022 5:16 PM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

No VPN Just Google Chrome Remote Desktop.

Was there supposed to be an attachment?

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1190713170 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQLDH4UISRUMF3IOV5TVVBNADANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQPSS765GTTJHHSEYRDVVBNADA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI34NOUQ.gif Message ID: @. @.> >

Mover480 commented 1 year ago

Gerry,

For the way I have the server set up and the way I access my slingboxes with VLC, how to I get the remote to work? When I try the http://192.168.2.116:8080/remote I get: This page isn’t working 192.168.2.116 didn’t send any data

Thanks

GerryDazoo commented 1 year ago

Should be

http://192.168.2.116:8080/Remote

Capital R

From: Mover480 @.> Sent: Friday, July 22, 2022 5:01 PM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Gerry,

For the way I have the server set up and the way I access my slingboxes with VLC, how to I get the remote to work? When I try the http://192.168.2.116:8080/remote I get: This page isn’t working 192.168.2.116 didn’t send any data

Thanks

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1192894730 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQIAKBALWLBCZ7OQIBLVVL4YNANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQM7EYUSC6N5EMHBJU3VVL4YNA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI4NCCCQ.gif Message ID: @. @.> >

Mover480 commented 1 year ago

Doh!

Thanks

GerryDazoo commented 1 year ago

Is it working now?

Mover480 commented 1 year ago

Gerry,

Yes it is. Thanks

In fact, I put together the remote for a Tivo Bolt (which is connected to one of my Slingboxes). It's functional and looks OK in a browser. I'll attach it here in case anyone is interested. Just replace the entire Remote section with the contents of the file. Tivo Bolt Remote.txt

GerryDazoo commented 1 year ago

Very nice layout. I think I’ll add a section to the project for people to up load their custom remote code.

From: Mover480 @.> Sent: Saturday, July 23, 2022 9:31 PM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Gerry,

Yes it is. Thanks

In fact, I put together the remote for a Tivo Bolt (which is connected to one of my Slingboxes). It's functional and looks OK in a browser. I'll attach it here in case anyone is interested. Just replace the entire Remote section with the contents of the file. Tivo Bolt Remote.txt https://github.com/GerryDazoo/Slinger/files/9174882/Tivo.Bolt.Remote.txt

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1193216233 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQLVW54NICUN2H65CATVVSFDDANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQI35XMSVDKFWD5U2NTVVSFDDA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI4PQR2I.gif Message ID: @. @.> >

Humbug787 commented 1 year ago

Hi Gerry & Mover

I have tried the 2 slingbox setup by creating 2 separate server folders on the server PC and changing the config.ini for each box. I have changed the listening port from the default of 8080 to 8090 on the second box. The connection to the streaming on VLC works fine with both boxes. The odd thing though is the remote. Despite entering the http://myserveraddress/8090/Remote for the second box it still opens up the remote for the first box and controls it.

Any ideas?

Thanks

Paul

GerryDazoo commented 1 year ago

http://myserveraddress/8090/Remote

should be

http://myserveraddrees:8090/Remote.

Are you connecting thru your external IP remotely? Make sure you have two port maps configured one for 8080 and one for 8090.

From: Humbug787 @.> Sent: Tuesday, July 26, 2022 6:52 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Hi Gerry & Mover

I have tried the 2 slingbox setup by creating 2 separate server folders on the server PC and changing the config.ini for each box. I have changed the listening port from the default of 8080 to 8090 on the second box. The connection to the streaming on VLC works fine with both boxes. The odd thing though is the remote. Despite entering the http://myserveraddress/8090/Remote for the second box it still opens up the remote for the first box and controls it.

Any ideas?

Thanks

Paul

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1195266633 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQLS6WOSSSXW6YF3GLLVV6YNHANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQMBP5I7RXYBHYYAW7TVV6YNHA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI47FESI.gif Message ID: @. @.> >

Humbug787 commented 1 year ago

Sorry Gerry, my typo the my server address I am trying is the correct one and I am trying to access it locally so no port mapping should be required?

So do you think (with the correct address) it should work?

thanks

GerryDazoo commented 1 year ago

If you’re connecting locally then yes, no port mapping is required.

You should see something in the logs when you open up the Remote. If not then you may have a firewall issue blocking port 8090. Turn off your firewall temporarily to verify.

From: Humbug787 @.> Sent: Tuesday, July 26, 2022 7:36 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Sorry Gerry, my typo the my server address I am trying is the correct one and I am trying to access it locally so no port mapping should be required?

So do you think (with the correct address) it should work?

thanks

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1195310560 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQNUMPHKDUFB4VP5AUDVV65QFANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQN7KZA7MQHSALKD62DVV65QFA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI47P3YA.gif Message ID: @. @.> >

Mover480 commented 1 year ago

I've had the same problem. I just hadn't got around to addressing it with Gerry. Everything is configured properly and, yes, when both servers are running and connected to each slingbox, the second remote loads the first one. Both ports are open in the firewall. Strange.

GerryDazoo commented 1 year ago

I don’t see how this is possible unless both sling boxes are configured with the same remote type.

PS. Double check the port maps if you’re connection remotely. Both external ports might be mapped to the same internal address.

From: Mover480 @.> Sent: Tuesday, July 26, 2022 8:56 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

I've had the same problem. I just hadn't got around to addressing it with Gerry. Everything is configured properly and, yes, when both servers are running and connected to each slingbox, the second remote loads the first one. Both ports are open in the firewall. Strange.

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1195386177 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQIG2BLRCKJJCAWCGPLVV7G4BANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQJGY7F7FOFBPUG6ZSDVV7G4BA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI5ACKQI.gif Message ID: @. @.> >

Humbug787 commented 1 year ago

Yes, both mine are configured with the same remote type. I have one box dedicated to travel hidden away in a cupboard so I don’t disturb her majesty when I am away.

GerryDazoo commented 1 year ago

It came to me on the driving range while hitting some balls. I’ve managed to reproduce the issue here. I’ll have a new version for you momentarily. I’m surprised by how many people have more than one box.

From: Humbug787 @.> Sent: Tuesday, July 26, 2022 9:40 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Yes, both mine are configured with the same remote type. I have one box dedicated to travel hidden away in a cupboard so I don’t disturb her majesty when I am away.

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1195429126 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQKOEZGQAAIN4ZV6MMDVV7MAJANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQMAFIEUVOP5VFN6WSLVV7MAJA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI5AM2BQ.gif Message ID: @. @.> >

Mover480 commented 1 year ago

I have two different remotes set up in the two config.ini files. Each one works with the slingbox it is assigned to individually; but, when both servers are running, the second remote opens the first. I just tried it again and it's still doing it.

Humbug787 commented 1 year ago

I have changed the second slingbox to a different remote (same setup as Mover) but it appears that the server that starts first becomes the master and takes the remote commands. The second server shows that the remote is connected but dismisses it as a hacker - here is a screenshot of them both receiving the same remote commands. Having the second server on a different PC altogether seems to solve it, just a bit PC intensive.

image

GerryDazoo commented 1 year ago

Grab the latest version V2.04. The issue was the remote control handler was binding to the same port so whoever ran first got all the messages. Fixed now. Sorry about that chief.

From: Mover480 @.> Sent: Tuesday, July 26, 2022 11:51 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

I have two different remotes set up in the two config.sys files. Each one works with the slingbox it is assigned to individually; but, when both servers are running, the second remote opens the first. I just tried it again and it's still doing it.

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1195584851 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQJF7CUR2KHK6MMW5M3VV73LXANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQK2ZDXTPLWEVFRRHHTVV73LXA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI5BS2UY.gif Message ID: @. @.> >

GerryDazoo commented 1 year ago

Grab the latest version V2.04. The issue was the remote control handler was binding to the same port so whoever ran first got all the messages. Fixed now. Sorry about that chief.

From: Humbug787 @.> Sent: Tuesday, July 26, 2022 12:09 PM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

I have changed the second slingbox to a different remote (same setup as Mover) but it appears that the server that starts first becomes the master and takes the remote commands. The second server shows that the remote is connected but dismisses it as a hacker - here is a screenshot of them both receiving the same remote commands. Having the second server on a different PC altogether seems to solve it, just a bit PC intensive.

https://user-images.githubusercontent.com/109479081/181042097-a86d613d-241a-4333-9d42-123552f285ce.png

— Reply to this email directly, https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1195608007 view it on GitHub, or https://github.com/notifications/unsubscribe-auth/AYOYVQIC34FL6LZFDKU75I3VV75PHANCNFSM532TZD5A unsubscribe. You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQIHC4NFR7RBFDBK4H3VV75PHA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI5BYPRY.gif Message ID: < @.> @.>

Humbug787 commented 1 year ago

Hi Gerry

That has nailed it - brilliant and again, many thanks.

One for the longer game. I used to use an IR receiver (FLIRC) with a 3rd party player called Slingfront that allowed the 'Home Viewing' experience when watching remotely, just using a duplicate of your home remote to change channels as you would at home. Do you know if that might be possible in the future, map an IR command to the HTML remote?

Thanks

Paul

P.S. - Love your 'Sorry about that Chief' comment - apologising for all your hard work is not required Sire....

Mover480 commented 1 year ago

Yup, works fine now.

I also use an ir over ip device called ir Anywhere. It allows me to use my Tivo remote to remotely control the Tivo.

https://www.keene.co.uk/kira-w-infrared-over-ip-wireless-extender-kit.html

GerryDazoo commented 1 year ago

Unfortunately no, all the ir codes are embedded in the Remote definition when you setup the slingbox input. But you could make your own custom remote control config and install it on the slingbox. Note: Not for the faint of heart.

https://slingbox.fandom.com/wiki/How_to_create_custom_remote_upgrade

From: Humbug787 @.> Sent: Tuesday, July 26, 2022 1:24 PM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Hi Gerry

That has nailed it - brilliant and again, many thanks.

One for the longer game. I used to use an IR receiver (FLIRC) with a 3rd party player called Slingfront that allowed the 'Home Viewing' experience when watching remotely, just using a duplicate of your home remote to change channels as you would at home. Do you know if that might be possible in the future, map an IR command to the HTML remote?

Thanks

Paul

P.S. - Love your 'Sorry about that Chief' comment - apologising for all your hard work is not required Sire....

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1195701728 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQPD6GTFDCQF5NSIB5LVWAGI5ANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQK24DNNOWUBG5XXN5DVWAGI5A5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI5CPLYA.gif Message ID: @. @.> >

GerryDazoo commented 1 year ago

Check out the Tivo remote config in the CustomRemotes folder. Somebody besides me has been busy.

From: Mover480 @.> Sent: Tuesday, July 26, 2022 1:47 PM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Yup, works fine now.

I also use an ir over ip device called ir Anywhere. It allows me to use my Tivo remote to remotely control the Tivo.

https://www.keene.co.uk/kira-w-infrared-over-ip-wireless-extender-kit.html

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1195727303 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQLCSVKAGFD5424DRKLVWAI77ANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQN3VQUQTPCX773Z4YLVWAI77A5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI5CVTRY.gif Message ID: @. @.> >

GerryDazoo commented 1 year ago

You might like to take this out for a test drive.

The latest version 2.05 allows you to specify individual styles per button. So for example in the styles section of the [REMOTE] section in config.ini you could have something like below which defines the default button style and a red-button style. style=.button { border: none; color: white; background-color: blue; padding: 0px 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 70px; margin: 4px 2px; cursor: pointer; }

.red-button {

border: none;

color: white;

background-color: red;

padding: 0px 20px;

text-align: center;

text-decoration: none;

display: inline-block;

font-size: 70px;

margin: 4px 2px;

cursor: pointer;

}

.text {

border: none;

color: black;

background-color: lightblue;

text-align: center;

text-decoration: none;

display: inline-block;

font-size: 70px;

margin: 4px 2px;

cursor: pointer;

}

Then you can add the button class to the button definition i.e.

buttons='1' : 9 :
'2' : 10 : red-button :
'3' : 11 .....

This would make the "2" button red.

From: Mover480 @.> Sent: Saturday, July 23, 2022 9:31 PM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Gerry,

Yes it is. Thanks

In fact, I put together the remote for a Tivo Bolt (which is connected to one of my Slingboxes). It's functional and looks OK in a browser. I'll attach it here in case anyone is interested. Just replace the entire Remote section with the contents of the file. Tivo Bolt Remote.txt https://github.com/GerryDazoo/Slinger/files/9174882/Tivo.Bolt.Remote.txt

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1193216233 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQLVW54NICUN2H65CATVVSFDDANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQI35XMSVDKFWD5U2NTVVSFDDA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI4PQR2I.gif Message ID: @. @.> >

Humbug787 commented 1 year ago

Hi Gerry

I have given it a first test run but getting an error code when selecting the red button. This is how I changed the config.ini

image

and this is the remote on the browser image This the error code when I use a Red Button image

Any obvious errors you can see?

Humbug787 commented 1 year ago

And the Server StartUp too

image

GerryDazoo commented 1 year ago

Can you send me your whole config.ini?

From: Humbug787 @.> Sent: Tuesday, July 26, 2022 6:45 PM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Hi Gerry

I have given it a first test run but getting an error code when selecting the red button. This is how I changed the config.ini

https://user-images.githubusercontent.com/109479081/181117203-c8ed8855-d37e-4ffd-972e-d3e905a00fad.png

and this is the remote on the browser https://user-images.githubusercontent.com/109479081/181117504-6a50aee7-63fb-4ee6-833c-55f87f4a7383.png This the error code when I use a Red Button https://user-images.githubusercontent.com/109479081/181117830-60517bae-4c60-43c2-bc94-6a77cf3ccb33.png

Any obvious errors you can see?

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1196013771 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQJR46MXSJIXLVTLB7LVWBL6ZANCNFSM532TZD5A . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQKZ64S7WDNS4GE3XDTVWBL6ZA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI5E3RSY.gif Message ID: @. @.> >

Humbug787 commented 1 year ago

[SLINGBOX] sbtype=350/500 password=x.........x ; uncomment the next lines ipaddress and port with your local network info ; if you don't want the server to automatically find your ; slingbox on the local network. Needed if server and slingbox are ; not on the same LAN segment. ALso removes requirement for the netifaces module
ipaddress=192.168.68.111 port=5221

; Following are the default values ; Default resolution when server starts ;Resolution=12

; Valid Values 1, 6, 10, 15, 20, 30, 60 depending on resolution ;FrameRate=30

;Min 50 Max 8000 ;VideoBandwidth=3000

; Min 0 (auto) max 63 ;VideoSmoothness=63

; Send Iframe every n seconds Max 30 ;IframeRate=5

; Audio Bit Rate. Valid Options 16, 20, 32, 40, 48, 64, 96 Default 32 ;AudioBitRate=32

[SERVER] ; local port number for the server to listen on for connections port=8090 maxstreams=10 enableremote=yes

[REMOTE] ;Key Codes : 1,4,5,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,31,32,33,34,35,37,38,39,40,41,42,43,44,45,46,47,53,54,55,56,57,58,59,60 ; 1 = power ; 4 = chnl + ; 5 = chnl - ; 9 = 1 ; 10 = 2 ; 11 = 3 ;..... ; 18 = 0 ; 19 = Screen format (Stretch, Wide ..... ) ; 21 = chnl + ; 22 = ??? ; 23 = DVR ; 24 = Play ; 25 = ??? ; 26 = Pause ; 27 = Rewind ; 28 = FF ; 29 = Record ; 31 = Back 10 Seconds ; 32 = ->| ; 33 = Menu ; 34 = OnDemand ; 35 = Guide ; 37 = Exit ; 38 = "Up arrow" ; 39 = "down Arrow" ; 40 = "<-" ; 41 = "->" ; 42 = "OK" ; 43 = Page Up ; 44 = Page Down ; 45 = Favourites ; 46 = Info ; 47 = ??? ; 53 = PIP on/off ; 54 = ???? ; 55 = ???? ; 56 = Last ; 57 = ???? ; 58 = LOck PIN ; 59 = Day - ; 60 = Day +

style=.button { border: none; color: white; background-color: blue; padding: 0px 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 70px; margin: 4px 2px; cursor: pointer; } .red-button { border: none; color: white; background-color: red; padding: 0px 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 70px; margin: 4px 2px; cursor: pointer; } .text { border: none; color: black; background-color: lightblue; text-align: center; text-decoration: none; display: inline-block; font-size: 70px; margin: 4px 2px; cursor: pointer; } ; button text, key code buttons='Power' : 1:red-button :

'..1..' : 9 :   '..2..' : 10 :   '..3..' : 11 :

'..4..' : 12 :   '..5..' : 13 :   '..6..' : 14 :   :

'..7..' : 15 :   '..8..' : 16 :   '..9..' : 17 :

:     &nbsp :  ;   &nbsp :                         &nbsp '..0..' : 18 :
:         &nbsp   &nbsp                     'Back' : 36 :

:                       &nbsp :                     &nbsp 'Up' : 38 :   :

'Left' : 40 :     'OK' : 42:red-button :    
'Right': 41 :

:                       &nbsp :           &nbsp 'Down' : 39 :

:   'Guide' : 35 :     'Menu' : 33 :     'Rec' : 29:red-button :

'Pg-' : 44 :   'Pg+' : 43:red-button :
'FF' : 28 :   'Rew' : 27 :   'Play' : 24 :   'Pause' : 26

Humbug787 commented 1 year ago

Not sure I can attach the actual file and the formatting doesn't look like the file itself. I will see if I can do better...

Mover480 commented 1 year ago

yeah, I'm getting the same error on the colored buttons.

Humbug787 commented 1 year ago

image image image image

Humbug787 commented 1 year ago

Going to have to hit the sack now guys, getting late here in the UK - good luck

GerryDazoo commented 1 year ago

You should be able to attach the config,ini file. Try not to send screen shots, I have a hard time reading them. When it's the server logs you should be able to just cut and paste the server output. Or when you run the server you can pipe the output to a file and send taht.

GerryDazoo commented 1 year ago

last but not least have a look a the TIVO remote example in the CustomRemotes folder. I've verified it works as expected. 4 color buttons.

Humbug787 commented 1 year ago

Morning Gerry/Mover

I have been trying to make the TV Coloured buttons work but I still get the Remote HTML stopping reporting an Internal Server error when I use any button except black?

Hopefully here is a better version of the config file Gerry - sorry about the screenprints.

Paul Humbug787.txt

GerryDazoo commented 1 year ago

If you send me your config.ini file I can figure out why it’s not working. Other people have had some success.

From: Humbug787 @.> Sent: Wednesday, July 27, 2022 8:00 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Assign @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Morning Gerry/Mover

I have been trying to make the TV Coloured buttons work but I still get the Remote HTML stopping reporting an Internal Server error when I use any button except black?

Hopefully here is a better version of the config file Gerry - sorry about the screenprints.

Paul Humbug787.txt https://github.com/GerryDazoo/Slinger/files/9197735/Humbug787.txt

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1196580454 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQKQBZFKOAHHWBHCVRLVWEJDDANCNFSM532TZD5A . You are receiving this because you were assigned. https://github.com/notifications/beacon/AYOYVQLMAWICNSCVKXQFMSTVWEJDDA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI5JF4ZQ.gif Message ID: @. @.> >

Humbug787 commented 1 year ago

Hi Gerry, it is attached as a text file. Humbug787.txt

GerryDazoo commented 1 year ago

I managed to reproduce your problem. It was a bug. Grab the latest from Github. V2.06.

From: Humbug787 @.> Sent: Wednesday, July 27, 2022 8:20 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Assign @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Hi Gerry, it is attached as a text file. Humbug787.txt

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1196599405 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQNKFIPS2J5XA7GYDNDVWELPXANCNFSM532TZD5A . You are receiving this because you were assigned. https://github.com/notifications/beacon/AYOYVQOCJVFJ52FHOXYLWLLVWELPXA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI5JKQ3I.gif Message ID: @. @.> >

Humbug787 commented 1 year ago

Thanks Gerry, all working now

GerryDazoo commented 1 year ago

Check out the latest version 3.00. Allows you to run multiple slingboxes with only one instance of the server. Details in the V3,00 Release Notes PDF file.

Humbug787 commented 1 year ago

Hi Gerry

I checked it out last night. No snags with the 2 sling boxes from the same server and the remote copied across from my previous ‘homemade’ version and works. In my case it is the same remote for both Slingboxes.

I have just tried the FFPlayer on windows as well, excellent response time from the remote in comparison to VLC and a great option for the normal TV experience when away in our holiday pad.

FYI, I use the Slingbox lots when I am away in Hotels (too often) watching through an Amazon Firestick. So far it is with VLC or MX Player, neither are perfect and seem to get delays with channel changes. I will keep trying to find a better player and keep you posted.

Excellent work Gerry, I am amazed how far this has come on so quickly, you really are putting some work in.

Many thanks

Paul

On 2 Aug 2022, at 12:17, GerryDazoo @.***> wrote:

 Check out the latest version 3.00. Allows you to run multiple slingboxes with only one instance of the server. Details in the V3,00 Release Notes PDF file.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

GerryDazoo commented 1 year ago

Somewhere in the mists of time I recall seeing a option/checkbox in the VLC config to select minimum delay. But I don’t remember where it was or what version of VLC I was using. But it did get VLC down to !2 second delay.

From: Humbug787 @.> Sent: Tuesday, August 02, 2022 9:09 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Assign @.> Subject: Re: [GerryDazoo/Slinger] Two Slingboxes (Issue #6)

Hi Gerry

I checked it out last night. No snags with the 2 sling boxes from the same server and the remote copied across from my previous ‘homemade’ version and works. In my case it is the same remote for both Slingboxes.

I have just tried the FFPlayer on windows as well, excellent response time from the remote in comparison to VLC and a great option for the normal TV experience when away in our holiday pad.

FYI, I use the Slingbox lots when I am away in Hotels (too often) watching through an Amazon Firestick. So far it is with VLC or MX Player, neither are perfect and seem to get delays with channel changes. I will keep trying to find a better player and keep you posted.

Excellent work Gerry, I am amazed how far this has come on so quickly, you really are putting some work in.

Many thanks

Paul

On 2 Aug 2022, at 12:17, GerryDazoo @. <mailto:@.> > wrote:

 Check out the latest version 3.00. Allows you to run multiple slingboxes with only one instance of the server. Details in the V3,00 Release Notes PDF file.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/6#issuecomment-1202402319 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQIZELCT2XDRS27VYBLVXEFWXANCNFSM532TZD5A . You are receiving this because you were assigned. https://github.com/notifications/beacon/AYOYVQPQLTTA4OVTPF6EWPLVXEFWXA5CNFSM532TZD5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI6VTIDY.gif Message ID: @. @.> >

Mover480 commented 1 year ago

For two Singbox 500's using the Windows server, what does the command line look like?