Select Page
Kit Log #038: Script DONE! Power pack and super brights are LIVE!

Kit Log #038: Script DONE! Power pack and super brights are LIVE!

Today’s kit log is pretty exciting. We finally get to see the results of all the work for two of the kits: power pack and super bright lights. Check out the instruction pages! super brights, power pack and press the big green go button

Today we wrote and finished the python script that takes in the steps and parts csv, then outputs a series of html pages. The development process was fine, didn’t get caught on anything real big. Had some off by one bugs, but it wasn’t anything difficult.

There was one mistake we encountered. That is, the images that are on google sheets are input into a cell as a formula. For example, it is =IMAGE(url). When exporting to csv, google sheets does not include this. Unfortunately since we have re-arranged some of the order of the images and deleted some, there isn’t really a way to script or automate copying the image name into another cell. So this has to be done by hand for every step. Shucks. It’s not the end of the world, it is fixable, just a bit of a delay. It was funny when finding this bug, because it was “wonder if this array actually contains anything? let’s print it” and it displayed a whole bunch of nothing in a list.

Either way, we were able to fix two of the instructions today, and prepare the pages on wordpress, and copy and paste the output html from the python script into the pages.

The next kit log will continue on this progress, as there is the operator interface and wheel kit instructions to complete.