The bits of software that synchronize and manage members between various systems.
This repository has been archived on 2024-02-23. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Steve Goldsmith 5478518d51 Corrected outdated class propsal form link (self hosted form - not using google docs anymore)
Updated language for tours to remove covid-19 language
Updated formatting for ongoing and full classes to add <hr> for consistency with other sections.
Updated Ongoing event header to make consistent (change classes to events)
2023-05-11 09:09:25 -04:00
memberPlumbing Corrected outdated class propsal form link (self hosted form - not using google docs anymore) 2023-05-11 09:09:25 -04:00
systemd Add systemd units for ucsAccounts 2020-07-18 23:52:49 -04:00
.gitignore Rewrite common.py into a more generic Config class 2020-04-26 21:11:13 -04:00
config.example.yaml ucsAccounts: Rewrite using udm_rest_client, allowing remote operation 2020-07-18 23:52:49 -04:00
poetry.lock upcomingEvents: Use pyclip to copy the result to clipboard 2023-05-09 21:24:04 -04:00
pyproject.toml upcomingEvents: Use pyclip to copy the result to clipboard 2023-05-09 21:24:04 -04:00
README.md Slightly simplify non-poetry invocation in README 2023-01-06 15:37:56 -05:00
renovate.json Add renovate.json 2023-03-02 05:18:20 +00:00

Claremont MakerSpace Member Plumbing

This repo contains a set of scripts to sync data around for the Claremont MakerSpace. They primarily revolve around pulling member data from MembershipWorks and pushing it out to various systems at the Space.

Setup

This project uses Poetry for dependency management. Typical usage is first running poetry install to create a virtualenv and install dependencies, then running poetry run <script> to start a specific script.

Config

Many of the scripts use data from a config.yaml in the current working directory when they are run. There is an example config in config.example.yaml which has been stripped of authentication information.

Scripts

The primary entry points have scripts entries (tool.poetry.scripts) in pyproject.toml. They assume that they are being run from a module, so must be run with poetry run <script> or python -m memberPlumbing.<script>.

doorUpdater

Retrieves member information from MembershipWorks and pushes it out to the HID Edge Evo SOLO controllers that do access control at the Space. Configuration lives in config.yaml.

ucsAccounts

Retrieves member information from MembershipWorks and pushes it out to UCS, which we use as a domain controller for the Windows computers at the Space.

sqlExport

Retrieves account and transaction information from MembershipWorks, and pushes it to a MariaDB database for use in other projects. Schemas are defined with peewee in memberPlumbing/mw_models.py.

upcomingEvents

Retrieves upcoming events from MembershipWorks and formats them for a WordPress post.

hidEvents

Retrieves events from the HID Evo Solo door controllers, and pushes them to a SQL database.

Systemd

There are systemd units in the systemd folder, which can be used to run the various scripts regularly.