Skip to content

Conversation

dostuffthatmatters
Copy link
Member

@dostuffthatmatters dostuffthatmatters commented Jul 24, 2025

Things to do for Pyra Core:

  1. Define the config variables you need in packages/core/types/enclosures/coccon_spain_enclosure.py
    Everything that should be configurable without a software update.

  2. Define the state variables you need in packages/core/types/enclosures/coccon_spain_enclosure.py
    Everything you need in the operational logic inside Pyra (humidity, enclosure position, etc.) or that you want to display in the UI.

  3. Define the functions how to read from/write to the datalogger in packages/core/interfaces/enclosures/coccon_spain_enclosure_interface.py
    probably simply HTTP requests

  4. Define the operational logic inside packages/core/threads/enclosures/coccon_spain_enclosure_thread.py
    powering up/down the spectrometer, opening/closing the cover, etc.

  5. Define the datalogger variables you want to archive in CSV files in packages/core/utils/coccon_spain_enclosure_logger.py

Things to do for the UI:

  1. Add the config schema in the UI code packages/ui/src/utils/zustand-utils/config-zustand.ts and packages/ui/src/custom-types.ts
  2. Add the state schema in the UI code packages/ui/src/utils/zustand-utils/core-state-zustand.ts
  3. Add the panels you want to display on the first page of the UI here packages/ui/src/components/overview/system-state.tsx

You can look at the TUM Enclosure equivalents of these files to get an inspiration of what could be done. Feel free to ping me here if you have any questions.

Copy link

netlify bot commented Jul 24, 2025

Deploy Preview for pyra-4-documentation canceled.

Name Link
🔨 Latest commit e6f3243
🔍 Latest deploy log https://app.netlify.com/projects/pyra-4-documentation/deploys/688246f95be44a0008d57850

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