Replies: 2 comments
-
Thanks @poke0 for the nice guide :) Just to add, a much easier way of editing config, is to work with your config file directly. Or, using the UI JSON editor, you can also switch to code mode, and quickly copy/pasta stuff in. |
Beta Was this translation helpful? Give feedback.
-
I considered Code-Server but it looked too much like a project that I had to figure out before I could play with the widget. I did try directly editing in code view but I failed miserably. The only challenge with the Edit Config view was understanding the required relationships between the Autos, Arrays, Objects, and Strings. Once I got that to work once it was easy sailing, but getting that to work the first time was very frustrating. Thanks to the pointer to YAML <--> JSON, if I knew about that previously it probably would have changed my approach. :) |
Beta Was this translation helpful? Give feedback.
-
I struggled with adding the SABnzbd last night but finally figured it out and thought I would document my process in case you wanted to share it with the community. I'm sure you developer types have easier ways to manage your configs but us mere mortals have to do it the hard way (I'm not complaining, I'm actually really grateful I was able to do this at all). I hope you find this contribution helpful.
-David
Instructions for using Edit Config for adding Widgets
Go to Config -> Update Configuration -> Edit Config
Expand the section you want to add the widget(s) to ("Testing Widgets" in this case); if you want to use a new section add that via the GUI first
Click on the Edit button for the section’s name and select Insert -> Array; You will see 2 new rows were added: “field” in a box with “[0]” next to it and “(empty array)”
Type “widgets” into the newly created field
Click on the Edit button for the newly created “empty object” and select Append -> Object; You will see 1 new row added with "(empty array)".
Click on the Edit button for the newly created “empty object” and select Append -> Auto; See new row with field box and value box.
Enter “type” into the field box and enter the name of the widget into the value box.
Click on the Edit button for the “type” row and select either Append -> Object (for value fields required by the widget) or Append -> Auto (for boolean fields required by the widget)
Don't forget to hit the Save Changes button and then the Save to Disk button (or whatever save mechanism you prefer) so you don't lose your work.
You can add additional widgets by repeating steps 5-8.
You can add an additional widget block by repeating steps 3-8.
You can drag the widget and items (buttons) around into water order you want.
You can drag the name row above the widget row for neatness
Beta Was this translation helpful? Give feedback.
All reactions