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

log entries to the membership system #5

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

conorriches
Copy link
Member

@conorriches conorriches commented Dec 26, 2021

✨TLDR✨

Make door boop be online

Problem

Currently, anyone wanting to see who has been into the space has to go via one of two people to SSH into the space, and request the logs. This is not practicable for just seeing how busy the space is. Doorbot and Hackscreen are no more. Extra systems need maintaining and become unreliable when not maintained.

Solution

The membership system has a place for activity to be logged (https://members.hacman.org.uk/activity) - this would be useful for general enquiries, to gauge how busy the space is, and see who is in.

Instead of adding another system that may or may not remain up, we can keep things together by adding very basic access reporting from FRED to the membership system.

The "device" for this change has been set up already:
https://members.hacman.org.uk/devices

There's also an addition of a heartbeat on the update script which will show at a glance in the membership system if there's an issue with the refresh.

If merged:

  • the config values need adding to the real config file
  • MEMBERSYSTEMKEY needs adding to config.sh for the regresh script
  • then ansible can be run to implement the changes

Notes

In the interests of simplicity and not introducing bugs, there's no queuing if the internet is down or requests fail. Thefore some entry logs may be missed, however as the online activity logs are provided as a useful service and are not intended to be the canonical source of truth this doesn't matter.

For abuse of the space and board matters etc, the comprehensive logs can continue to be retrieved as they are presently.

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

Successfully merging this pull request may close these issues.

1 participant