eprev / eprev.org

That’s my spot.
https://eprev.org
5 stars 1 forks source link

Comments: Change OS X network location based on the Wi-Fi network name #9

Open eprev opened 7 years ago

eprev commented 7 years ago

This issue is reserved for comments on Change OS X network location based on the Wi-Fi network name.

mousetail85 commented 7 years ago

Hi,

I'm not getting it to work on my macbook pro retina. Is there a Log I can check if there are errors thrown? I've named the network locations the same as the SSID.

Thanks in advance.

eprev commented 7 years ago

Hi,

The service writes error messages to $HOME/Library/Logs/LocationChanger.log. To see any, you will need to turn Wi-Fi off and change your network location to the "Automatic", after turning Wi-Fi back on, it will try to switch the network location. Hope, it will help.

mousetail85 commented 7 years ago

Hi Eprev,

I've tried your suggestion, without luck. I didn't had a automatic network location, but created a new one.

The log file only shows this: Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. Deleting expired sessions...52 completed.

Should I restart the application/service or something?

eprev commented 7 years ago

This doesn't seem to be the right LocationChanger.log. Let's move this discussion to the more appropriate place. Could you create a new issue, re-install the service, paste the output (if there is any), and provide more details on which network locations you have.

jrschumacher commented 7 years ago

Thanks this is great! 👍

SAGV commented 7 years ago

This is an awesome tool!

Mollium commented 6 years ago

Would love to use this tool because it is exactly what I need, can you help me get it working? I always get this error while installing LocationChanger:

bash: line 11: /usr/local/bin/locationchanger: Permission denied chmod: /usr/local/bin/locationchanger: No such file or directory /Users/xxx/Library/LaunchAgents/LocationChanger.plist: service already loaded

Thanks!

eprev commented 6 years ago

Hey, @Mollium. Sure, please create a new issue https://github.com/eprev/locationchanger/issues and provide full output of the installation process.

ll-FEROX-ll commented 6 years ago

@eprev Hey, I had the same issue as @Mollium but was able to just install manually and it seems to be working great! Saved me the time of making this myself. Much appreciated!

Thanks, Bill

eprev commented 6 years ago

Glad it worked out for you this way, @ll-FEROX-ll . I managed to reproduce the issue and fixed it already, thanks!

weakspot commented 6 years ago

Thanks! Great tool! I circumvented the need to alter my "Mobile" and "Office" profiles by using aliases: I now have the following in ~/.locations/locations.conf: home-ssid_5GHz=Mobile home-ssid=Mobile work-ssid=Office Work-ssid=Office

Tested at office this morning, and noticed we have two different SSID's depending on the premises where I work: One is capitalized and the other is not. Aliases are case sensitive (which is good) so I simply added another work-ssid with a capital W and all works like a charm.

tonygray216 commented 6 years ago

log file prints out this [2018-01-18 23:00] Connected to 'x2.4' [2018-01-18 23:00] Will switch the location to 'x2.4' [2018-01-18 23:00] Location 'x2.4' was not found. Will default to 'Automatic' [2018-01-18 23:00] Already at 'Automatic'

my wireless networks are named 'tx5' and 'tx2.4'

why is it dropping the 't'?

I tried putting a location file named tx2.4 and tx5 and even x2.4 and x5 and always not found.

I have a conf file that has tx2.4=goat tx5=goat and 'goat' is the location name I created in Network preferences. So either network should switch to 'goat' location right?

eprev commented 6 years ago

Turns out, missing "t" is a bug, I pushed the fix, you should re-install it (locations from the config file will work as well). Thanks for bringing it up.

tonygray216 commented 6 years ago

thanks for the quick fix!!

shell commented 2 years ago

Just found this tool, it's amazing! Thank you @eprev for building it. I'm yet to try it out on my work network, but it correctly works at my home. Now I can switch DNS servers as router from my provider does not support setting custom DNS server.