vervallsweg / cast-web-api

Quick and dirty web API for Google Cast enabled devices.
GNU General Public License v3.0
141 stars 74 forks source link

Unique MAC address workaround #125

Open jmbinette opened 5 years ago

jmbinette commented 5 years ago

Hi,

I understand the "unique mac address" issue with the networkid.

To permit running multiple instances of APIs on the same raspberry PI, would it be possible to add a configurable prefix before the MAC ?

Thanks,

vervallsweg commented 5 years ago

APIs on the same raspberry PI, would it be possible to add a configurable prefix before the MAC ?

This won't work since this a ST limitation. If we want to send something to ST we need to use the mac to identify ourself. It needs to be a valid mac and obviously match the hardware mac the ST hub received the package from.

Your only option is to add a second network card/device to your raspberry, with a different ip. Then you have two different ip/mac pairs for two different apis.

jmbinette commented 4 years ago

Sorry I "snoozed" on this for a long time!

Any way to choose which network interface is used by cast-web-api ?

jmbinette commented 4 years ago

That could be a great feature yes ! Did not find a solution yet as even using WLAN and ETH on the Raspberry Pi, the mac address used seems to always be the same