Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
500Foods authored Jul 9, 2024
1 parent c8daec7 commit 7d35a74
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions elements/001-hydrogen/hydrogen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ This is a C program that is essentially a JSON queue manager. Most of what this

Each queue has its own queue manager that determines what happens when something arrives in its queue. Logging, for example, will look at the queued element and either print it to the console, write it out to a log file, or add it to the database. This is handled separately from whatever generated the log event so *that* process doesn't have to wait for any of these actions to complete before continuing on.

## Release Notes
### 2024-Jul-08
Updated code to implement an HTTP service that is used to handle incoming print requests, typically from OrcaSlicer. So, in Orca, you can configure the printer connection by specifying a URL and port. It then assumes a bunch of API endpoints, like /api/version or /api/files/upload or something like that. This is what the "test" and "upload" and "upload and print" functions use to communicate with Klipper. In the case of hydrogen, it responds to the requests to get Orca to think we're Octoprint-compatible, enough so that it will send along a print job. At the moment, it does the following.
- Accepts the print job and stores it in a /tmp location with a unique (GUID) filename
- Generates JSON showing the filename mapping, and other data extracted using the beryllium code
- This includes things like layer times, estimated filament, etc.
- This JSON is then added to a PrintQueue, ready to be handled in whatever way we like
- A separate /print/queue endpoint will show all the PrintQueue JSON objects as an array
- This also includes the preview image that is added to the G-code by Orca.

0 comments on commit 7d35a74

Please sign in to comment.