Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] API set online status of custom command connection #416

Open
cv-prod-github opened this issue Jan 16, 2025 · 5 comments
Open

Comments

@cv-prod-github
Copy link

It would be nice if i could assign an offline or online status to a custom command connection, so that i can feed xpipe with this information.
At the moment the connection gives information that its online when the return code after execution is 0.

@crschnick
Copy link
Member

I'm not entirely sure what you mean. Can you elaborate on that?

@cv-prod-github
Copy link
Author

There will always be plenty of services that xpipe will not support, or are to small to make the effort to support and implement it for everyone.
At the moment the get go is , to create a command connection object and and use that to open the connection.
But in that way im not able to see if the service is currently available.
If i have the ability to show an indicator if a system or a service is online then i can see that without having to try to connect first.

@crschnick
Copy link
Member

So you have something like this
image
and want to set the displayed status for that from the API?

@cv-prod-github
Copy link
Author

exactly(i just have an enviromentshell that builds up a tunnel to computer networks in some cases), when i open the app, it detects the return code and shows a little dot like green when it executed without error.
It would be nice to have an online/offline indicator that i can set by api to show if a service/target is reachable.
At the moment i have commandline objects for for rustdesk, this will eventually in the future be supported.(Rustdesk doesnt show online indicator. I get this information from a Monitoring system. It would be great to have the ability to feed that information into xpipe)
But there are plenty of other tools to make a connection to a computer where a function that allows to update a status from api would be great.

@crschnick
Copy link
Member

The green dot is actually indicating that a shell session is opened in the background (for performance reasons if you run another command on that system shortly afterwards). If you click on it, the session is closed.

I will think about this, that should be possible somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants