How to use the brewery builder

My “Editor” button is dead
Nothing happens when i hit it
any Ideas?

If you create a new builder widget, and use the editor from there, does that work?

If you open the developer tab (ctrl+shift+i) before clicking the button, does that log errors?

Guess it does (im not a dev)

[object Error]: {description: “,0 could not be parsed as a coordinate”, message: “,0 could not be parsed as a coordinate”, stack: “Error: ,0 could not be parsed as a coordinate at Coordinates (https://192.168.0.21/js/app.d37a523d.js:1:176164) at overlaps.get (https://192.168.0.21/js/app.d37a523d.js:1:415265) at get (https://192.168.0.21/js/chunk-vendors.8f651fff.js:30:35597) at evaluate (https://192.168.0.21/js/chunk-vendors.8f651fff.js:30:36683) at computedGetter (https://192.168.0.21/js/chunk-vendors.8f651fff.js:30:38763) at Te (https://192.168.0.21/js/app.d37a523d.js:1:381368) at t.prototype._render (https://192.168.0.21/js/chunk-vendors.8f651fff.js:30:27649) at r (https://192.168.0.21/js/chunk-vendors.8f651fff.js:30:32236) at get (https://192.168.0.21/js/chunk-vendors.8f651fff.js:30:35597) at run (https://192.168.0.21/js/chunk-vendors.8f651fff.js:30:36395)”}

Looks like it managed to corrupt the layout. Could you please enter the following URL in your browser, and save the results to file?

https://PI_ADDRESS/datastore/brewblox-ui-store/_all_docs?include_docs=true

Replace PI_ADDRESS with the actual IP address of your Pi.

Here you go
brewblox_datastore.txt (10.6 KB)

The problem seems to be caused by a builder layout only containing a handful of kettles, all with invalid X/Y positions.

Do you know when and how the kettles were created? Did you do it, or did a bug add them?

The simplest solution for now is to remove the offending layout. I’ll make an issue to validate and handle corrupted layouts in the UI.

On your Pi, run the following command in your brewblox directory to remove the layout:

brewblox-ctl http delete https://localhost/datastore/brewblox-ui-store/layouts__2386ff68-109f-b64f-5639-d08b42cdb259?rev=8-3ef092ff9fe8b8c676a69506857b871e

I probably created the kettles when i was playing arond

OK, that worked for a while
Deleting the old kettles worked find and for a few moments the Editor worked
As soon as i added the kettle, it broke again

Am i doing something wrong?

I think I found the problem. It seems to be a variant of an annoying bug we fixed a while ago.

Are you opening the editor while the page is scrolled? When finding the grid square you clicked, it incorrectly takes the page scroll offset into account. Placing the widget at the top of the page, and opening the editor without scrolling the page should be a workaround until we release a fix on tuesday.

To make your editor accessible, feel free to post the datastore again, and I’ll dig up the one that should be removed.

1 Like

Yes that is probably the case, page was most likely scrolled
brewblox_datastore_part2.txt (1.4 KB)

brewblox-ctl http delete https://localhost/datastore/brewblox-ui-store/layouts__4645f100-d9f3-8f8a-7bfc-1af4dc8d2286?rev=2-5d451687aca6298af85b24a5ef75fc89
1 Like

Worked, Editor is working again
I will try later to add a kettle without scrolling the page
I let you know how it goes

Thanks for amazing support :slight_smile:

Im sorry, but its the same story again
Editor works, I open it and click on the kettle-icon, nothing happends
When i close the editor it wont open again (broken)

Should i reinstall or do something else?

As it’s a software bug, reinstalling won’t help. I’ll slap together a quick script to remove bad layouts.

Until we fix it, maybe avoid kettles.

clear_datastore.py (822 Bytes)

Run this script on your Pi, and it will remove bugged layouts. I’ll try to reproduce the error after the weekend.

For that matter: what OS and browser are you using?

Edit: to run the script: copy it to your py, and run it using python3 clear_datastore.py

1 Like

You beat me to that question

Im running brewblox on a Raspberry pi (Raspbian Buster Lite)
On my PC i run Win10 and MS Edge and Chrome

If you need more info dont hesitate to ask

Thanks for the Script

Here is some input for you
I ran your script and restarted the process with creating the brewery using Chrome
And voilá

I mange to create a few kettles, closing and open the editor again
But when i close the editor and returns to my layout, its blanc

So i guess we can say Error 1 is a MS Edge problem
As for Error2 i dont have a clue, could it be user related? :stuck_out_tongue:

Click on the cogwheel button to select the layouts shown by this widget.
A builder widget can have a slide show of multiple layouts, to support things like hose swapping.

I’ll add some official warning to Edge, because it’s pretty much not supported (Edge has terrible support for SVG graphics. All parts and flows in the builder are SVG)

1 Like

Sorry to say, its not that easy

I have named my brewery layout to “Full Brewery Layout” and it sees to be available
But the dropdown list is empty!

It will appear in the dropdown list if you drag it from “available” to “in this widget”.

1 Like