Repository: OctoPrint

Hi Fredrik, today I had a shock when the Octoprint had the “Deprecated” suffix. I used it a lot and now I installed the 3Dprinter which is very similar for my current utilization. There is just one thing that is driving me crazy… I don’t find the way to create a folder for my print files. With Octoprint addon the folder was under /config/octoprint/uploads, while now, even if I create it, I don’t find the path. Can you help me ? Thanks a lot for your fantastic job. Greetings from Italy

Hi Alberto, sorry for the late reply.
I renamed the previous addons to avoid confusion for new installs as there were multiple versions. I did not expect the name to change for existing installs, sorry for the scare.
One of the changes done to the 3DPrinter addon is to use a separate folder for addon files instead of the config folder. This is mostly for safety, the addon cannot alter files of Home Assistant and vice versa. Is there a specific use case where you need access to the folder? Otherwise you should be able to set it to /data/config/octoprint/uploads which should be the default folder.

Dear Fredrik, thanks for you answer.
I 'm currently not able to manage file in the upload directory. It’s very strange because I have both addons installed in Home assistant (the old “octoprint” and the new “3D Printer”). In the first one, main tab, I can select the prints folder, I can also navigate, create new subfolder and so on. As you said, the files are stored in the path /config/octoprint/uploads/“folder created”.
if I switch to the newst addon 3D Printer, same configuration, and I create a new folder, then I can’t see in which path it really is, because under 'config/octoprint/uploads/…nothing happens.
Maybe the new folder is created somewhere but I don’t find it. This issue doesn’t allow me to save my gcode files directly from the slicing software to the network for printing.

Hello Fredrik,
I was very happy to see that you integrated OctoPrint as an add-on in Home Assistant.
Many many thanks. With this I can run my Vyper and my house control in a Raspi. Great work.
Unfortunately I have a problem. I have Hass.io (OS 7.1) and 3DPrinter (2021.11.7) installed.
I connected a RaspiCam to the CSI on the Raspi.
This also worked great with my OctoPi image.

If I now make the same settings in the 3DPrinter, I have problems.
If I leave “input_uvc.so -n” in the mjpeg -i configuration, I get the following error in the log:
[20:57:45] INFO: Starting mjpg-streamer…
MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: -1
i: Format…: JPEG
i: TV-Norm…: DEFAULT
ERROR opening V4L interface: No such file or directory
i: init_VideoIn failed

