fluidd-core / FluiddPI

FluiddPi - A Pi image with Klipper, Moonraker, Fluidd and Web Camera support pre-installed.
https://docs.fluidd.xyz
GNU General Public License v3.0
299 stars 58 forks source link

[Question] Data storage location for different hosts #22

Closed AndreasReitberger closed 2 years ago

AndreasReitberger commented 2 years ago

I'm trying to build a client application to work with Fluidd. I'm mostly done with the project, however I cannot figure out where FluiddPi stores the different hosts information?

image

MainsailOS is doing this in the database, however this seems not to be the case for FluiddPi. Can you give me a hint? I need to get the information via WebSocket or REST-API.

Thank you!

matmen commented 2 years ago

Hey, what data are you trying to access specifically?

AndreasReitberger commented 2 years ago

Hi, basically just the host addresses (with port) and the name of the printers.

matmen commented 2 years ago

The host addresses aren't available through an API (yet); they are stored in the browser's local storage (localStorage.appInstances)

matmen commented 2 years ago

I'll go ahead and close this. Feel free to re-open if you need any additional information 🙂