dpower Posted January 4, 2018 Posted January 4, 2018 Haven't started yet. Wanted to ensure I wasn't headed down a deep, dark hole before I begin. Cheers!
Steven M Castano Posted January 5, 2018 Author Posted January 5, 2018 Haven't started yet. Wanted to ensure I wasn't headed down a deep, dark hole before I begin. Cheers! You should be good to go! Let me know how it goes! Sent from my iPhone using Tapatalk
dpower Posted January 6, 2018 Posted January 6, 2018 Steven... Everything's gone exceptionally-smoothly on Windows 10... up to the point of running iPhoneLocation.py, at which point it generates the following error: Startup: Your current operating system is windows Startup: PID=488 Startup: Failed to load logging settings, ABORTING! Traceback (most recent call last): File "iphonelocation.py", line 75, in <module> f_out = open('c:\{}.pid'.format(application_logging_name), 'w', 0) IOError: [Errno 13] Permission denied: 'c:\\iPhoneLocation.pid' It seems Python has a permissions issue writing to disk. Before I spend too much time unpacking this, do you have any advice? Thanks.
Steven M Castano Posted January 7, 2018 Author Posted January 7, 2018 Steven... Everything's gone exceptionally-smoothly on Windows 10... up to the point of running iPhoneLocation.py, at which point it generates the following error: Startup: Your current operating system is windows Startup: PID=488 Startup: Failed to load logging settings, ABORTING! Traceback (most recent call last): File "iphonelocation.py", line 75, in <module> f_out = open('c:\{}.pid'.format(application_logging_name), 'w', 0) IOError: [Errno 13] Permission denied: 'c:\\iPhoneLocation.pid' It seems Python has a permissions issue writing to disk. Before I spend too much time unpacking this, do you have any advice? Thanks. My guess here is that it doesn't like that you're writing to the root of the C drive... you could try "Run As Administrator".... start an admin command prompt then run the iPhoneLocation.py script. If that doesn't work, I can probably show you a few code changes so it writes the .pid file somewhere else... as well as just commend out the lines and not write one at all.
dpower Posted January 7, 2018 Posted January 7, 2018 Steven... Permissions to the C: drive was the issue. I changed the path on line 75 so the .pid file is now being created in a permissioned location. I'll check to see if there are other references and update them accordingly. Happy to report the script is working fine. I was out to the gym this morning and it tracked my trip out and back. Next... onto the ISY program. Thanks for your help.
dpower Posted January 7, 2018 Posted January 7, 2018 Proximity app is up and running on two devices right now and I have it triggering programs to flash lights and send a text message when my wife is within striking distance. (NB: Nothing untoward here. Just a warning so I have time to stop doing geeky stuff before she opens the door.) In terms of at-home Bluetooth monitoring, does anyone know of an hcitool equivalent for Windows? It would make sense that someone, somewhere has developed one but I've yet to locate it. Thoughts, anyone?
Recommended Posts