#Where is the "Printer Name" for the Mainsail UI stored?
1 messages · Page 1 of 1 (latest)
Ahoi @wheat aurora!
It looks like you did not provide all the necessary information we need to help you.
Please upload your logfiles and a detailed description of your problem.
For further information see: https://docs.mainsail.xyz/faq/getting-help/discord#provide-information
Note: We only accept .log and .txt files as log files.
This is an automated message
this is stored in the moonraker database. so there is no "writeable file" to change this
Thanks for your response.
So changing this automated by a script is not really possible right?
My only idea then is to replace the moonraker database.
Do you think it might work to replace the
~/printer_data/database/moonraker-sql.db
?
i think moonraker use a sqlite database... is moonraker running, when you execute your script? if yes, you can just send the http request to let moonraker write it in the database.
It depends.. I can use a workflow, where moonraker is running, yes.
how would this look like? something like this?
curl -X POST http://<ip>/printer/config -d '{"printer_name": "MyPrinter"}' -H "Content-Type: application/json"
Thanks mate!
namespace: mainsail
key: general.printername
awesome!
Thanks a lot!