AlbertMN / AssistantComputerControl

Control your computer with your Google Home or Amazon Alexa assistant!
MIT License
879 stars 61 forks source link

ACC stopped working - Alexa + IFTTT + GDrive OK #117

Closed timothe closed 3 years ago

timothe commented 3 years ago

ACC runs on my computer, Alexa + IFTTT creates the file on Google Drive. The right folder is set up in the settings. But ACC leaves the file(s) as they are and do not perform any action. Log enclosed, but does not say much. I also setup the ACC folder in GDrive as "offline". log.txt It seemed to work till a few months back. Maybe when I switched to the updated version of Google Drive? Any idea?

AlbertMN commented 3 years ago

Many report that ACC doesn't work with the new Google Drive. I for one got it working fine.

Could you try downloading the new test-version linked to here; https://github.com/AlbertMN/AssistantComputerControl/issues/115, and run it after your PC (and Google Drive) is up and running? See if that helps and let me know.

timothe commented 3 years ago

Unfortunately that didn't help. ACC is up to date with the beta version, the txt files appear but ACC doesn't react. I re-defined the path to be sure, also I restarted ACC after everything was up and running. Although I realise ACC might start before Google Drive at startup. Would that be the issue?

AlbertMN commented 3 years ago

The link to #115 above isn't a beta version, so please try and download the version from the link, and start up ACC after the start of Google Drive.

timothe commented 3 years ago

I think I got the right one. image

AlbertMN commented 3 years ago

That's the one, built last week - try closing ACC and starting it again after GDrive is properly set up. If it works, I have a fix and can make GDrive work again.

timothe commented 3 years ago

Same result. ACC just sits there, without performing any action. image

AlbertMN commented 3 years ago

Damn... Can you send the ACC log here?

timothe commented 3 years ago

log.txt That's the latest

AlbertMN commented 3 years ago

Yeah, don't see anything sadly. Well, R.I.P ACC Google Drive support ⚰️.

Sadly doesn't seem like theres' much I can do about it from a code-perspective, open to suggestions and PR's, but don't have the time to look further into it personally.

timothe commented 3 years ago

;(

timothe commented 3 years ago

I believe it boils down to monitoring external drives, mounted/dismounted at will. I'm not a .NET developer so can't really say or offer a PR, but it looks like it's the root cause. The funny thing is that it cleans the directory at startup, so it does have access to it. I see you're using FileSystemWatcher with the basic methods. My noob ass would look at this, this, this, this to see if there's anything interesting using your current method (polling instead of using the usual methods?), or this to explore another way of using it, or use the GDrive API here, or maybe another workaround such as this.