Skip to content

Opening file via the Web /api does not open/load the GCode editor #2903

@Sojourneer

Description

@Sojourneer

Version

2.1.17

Hardware / Firmware

GRBL 1.1

What happened

I have written software to use a PS4 gamepad+Bridge+OLED as a multiple UGS instance WiFi pendant using the /api/v1 pendant Web interface. I'm working on the file opening feature (/api/v1/files/uploadAndOpen and /api/v1/files/openWorkspaceFile). For both these interfaces, the file seems to be loaded based on the UI title and status line, and by looking at the /tmp folder.

However, for files loaded through those API calls, the editor (?) is not shown, so I can't be sure that the content is properly loaded. I usually have comments in the GCode I would like to refer to as I am doing the job setup.
** Update ** After upgrading to 2.1.17, the visualizer reflects the content, but still there is no gcode editor/display.

I saw a log message about failure to call open from the web service to NetBeans AWT, but I had so much trouble with the mvn build process that I gave up on looking into it further.

How to reproduce

Upload a file via /api/v1/files/uploadAndOpen. Note that the file is uploaded by looking at the status lin and the visualizer. The file can be seen in /tmp, and can also be successfully loaded from there via the UI

Operating System

Ubuntu 24.04.2, RPI OS v12

Anything else

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions