-
Notifications
You must be signed in to change notification settings - Fork 8
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
Mobius API #29
Comments
Thanks for the suggestion. I've intended to do something like this for my own use and plan to work on it after I get through more of the feature parity tasks. My thought is to add an optional command line argument like |
re: #29 TODO: add more stat counters Usage: ``` ./mobius-hotline-server -stats-port 5503 ``` ``` ❯ curl -s localhost:5503 | jq . { "LoginCount": 0, "StartTime": "2022-06-08T20:49:10.183921-07:00", "DownloadCounter": 0, "UploadCounter": 0 } ```
I've added a couple of new HTTP API endpoint in #143 that provide missing functionality to reload the configuration and send shutdown messages, but I think I'll leave it at that for now. |
Great stuff, would be helpful to be able to see via the API the server version as well if thats easy to implement :) EDIT: turns out I'm running 0.12.3 and didn't realise it 👎🏼 |
All up-to-date now :) |
I appreciate this may be way out of the scope of what you are trying to achieve with Mobius but it occurred to me it would be useful for the sever to have its own API that you could use to query activity on the server. For example, to find out how many users are online, the status of the server, any new posts, messages or files that have been uploaded. This could then be used in other , more modern, enviroments such as home assistant or as an alternative to having to trawl the logs for data.
From an iPhone users perspective, having a widget/shortcut combo that shows me stats of the server when away from home would be a great addition. This is only scratching the surface of what an API could do.
The text was updated successfully, but these errors were encountered: