AlbertMN / AssistantComputerControl

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

Open file on disk X #96

Closed edouardpremier closed 3 years ago

edouardpremier commented 3 years ago

Hello I would like to open a folder on an other disk than C: T:\vr I don't know anything about code I've tried that in IFTTT but it doesn't work. https://acc.albe.pw/do_action.txt?open_all:T:\vr could you please correct the code for me?

Thank you

AlbertMN commented 3 years ago

T:\vr should work, if you have a folder called "VR" in the T drive. Make sure just to copy the full path like this; image

That way you're sure it's 100% correct. Let me know if it still doesn't work.

edouardpremier commented 3 years ago

thank you for your answer, here is the issue

Capture d’écran 2020-12-30 184700

AlbertMN commented 3 years ago

The URL is wrong. Missing ?a= I believe. Check the docs again.

edouardpremier commented 3 years ago

Thank you for you help, but it's not good yet: |DEBUG|AssistantComputerControl.MainProgram|File doesn't exist (anymore).

Capture d’écran 2020-12-30 184700 The file location is: T:\vr
Capture d’écran 2020-12-30 184700

AlbertMN commented 3 years ago

Need more of the log

edouardpremier commented 3 years ago

Hello, thank you again, here the last log:

[ -- DOING ACTION(S) -- ] 2021-01-02 05:12:09.0097|DEBUG|AssistantComputerControl.MainProgram| - D:\Documents\Nuage\Cloud drive\AssistantComputerControl\computerAction.txt UID; 844424930447295 2021-01-02 05:12:09.0097|DEBUG|AssistantComputerControl.MainProgram| - File exists, checking the content... 2021-01-02 05:12:09.0097|DEBUG|AssistantComputerControl.MainProgram| [EXECUTING ACTION] 2021-01-02 05:12:09.0097|DEBUG|AssistantComputerControl.MainProgram| - Applet has not specified a computer name, this computer has no computer name BUT it's a 'default computer' - executing 2021-01-02 05:12:09.0097|DEBUG|AssistantComputerControl.MainProgram| - Action: open_all 2021-01-02 05:12:09.0097|DEBUG|AssistantComputerControl.MainProgram| - Parameter: T 2021-01-02 05:12:09.0097|DEBUG|AssistantComputerControl.MainProgram| - Full line: open_all:T 2021-01-02 05:12:09.0207|DEBUG|AssistantComputerControl.MainProgram|ERROR: Directory doesn't exist (D:\Documents\AssistantComputerControl\shortcuts\T) 2021-01-02 05:12:09.0207|DEBUG|AssistantComputerControl.MainProgram|Non-fatal action. Starting cleanup service. 2021-01-02 05:12:09.0207|DEBUG|AssistantComputerControl.MainProgram|[ERROR]: Directory doesn't exist (D:\Documents\AssistantComputerControl\shortcuts\T) 2021-01-02 05:12:09.0207|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Service started 2021-01-02 05:12:09.0207|DEBUG|AssistantComputerControl.MainProgram|[ -- DONE -- ] 2021-01-02 05:12:09.1867|DEBUG|AssistantComputerControl.MainProgram|File is in use, retrying 2021-01-02 05:12:09.2528|DEBUG|AssistantComputerControl.MainProgram|Processing file... 2021-01-02 05:12:09.2528|DEBUG|AssistantComputerControl.MainProgram|File no longer exists when trying to read file. 2021-01-02 05:12:09.2528|DEBUG|AssistantComputerControl.MainProgram|File doesn't exist (anymore). 2021-01-02 05:12:10.2015|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Successful 2021-01-02 05:12:15.2178|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Running extra cleanup (followup) 2021-01-02 05:12:40.2394|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Running extra cleanup (followup) 2021-01-02 05:13:37.7675|DEBUG|AssistantComputerControl.MainProgram|Sentry initiated 2021-01-02 05:13:38.0026|DEBUG|AssistantComputerControl.MainProgram|ACC running with language "Francais" 2021-01-02 05:13:38.0556|DEBUG|AssistantComputerControl.MainProgram|Other ACC instance was running. Killed it. 2021-01-02 05:13:38.0556|DEBUG|AssistantComputerControl.MainProgram|[ACC begun (v1.4.1)] 2021-01-02 05:13:38.1506|DEBUG|AssistantComputerControl.MainProgram|Deleting all files in action folder 2021-01-02 05:13:38.1506|DEBUG|AssistantComputerControl.MainProgram|Checking for updates... 2021-01-02 05:13:38.1506|DEBUG|AssistantComputerControl.MainProgram|Old action files removed - moving on... 2021-01-02 05:13:38.1506|DEBUG|AssistantComputerControl.MainProgram| [AssistantComputerControl] Initiated. Listening in: "D:\Documents\Nuage\Cloud drive\AssistantComputerControl" for ".txt" extensions 2021-01-02 05:13:38.5407|DEBUG|AssistantComputerControl.MainProgram|Software up to date

Capture

AlbertMN commented 3 years ago

So, now the action runs, but it claims the folder it's trying to open doesn't exist. This is because it's just looking for a folder called "T" in the ACC "shortcuts" folder. I will have to check up on exactly why it does this, but you can try and create a shortcut of the T drive, place it in the ACC shortcuts folder (the directory in your screenshot, just without the "T"), and open that instead.

Will get back to you on why this happens, and probably fix something :)

edouardpremier commented 3 years ago

Thanks for your help, I added the shortcut and made some tests by modifying the command like "https://acc.albe.pw/do_action.txt?a=open_all:T"
But without success... Capture

[EXECUTING ACTION] 2021-01-03 04:00:03.0666|DEBUG|AssistantComputerControl.MainProgram| - Applet has not specified a computer name, this computer has no computer name BUT it's a 'default computer' - executing 2021-01-03 04:00:03.0666|DEBUG|AssistantComputerControl.MainProgram| - Action: open_all 2021-01-03 04:00:03.0666|DEBUG|AssistantComputerControl.MainProgram| - Parameter: T 2021-01-03 04:00:03.0666|DEBUG|AssistantComputerControl.MainProgram| - Full line: open_all:T 2021-01-03 04:00:03.0666|DEBUG|AssistantComputerControl.MainProgram|ERROR: Directory doesn't exist (D:\Documents\AssistantComputerControl\shortcuts\T) 2021-01-03 04:00:03.0666|DEBUG|AssistantComputerControl.MainProgram|Non-fatal action. Starting cleanup service. 2021-01-03 04:00:03.0666|DEBUG|AssistantComputerControl.MainProgram|[ERROR]: Directory doesn't exist (D:\Documents\AssistantComputerControl\shortcuts\T) 2021-01-03 04:00:03.0666|DEBUG|AssistantComputerControl.MainProgram|[ -- DONE -- ] 2021-01-03 04:00:03.0666|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Service started 2021-01-03 04:00:03.2482|DEBUG|AssistantComputerControl.MainProgram|Processing file... 2021-01-03 04:00:03.2482|DEBUG|AssistantComputerControl.MainProgram|File no longer exists when trying to read file. 2021-01-03 04:00:03.2482|DEBUG|AssistantComputerControl.MainProgram|File doesn't exist (anymore). 2021-01-03 04:00:04.2376|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Successful 2021-01-03 04:00:09.2393|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Running extra cleanup (followup) 2021-01-03 04:00:34.2713|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Running extra cleanup (followup) 2021-01-03 04:02:24.8290|DEBUG|AssistantComputerControl.MainProgram|Processing file... 2021-01-03 04:02:24.8290|DEBUG|AssistantComputerControl.MainProgram| - Read complete, content: open_all:Torrent 2021-01-03 04:02:24.8290|DEBUG|AssistantComputerControl.MainProgram| [ -- DOING ACTION(S) -- ] 2021-01-03 04:02:24.8290|DEBUG|AssistantComputerControl.MainProgram| - D:\Documents\Nuage\Cloud drive\AssistantComputerControl\computerAction.txt UID; 562949953736642 2021-01-03 04:02:24.8320|DEBUG|AssistantComputerControl.MainProgram| - File exists, checking the content... 2021-01-03 04:02:24.8320|DEBUG|AssistantComputerControl.MainProgram| [EXECUTING ACTION] 2021-01-03 04:02:24.8320|DEBUG|AssistantComputerControl.MainProgram| - Applet has not specified a computer name, this computer has no computer name BUT it's a 'default computer' - executing 2021-01-03 04:02:24.8320|DEBUG|AssistantComputerControl.MainProgram| - Action: open_all 2021-01-03 04:02:24.8320|DEBUG|AssistantComputerControl.MainProgram| - Parameter: Torrent 2021-01-03 04:02:24.8320|DEBUG|AssistantComputerControl.MainProgram| - Full line: open_all:Torrent 2021-01-03 04:02:24.8320|DEBUG|AssistantComputerControl.MainProgram|ERROR: Directory doesn't exist (D:\Documents\AssistantComputerControl\shortcuts\Torrent) 2021-01-03 04:02:24.8320|DEBUG|AssistantComputerControl.MainProgram|Non-fatal action. Starting cleanup service. 2021-01-03 04:02:24.8320|DEBUG|AssistantComputerControl.MainProgram|[ERROR]: Directory doesn't exist (D:\Documents\AssistantComputerControl\shortcuts\Torrent) 2021-01-03 04:02:24.8320|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Service started 2021-01-03 04:02:24.8320|DEBUG|AssistantComputerControl.MainProgram|[ -- DONE -- ] 2021-01-03 04:02:24.9956|DEBUG|AssistantComputerControl.MainProgram|Tried to execute an already-executed file (UID 0) 2021-01-03 04:02:24.9956|DEBUG|AssistantComputerControl.MainProgram|File doesn't exist (anymore). 2021-01-03 04:02:26.0101|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Successful 2021-01-03 04:02:31.0231|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Running extra cleanup (followup) 2021-01-03 04:02:56.0613|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Running extra cleanup (followup) 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram|Processing file... 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram| - Read complete, content: open_all:Torrent 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram| [ -- DOING ACTION(S) -- ] 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram| - D:\Documents\Nuage\Cloud drive\AssistantComputerControl\computerAction.txt UID; 844424930447298 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram| - File exists, checking the content... 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram| [EXECUTING ACTION] 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram| - Applet has not specified a computer name, this computer has no computer name BUT it's a 'default computer' - executing 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram| - Action: open_all 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram| - Parameter: Torrent 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram| - Full line: open_all:Torrent 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram|ERROR: Directory doesn't exist (D:\Documents\AssistantComputerControl\shortcuts\Torrent) 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram|Non-fatal action. Starting cleanup service. 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram|[ERROR]: Directory doesn't exist (D:\Documents\AssistantComputerControl\shortcuts\Torrent) 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram|[ -- DONE -- ] 2021-01-03 04:04:29.0422|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Service started 2021-01-03 04:04:29.2020|DEBUG|AssistantComputerControl.MainProgram|File is in use, retrying 2021-01-03 04:04:29.2632|DEBUG|AssistantComputerControl.MainProgram|Tried to execute an already-executed file (UID 0) 2021-01-03 04:04:29.2632|DEBUG|AssistantComputerControl.MainProgram|File doesn't exist (anymore). 2021-01-03 04:04:30.2153|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Successful 2021-01-03 04:04:35.2219|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Running extra cleanup (followup) 2021-01-03 04:05:00.2454|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Running extra cleanup (followup) 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram|Processing file... 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram| - Read complete, content: open_all:T 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram| [ -- DOING ACTION(S) -- ] 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram| - D:\Documents\Nuage\Cloud drive\AssistantComputerControl\computerAction.txt UID; 1125899907157954 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram| - File exists, checking the content... 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram| [EXECUTING ACTION] 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram| - Applet has not specified a computer name, this computer has no computer name BUT it's a 'default computer' - executing 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram| - Action: open_all 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram| - Parameter: T 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram| - Full line: open_all:T 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram|ERROR: Directory doesn't exist (D:\Documents\AssistantComputerControl\shortcuts\T) 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram|Non-fatal action. Starting cleanup service. 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram|[ERROR]: Directory doesn't exist (D:\Documents\AssistantComputerControl\shortcuts\T) 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Service started 2021-01-03 04:08:06.8711|DEBUG|AssistantComputerControl.MainProgram|[ -- DONE -- ] 2021-01-03 04:08:07.0385|DEBUG|AssistantComputerControl.MainProgram|File is in use, retrying 2021-01-03 04:08:07.1000|DEBUG|AssistantComputerControl.MainProgram|Tried to execute an already-executed file (UID 0) 2021-01-03 04:08:07.1000|DEBUG|AssistantComputerControl.MainProgram|File doesn't exist (anymore). 2021-01-03 04:08:08.0538|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Successful 2021-01-03 04:08:13.0699|DEBUG|AssistantComputerControl.MainProgram|[CLEANUP] Running extra cleanup (followup)

edouardpremier commented 3 years ago

Nothing works anymore, I think the service via IFTTT has become a paying service because there is an inscription "pro" in front of your applets

edouardpremier commented 3 years ago

today the command is coming on my PC but ACC doesn't execute it, the command doesn't go in the log, I only see it in the google drive notification of my PC. Do you have an idea?

AlbertMN commented 3 years ago

This seems to be fixed now, can't replicate at least after serveral tries. Closing.