Skip to content

Comments

Integration COCCON Spain#263

Closed
dostuffthatmatters wants to merge 66 commits intomainfrom
dev-coccon-spain
Closed

Integration COCCON Spain#263
dostuffthatmatters wants to merge 66 commits intomainfrom
dev-coccon-spain

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.

@netlify
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

@netlify
Copy link

netlify bot commented Oct 17, 2025

Deploy Preview for pyra-4-documentation canceled.

Name Link
🔨 Latest commit e207fe5
🔍 Latest deploy log https://app.netlify.com/projects/pyra-4-documentation/deploys/6930330a4cb7c80008186951

Rename "COCCON Spain Enclosure" to "AEMET Enclosure" in pyra core
Rename "COCCON Spain Enclosure" to "AEMET Enclosure" in UI
add pyright dependency and config
Simplify import paths for enclosure codes
Merge TUM and aemet enclosure logger code
@netlify
Copy link

netlify bot commented Feb 14, 2026

Deploy Preview for pyra-4-documentation ready!

Name Link
🔨 Latest commit 05bf545
🔍 Latest deploy log https://app.netlify.com/projects/pyra-4-documentation/deploys/6995bfd93e65a00008f068ee
😎 Deploy Preview https://deploy-preview-263--pyra-4-documentation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Add actual configuration schema
Add new config parameters to config UI
Add actual enclosure interface
Add correct state to UI parser
Render current state in overview page
Add variable "opened_due_to_elevated_internal_humidity"
Update default AEMET enclosure config
Refine state rendering on overview page
Update browerlist for UI build
Refine datalogger reading logic
Improve the performance of the logs tab
Make state updates more error-resistant
Add headless enclosure scripts and add docstrings to all headless scripts
Implement TASMATO power plug
Rename "toggle_em27_power" to "use_em27_power_plug"
Read EM27 power plug throughput
Render power supply variables in UI
Update default em27 power plug config
Add power plug to integration tests
Simplify enclosure state read interface -> combine read from datalogger and power plug
@dostuffthatmatters dostuffthatmatters force-pushed the dev-coccon-spain branch 2 times, most recently from f707547 to 323d5b6 Compare February 16, 2026 17:47
@dostuffthatmatters
Copy link
Member Author

Closing because we are performing this merge in PR ...

@dostuffthatmatters dostuffthatmatters deleted the dev-coccon-spain branch February 18, 2026 14:08
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