Skip to content

Support for loading boards from specific file or URL#46

Open
georgik wants to merge 2 commits into
wokwi:mainfrom
georgik:feature/custom-board-path
Open

Support for loading boards from specific file or URL#46
georgik wants to merge 2 commits into
wokwi:mainfrom
georgik:feature/custom-board-path

Conversation

@georgik

@georgik georgik commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Added two CLI options:

  --boards-url <url>          Custom URL for board definitions bundle
  --boards-file <path>        Local path to board definitions bundle.json

This way the developer of boards can point wokwi-cli to the custom clone of wokwi-boards repo or load it from custom URL.

Example of usage:

wokwi-cli . --boards-file ~/repos/wokwi-boards/boards/boards.json --timeout 10000

What's your opinion about such options?

@georgik

georgik commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

@georgik

georgik commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

The original approach has problem, that the boards.json is used only for linting and server does not read it.

One approach would be to merge in runtime board json and diagram jsem before upload to the server.

@georgik

georgik commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

I've added new code which basically merges board.json for the specific board with diagram.json. This way we can simulate even custom board config.

@georgik

georgik commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

During the process of developing new boards, which are parts of new Raylib testing:

I hit several issues. Basically I need to add boards: https://github.com/georgik/wokwi-boards/pull/1/changes

I've solved the diagram.json and boards.json mergin, for the server, but screenshot capability is now working, because it requires for the server to know the board layout.

So fot the time being only known boards are generated into the gallery, while the rest is running whole boot up test https://github.com/georgik/esp-idf-component-raylib/blob/main/.github/workflows/build-and-test-examples.yml#L79

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