Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Option to "remove" devices #143

Open
markushuber opened this issue Oct 16, 2018 · 2 comments
Open

Option to "remove" devices #143

markushuber opened this issue Oct 16, 2018 · 2 comments

Comments

@markushuber
Copy link
Contributor

Add a user interface option to remove ("forget") specific devices.

@markushuber
Copy link
Contributor Author

@tobiasdam any idea how to implement this? what are current defaults to "forget" offline devices?

@tobiasdam
Copy link
Contributor

Depends on what you are actually trying to achieve. Do you want to hide the devices or delete the device data (settings)?
Currently devices are hidden after they have not been seen for a week

DeviceEntry.objects.filter(last_seen__gte=datetime.now() - timedelta(weeks=1)).exclude(ip=gateway), key=lambda x: get_device_name(x).upper()

To hide a device, setting last_seen to an old date should suffice

@markushuber markushuber removed the v2 label Jan 5, 2021
@markushuber markushuber added this to the upribox v3.0 milestone Jan 7, 2021
@markushuber markushuber added v3 and removed help wanted labels Jan 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants