turingmachine / omxplayer-sync

OMXPlayer-Sync facilitates synchronization of multiple OMXPlayer instances over the network in a master/slave fashion.
194 stars 70 forks source link

Anybody tried to run this on WIFI instead over Ethernet ? #81

Closed cpietsch closed 5 years ago

cpietsch commented 5 years ago

I want to do a 3 Screen setup and was wondering if you could use the master raspi as an hotspot to where the other 2 connect via wifi. In this scenario I wouldn't have to deal with cables and a switch.

Has anybody tried this ?

magdesign commented 5 years ago

This is possible. I tried it, but its not as accurate as over RJ45. You need to make some adjustments concerning sync window size.

pagaille commented 5 years ago

I did it, here are my notes :

Install RaspAP :

wget -q https://git.io/voEUQ -O /tmp/raspap && bash /tmp/raspap

Fix the Pi3 scan wifi issue :

sudo nano /var/www/html/includes/configure_client.php

#Replace lines # by

  exec( 'sudo wpa_cli -i wlan0 scan' );
  sleep(3);
  exec( 'sudo wpa_cli -i wlan0 scan_results',$scan_return );

Add the following line in sudoers :

   sudo visudo
    www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wlan0 scan_results
    www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wlan0 scan

Configure AP on master & connect the clients by connecting to http://10.3.141.1 (admin | secret)

cpietsch commented 5 years ago

thanks a lot for the replies !

rileycoyote87 commented 5 years ago

@pagaille I don't understand where you replace the lines in configure_client.php

pagaille commented 5 years ago

@rileycoyote87 i don’t remember :( I found that fix somewhere on Internet (could be a French forum), maybe you can enter the lines in google.

rileycoyote87 commented 5 years ago

I only kinda got it working on wifi. Rj45 is much easier and better sync

On Sun 2 Sep 2018 at 16:06 Matthieu notifications@github.com wrote:

@rileycoyote87 https://github.com/rileycoyote87 i don’t remember :( I found that fix somewhere on Internet (could be a French forum), maybe you can enter the lines in google.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/turingmachine/omxplayer-sync/issues/81#issuecomment-417933312, or mute the thread https://github.com/notifications/unsubscribe-auth/AeTAJ7xuCvlJ_H0s57JwqiUTxz-YgJ-6ks5uW-X6gaJpZM4WRLE9 .

cpietsch commented 5 years ago

@rileycoyote87 how did you setup the wifi ap ? I feel like the raspis could also mesh with each other.

rileycoyote87 commented 5 years ago

I ended up using the node js sockets version of omx sync works perfect on lan and wifi

On Mon 3 Sep 2018 at 17:20 Christopher Pietsch notifications@github.com wrote:

@rileycoyote87 https://github.com/rileycoyote87 how did you setup the wifi ap ? I feel like the raspis could also mesh with each other.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/turingmachine/omxplayer-sync/issues/81#issuecomment-418144004, or mute the thread https://github.com/notifications/unsubscribe-auth/AeTAJ6UbezkOtQiWppMRy94gMFEd6xczks5uXUjLgaJpZM4WRLE9 .

cpietsch commented 5 years ago

Oh sweet! Haven't seen that one yet. https://github.com/bmoren/node-omxplayer-sync