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: Add a server status topic #55

Open
apbarratt opened this issue May 23, 2023 · 0 comments
Open

Feature Request: Add a server status topic #55

apbarratt opened this issue May 23, 2023 · 0 comments

Comments

@apbarratt
Copy link
Contributor

apbarratt commented May 23, 2023

A topic with details of server success rate would be rather useful for quickly figuring out if a problem is likely to be leaf2mqtt or the Nissan servers.

Here's an example, though I suspect I may not fully understand the workflow of how the request and response system works here so do change as would be more appropriate :)

Where leaf represents the default root topic:

Server

Status

Topic Type Description
leaf/server/requestsToday Double The number of requests sent to Nissan's server today
leaf/server/failuresToday Double The number of requests sent to Nissan's server today that resulted in failure
leaf/server/successRate Float A percentage derived from the above values
leaf/server/lastSuccess String A json representation of the last topic and payload that succeeded
leaf/server/lastSuccessDateTimeUtc Iso8601 UTC The datetime when the last request succeeded
leaf/server/lastFailedRequest String A json representation of the topic and payload that failed
leaf/server/lastFailedDateTimeUtc Iso8601 UTC The datetime when the last request failed
leaf/server/lastRequestWasSuccessful Boolean True if the last request sent to the server succeeded. False otherwise
leaf/server/json String A json representation of all server status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant