SoftFever / OrcaSlicer

G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)
https://discord.gg/P4VE9UY9gJ
GNU Affero General Public License v3.0
6.44k stars 750 forks source link

Device view for FlashForge printers #6106

Open JMcrafter26 opened 1 month ago

JMcrafter26 commented 1 month ago

Is there an existing issue for this feature request?

Is your feature request related to a problem?

No

Which printers will be beneficial to this feature?

Others (FlashForge printers)

Describe the solution you'd like

A printer view page that shows information about the printer (FlashForge Printers). Currently, the page shows a “page access denied” error, and that is not optimal. I found an API for FlashForge printers and tried it and it works.

Here is the API I am talking about: https://github.com/01F0/flashforge-finder-api

I would use the API (or the code logic) to get the printer details, such as print status. To get the camera (e.g., on the AD 5M Pro) I would use the printer this URL scheme: http://PRINTER_IP:8080/?action=stream

The good thing about the API is, that it works with many FlashForge printers such as Adventurer 5M, Adventurer 4, Finder and maybe more.

Describe alternatives you've considered

No response

Additional context

Example API response:

{
  "Firmware": "v2.7.2",
  "Name": "Adventurer 5M Pro",
  "SN": "XXXXXXX",
  "Tool Count": "1",
  "Type": "Flashforge Adventurer 5M Pro",
  "X": "220 Y: 220 Z: 220"
}
{
  "BytesPrinted": 11,
  "BytesTotal": 100,
  "PercentageCompleted": 11
}

?action=stream page: image

timnolte commented 1 month ago

I wonder if the Printer View in Orca actually has it's own interface setup? From what I've seen it seems like it's just a feed from the web interface of a printer. Perhaps it is using an API for other printers. Ideally, Orca-Forge would just contribute back to OrcaSlicer their work to integrate the printer interface view.

JMcrafter26 commented 1 month ago

Ideally, Orca-Forge would just contribute back to OrcaSlicer their work to integrate the printer interface view.

This would be the best solution, but I don’t think they will do it since they added a login in order to use the device view and they also completely rebranded the slicer

JMcrafter26 commented 1 month ago

I just made a simple demo on how you could use the api with html and python. Here is the repo I made: https://github.com/JMcrafter26/flashforge-printer-preview

Please note that this is just a demo and not nearly done

snintendog commented 2 weeks ago

Would love to Access the Onboard models as well like FlashPrint has as well.