Personal Thoughts

Hi Randy,
What were you looking to change exactly? Layout, UI, API??
Layout files are in src/pug
CSS is multiple, but the main “skin” is in src/stylus

Actually, I just want to change the content of control-view.js but can’t find it anywhere. I guess it’s in a library somewhere, not directly in the filesystem. I don’t want to remake the entire system.

There is a file named control-view.pug under src/pug/…
There is also a control-view.js under src/js/…
Did you look at those yet?

Is this in the file directory of the rpi somewhere or in github? The github location does not help as I just want to change my setup, which means I need to find the file on the rpi. I have not been able to find it using the “find” command or any other utility.

The HTML (JS/Pug) is compiled down (webpack) into a single html during the build. It is not an open file structure on the RPi. So what you’re attempting isn’t as simple as you think it is :wink: - I know right?! I can post later on what you’d need to edit/adjust this directly (busy currently).

I figured it was something like that. Just learning the ropes on how this stuff is actually deployed. Different for everything. I dove into Octoprint this way also but that is more straightforward. Thanks for any information you have. I may not do it this way but it makes me more curious.

Okay, I figured this out. It’s in the file:

/usr/local/lib/python3.5/dist-packages/bbctrl-1.0.5-py3.5.egg/bbctrl/http/index.html line 16683 of 20552

Mashed together with all the other routines in the “webpack”. The routine in question is “probe_xyz()” and is the direct copy of the code from github. I can always hack this temporarily to work with my system.

Thanks for the hints!

Wow, that’s one huge index.html file.

Yep, that’s what you get when you compile about 20 JS files together, lol.

Also, I think you were looking to mod the prob_xyz() for your custom probe block correct? The fix has been merged into the v1.0.7 update (visible in the v1.0.7-dev branch on github). So luckily you won’t have to make that modification after that update. :slight_smile:

Yep, just took a look and it looks like they did a good job on the fix. In the meantime I’ve been able to mod mine to work without a special routine. Now I may have to look at how to make samba seamless and trigger the processing on a change…:slight_smile:

Save your time and wait for 1.0.7 to drop and I think you’ll be happy :smiley:

2 Likes

Looking forward to it. What’s the timeframe?

most likely by the end of the week.

2 Likes

I just got my machine the other day so haven’t had much time to put this to the true test but I am going the other way. I have a NAS that I save my files to. This is what I did with my Shapeoko running CNCjs. I was able to mount the share and get to it from the 1F UI. I am going to work on it a bit more and I will publish my instructions and maybe an instructional YouTube video.

That should work - just mount the NAS on the Pi, and the files would be available from the controller. I’ve been using dropbox between my in-home PC and the in-shop laptop to share both drawings and gcode. That way both systems are working on their local drives, and file changes sync in the background. I then load files from the shop laptop connected to http://onfinity.local/ when I want to run things.

Curious to see what 1.0.7 brings - dropping gcode directly on the the 1F sounds interesting…

The problem is the browse interface on the controller does not allow a directory specification so you’re kind of in the same boat needing to load the file from the interface to trigger the postprocessing in either case. In other words, it still requires the “load” operation, not just a selection from the drop-down. Still, not too bad…

Hi Tom,
Just wondering if you have set this up and how it is working out for you? Thanks

1.0.7 “watches” the upload folder and will automatically recognize any file that is placed there.

2 Likes

Hi David,
I’ve been trying to follow this stuff about getting access over the network to files on a NAS. but haven’t tried yet. Are you referring still to the Samba setup? Thanks

Yes, you need to be pretty comfortable with Linux administration, but it can be done.

1 Like

Doesn’t seem too scary :nerd_face: Or can a misspelling crash it?