Skip to content

Use Node-RED projects #628

Merged
sonnyp merged 15 commits intomasterfrom
nrp2
Jun 2, 2025
Merged

Use Node-RED projects #628
sonnyp merged 15 commits intomasterfrom
nrp2

Conversation

@sonnyp
Copy link
Collaborator

@sonnyp sonnyp commented Jun 2, 2025

Changes

  • Move adafruithat and planktoscopehat from user dirs to user projects
  • Rename /software/node-red-dashboard/* to /node-red/*

The next step is to import the new dashboard as a new project which will look like this:

  • Node-RED projects
    • adafruithat (deprecated)
    • planktoscopehat (deprecated)
    • dashboard

This allows:

node-red code deduplication between adafruithat and planktoscopehat can happen on the new dashboard project

import the new dashboard as a project that is not used by default

simplify pahs

@sonnyp sonnyp mentioned this pull request Jun 2, 2025
@sonnyp sonnyp merged commit 8ccad71 into master Jun 2, 2025
4 checks passed
@sonnyp sonnyp deleted the nrp2 branch June 2, 2025 17:40
sonnyp added a commit that referenced this pull request Jun 3, 2025
Follow up from #628

Adds [dashboard](https://github.com/PlanktoScope/dashboard/) as a
Node-RED project using a git submodule.

Why git submodule and not import `dashboard` into this repository?
Because it seems Node-RED is having issues with `git` when dealing with
higher up repos. Might fix it later but for now this will do.

Clicking on a changed file such as


![image](https://github.com/user-attachments/assets/f32875f5-4dee-4df8-b402-58c51ce62e82)

results in


![image](https://github.com/user-attachments/assets/8a975e2c-0cf3-4abe-8fdd-37a843554115)

for `planktoscopehat` and `adafruithat` projects it's fine as we're used
to using `git` cli anyway but for the new dashboard we want all the
bells and whistles of Node-RED

---

The `enable-developer-mode` script was removed as we don't clear the
`.git` folder anymore. It only saved ~100mb and clearing it is causing
headaches with submodules.
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