flatline
flatline copied to clipboard
FR: Last seen - total
Hi
It would be nice if the app records last seen time (moment of diconnect when it is offline) and total amount of connection time since the last successfull connection.
Would a simple log page cover that? e.g.
[2019/01/22 - 14:03] device found: {hostname: xxx, ip: xxx, mac: xxx, custom-name: xxx}
[2019/01/22 - 15:03] device offline: {hostname: xxx, ip: xxx, mac: xxx, custom-name: xxx}
Well if I am going to use logs then I do not need Flatline :) ? A UI option would be nice for sure.
@gerroon I mean I could add a log page that would just list the actions done by the scraper (found, offline, new,..), since a per entry log would overcomplicate things, while doing essentially the same.
@gerroon would a log page as described above satisfy the idea? if not, you'd need to describe it more to me, to understand it better
I was more thinking that another columns next the the current ones with some numbers to indicate total connection time and last seen time.
@gerroon it currently already has an offline counter as can be seen here, so I suppose that covers the first part?
would the remaining idea then just add another column "last seen" that gets updated each time the node is online (once it drops offline that would be the "last seen" timestamp) or update a "offline since" column once the device drops offline? which of those two matches best?
not sure about it. How does offline counter tell me anything about last seen and total amount of connection time? This is just a feature request, you are not entitled to implement it, especially if it is going to be alot of time for you :)
@gerroon no worries, I'll put everything into tags and tracked todo and if I find the time I'll just go through them one by one. I'm just trying to understand the suggestion to better note it down.
Reading through the main post again, it seems you'd want an offline tracker essentially, that tells you how long a device was (or is) offline for, correct? an example being:
- when a device is online, set its timestamp / "last seen" to "now"
- once it drops offline / disconnects, that column will be the "last seen"
- the gui / web interface would then calculate the difference and show how long ago "last seen" is, e.g. "last seen 4 hours 2 minutes ago"
is that more like it? sorry that I am having a hard time understanding the idea
Yeah you articulated it well.
awesome, I know what the feature is about then and can safely mark it for the todo.