mercury icon indicating copy to clipboard operation
mercury copied to clipboard

Output feature request

Open ykassif opened this issue 8 years ago • 9 comments

Will this app be able to output the results from a command onto the log file or a separate dialog.

ykassif avatar Mar 12 '16 16:03 ykassif

This feature may be implemented in future.

Skarafaz avatar Mar 19 '16 10:03 Skarafaz

This would be very useful.

At least show a toast if the command returns an error (rc != 0).

bart9h avatar Oct 03 '17 01:10 bart9h

I made a branch with that feature: https://github.com/dreua/mercury/tree/feature-output Please note that I had to remove nohup from the commands to accomplish this, so this will break things if you rely on nohup. (It is there by default and I didn't find a way to deactivate it.)

dreua avatar Jan 21 '18 19:01 dreua

I'm planning a big update including this feature. A good implementation is not trivial, so just be patient :).

Skarafaz avatar Jan 21 '18 19:01 Skarafaz

I have pulled the code last night and I am also having a look at this, I think having the feedback going to the log is not the correct course of action. However I do like how @dreua implemented the stdout but I was unable to deploy his code as the gradle3 was giving me all sorts of issues, even tho i'm using Android Studio 3. @Skarafaz I look forward to seeing what you are planning and I will also push to a branch my attempt.

I think having the response would also allow the app to get status information from a Pi (or any other linux box) to get WiFi info, bluetooth status etc....

I think having an app with json config files to implement the functionality of the device is awesome and the best idea of this I have seen. @Skarafaz well done mate!!!

kjbaker-uk avatar Feb 06 '18 15:02 kjbaker-uk

@D4rkC00d3r : I'm sorry that you had issues with my latest commits on the branch, they have been pushed in error. I believe my plan was to continue developing and adjusting everything for Gradle 3 but that never happened. Please try to checkout the commit 9974bfe58d2029f401c94128f4263ba7fafc2775 , that should work and I believe that is the version currently running on my device.

dreua avatar Feb 06 '18 18:02 dreua

@D4rkC00d3r Thanks!!

Skarafaz avatar Feb 06 '18 18:02 Skarafaz

@dreua Hey mate, thanks for the message I was able to see your commit earlier today but now I cant?? If I click your link in the message I can see the changes but in GitKracken I cant see your stuff at all now??

kjbaker-uk avatar Feb 06 '18 22:02 kjbaker-uk

@D4rkC00d3r : I'm sorry I don't know GitKracken, maybe you got in "Detached head" state by checking out the commit and your Kracken is confused by that. I would try checking out the branch (git checkout feature-output) or pulling the branch to fix this. I just reverted the last two commits so you can just use the latest version of my feature-output branch. Good Luck!

dreua avatar Feb 07 '18 00:02 dreua