With the OctoPi image, mjpeg -i says “input_raspicam.so -y”.
If I specify this in the 3DPrinter, I get the following in the log:
[21:02:14] INFO: Starting mjpg-streamer…
MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
ERROR: could not find input plugin
Perhaps you want to adjust the search path with:
# export LD_LIBRARY_PATH=/path/to/plugin/folder
dlopen: Error loading shared library input_raspicam.so: No such file or directory
2022-01-12 21:02:14,957 - octoprint.server.preemptive_cache - INFO - … done in 9.20s
2022-01-12 21:02:14,958 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {‘base_url’: ‘http://192.168.102.57:5000/’, ‘path’: ‘/’, ‘query_string’: ‘l10n=de’}
2022-01-12 21:02:15,239 - octoprint.server.preemptive_cache - INFO - … done in 0.28s
[21:02:15] INFO: Starting mjpg-streamer…
MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
ERROR: could not find input plugin
Perhaps you want to adjust the search path with:
# export LD_LIBRARY_PATH=/path/to/plugin/folder
dlopen: Error loading shared library input_raspicam.so: No such file or directory

I’m still a novice as a “Raspianer”. I hope you can help me.
Many thanks in advance.
Sorry, since I don’t know English, I tried the google translator.

Hello.
input_raspicam.so is not available in the addon, but it should work with input_uvc.so.

Have you enabled the camera in Home Assistant OS? This is required at least for RaspiCam. There was a post with some instructions previously, see Repository: OctoPrint - #151 by L4RGER. The details are in the GitHub gist linked there. Note that you should only need to do the last two steps, no need to download alternative firmware.

In summary:

  • Make a backup of your install.
  • Modify boot/config.txt so that it contains:
    gpu_mem=128
    gpu_mem_256=64
    gpu_mem_512=128
    gpu_mem_1024=128
    
    and
    start_x=1
    
  • Reboot.

Hello Fredrik,
According to Hass.io, the “problem” with the camera is solved from version 7.1, so I don’t do the steps as described here Repository: OctoPrint - #151 by L4RGER had to. I made the settings you specified in the config.txt. It works perfectly. I updated OctoPi to version 1.7.3, works too. Thank you again

Any news about Ingress webcam issue?

@martinklaus No news, unfortunately. Not sure I will be able to figure it out.

As general information, my 3DPrinter has been offline for the past 6 months due to other priorities. I’m still keeping track of issues in the GitHub repository, and am looking to release a new version, but it will probably take another month or two.

There are two main issues I want to address:

  • Connection drops, noticed when using the OctoPrint integration in HA.
  • Issues installing certain plugins, often due to dependencies not available on Alpine.

I’ve been waiting on OctoPrint 1.8.0 to be released first, and noticed that happened a day ago.

6 months without 3d printing sounds bad. If you stop the support, then there is no other solution for running octoprint on the same system. I already have an Intel NUC with hassio. Losing the read only system or run a second pi, what has additional power consumption, is not what I want. Switching to Debian sounds not bad, if it’s easier to maintain. I think size is not a problem on such a big system like OctoPrint.

I don’t plan to stop support completely, it’s just that I’ve had to change priorities for a while. There’s currently a bird living in the room where I have my printer.
It looks like I will be able to work a bit on updating the addon in about two weeks.

I have installed the 3Dprinter addon…but how can I use the Octoprint integration, what’s correct host ip?

I think it should be mentioned in the documentation, otherwise I’ll have to add it. You should be able to use the hostname of the addon, found under Addons - 3DPrinter, it’s probably 774437fd-3dprinter.

1 Like

I’ve now continued the work on creating an updated version, and looking to make some changes that will hopefully help with both maintenance and adding more features. Now I’m a bit curious how you are using the addon.

If using this addon, what features are you using?
  • OctoPrint
  • Webcam
  • Klipper

0 voters

I would like connect to Octoprint from Cura slicer…but I am not able to find out which data I can use for:

  • Instance name
  • IP/Host name ( 774437fd-3dprinter. doesn’t work in this case)
  • Portnumber
  • Path/
  • Instance name: Anything you want
  • IP/Host name: IP or hostname of Home Assistant instance
  • Port number: The same port number you exposed in addon settings, e.g. 5000.
  • Path: Default should be OK.

Note that this requires you to expose your OctoPrint instance to the network, it doesn’t work through Ingress. User credentials will be required, but you will probably not have HTTPS. On my install I also have a reverse proxy to add encryption.

You really need to write a guide how this is working. I still have no idea how to get it to work. We can meet also in Discord, and I’m writing the guide.

motioneye is supporting stream over ingress

This has been discussed in this thread, in the GitHub repository issues, and there are general instructions in the documentation tab of the addon under the section “Slicer”. The main difference between this addon and connecting a traditional OctoPrint install to Cura is that you have to expose a port in the addon settings, as I don’t want that to be enabled by default.

I have no experience with motioneye. Do you mean motioneye-project/motioneye: A web frontend for the motion daemon. (github.com) or the motionEye addon for Home Assistant?

If it is the addon, is it possible to access the stream from another device, without exposing any port? Or that you can access the stream from within Home Assistant?

Hi there,
First of all, thank you for this great plugin.

I have this printer.cfg file from a previous octoprint setup and i’m trying to figure out how i can import this into the 3Dprinter plugin from start. I feel i’ve searched everywhere and looked into the docker file for clues, but i just cannot wrap my head around it.

For now i’ve just manually copied the content of the printer.cfg file into the octoprint when the plugin is running.

Could someone explain me where i have to put the file, so it gets copied into the docker image when starting up the plugin?
I have “File editor” installed in my homeassistant which is running on a raspberry pi, so if i go to the root directory - where should i go from there? :smiley:

Thanks