fredrikbaberg / hassio-addons Goto Github PK
View Code? Open in Web Editor NEWIntended home for hassio addons, if time allows.
Intended home for hassio addons, if time allows.
Prefixing calls to /plugin/* by <ingress_entry> may help with some of the path issues. This can be noticed from the QR code in SpoolManager, where prefixing loads the QR code.
The upgrade fails at psutil
due to gcc
missing, at least on Pi3.
So i got it working but for some reason when i logged out and back in from a update the password or user name is not correct(saved old octoprint instead of HA). Found how to reset a normall install but it seems to be different on a docker.Any help would be great.
ps uninstalled and removed twice still saves config.
Currently the devices are mounter just in RO mode, this avoids me to use a DSLR camera to do lapses with octolapse because octolapse tries to write to the a SCSI device (like /dev/sg0).
Is it possible to enable access to it?
By another hand, this requires gphoto2 to be installed and I do it manually, but it could be awesome to have it preinstalled in the docker image.
What do you think is the best approach to achieve Octolapse + DSRL camera within this addon?
Instead of mjpgstreamer, can you see if aiortc would work/is faster?
Octoprint recently added support for webrtc. See a guide, and the aiortc example.
I use /config
for historic reasons. Due to instability, partly caused by mistakes in my early code, I decided to place configuration files in /config
for the user to have access. As I've learned more about Home-Assistant Addons, and the built-in recovery mode in OctoPrint, there are fewer reasons for this.
I therefore consider removing access to the folder /config
and instead store files in /data
.
/config
folder/config
would not be accessible anymoreIf I go through with this, there will be no upgrade path. It would result in a separate version. The version currently named "OctoPrint" would stay as-is with minor maintenance.
Cura path has an extra "/Cura" in place, which should be removed.
Next update should move to Python3.
OctoPi has a upgrade script, should look at something similar (or "just" backup, replace and restore?)
Should rewrite AppArmor for Klipper, git etc.
Thanks for add on of octoprint in HA!
I have a problem on how to connect the usb webcam, could you explain me all the steps to be able to view it. Especially the code to add in the HA config.yaml
Thanks!
May need to install with --pre
with Debian Bullseye.
When I'm trying to upload some larger (to me..) gcode files, I get
Maximum request body size 16777216 exceeded, actual body size 16777216
Should make sure that Bonjour service is enabled.
Ye would love to have a badass icon on the integrations page.
Do you know if there is a way to use the ADXL345 with klipper without a raspberry pi?
Hi Fredrik and thanks for your amazing Addon that let us use only one rpi for both HA and Octoprint.
I tried to install OctoPrint-Enclosure plugin.
After giving me some build errors for missing gcc and python-dev (if I remember well), I used Portainer Addon in Hassio and Installed them with “apk add”.
The build completed successfully and I can run the plugin but when I press the button that I defined to control a GPIO output its state does not change.
In log I get the error:
“ No access to /dev/mem. Try running as root!”
/dev/mem is not present in the octoprint container console in Portainer but I am not a docker expert to understand visibility of devices in a docker environment.
Thanks
I'm crosslinking this because I'm using this add-on with this plugin: appdevelopmentandsuch/Thingiverse-Downloader#14 and for some reason the debug log is empty and I cannot get it to accept stl files.
It looks like it needs either cura engine or the slic3r engine. Can this be added to the docker ?
For example: https://github.com/kennethjiang/octoprint-docker-with-slicers or: https://github.com/rludwiczak/octoprint-docker-pi
Hi,
trying to use the normal octoprint installation, problem is that there is no permision to use the 3d printer and with a camera would be the same issue.
Connecting to: /dev/ttyUSB0Changing monitoring state from "Offline" to "Error: Connection error, see Terminal tab"Unexpected error while connecting to serial port: /dev/ttyUSB0 SerialException: '[Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'' @ comm.py:_openSerial:2308 (hook default)
printer.cfg not always safely stored, may be due to symlink.
I'm trying to connect Prusa Slicer to Octoprint HA add-on. To do this I need to add the IP of the Rpi that Octoprint is on but when I add my Home assistant IP it can't find it so it looks like Prusa slicer can't connect to this add-on (?)
As I am just new to klipper I wanted to use it but it is not starting in the octoprint gui. I logged into the container and tried to see where it was possibly failing. When following the dockerfile:
cd /data/klipper && \
make clean && make && \
./scripts/flash-linux.sh && \
It errors at make
with:
make: arm-none-eabi-gcc: No such file or directory
make: *** [Makefile:64: out/src/sched.o] Error 127
When setting it myself this is because klipper isn't installed yet. I tried running ./data/klipper/scripts/install-debian.sh
but that doesn't work. And I cannot find a way to add that sched.o
build file. When performing the same steps on my kali linux setup it works fine. Also with this build it works fine: https://github.com/fredrikbaberg/hassio-addons/blob/master/octoprint-klipper/Dockerfile
I installed the 0.3.0-beta-0 on homeassistant 0.110 and get the following, so not able to install any plugins
The pip command could not be found or does not work correctly for this installation of OctoPrint - please consult the log file for details and if necessary configure it manually. No installation and uninstallation of plugin packages is possible while pip is unavailable.
When i try to update to last version:
Can't install ghcr.io/fredrikbaberg/addon-3dprinter-aarch64:2021.11.4: 500 Server Error for http+docker://localhost/v1.41/images/create?tag=2021.11.4&fromImage=ghcr.io%2Ffredrikbaberg%2Faddon-3dprinter-aarch64: Internal Server Error ("manifest unknown")
I uninstalled and tried to install again, but got same error.
Hola!
First and foremost, thank you for developing this beautiful add-on!
Unfortunately, I encountered a major issue with one of the newer versions of it. I tried migrating from the original octoprint add-on to the 3dprinter one, and encountered an error while starting it up:
Traceback (most recent call last):
File "/data/python/octoprint/bin/octoprint", line 8, in <module>
sys.exit(main())
File "/data/python/octoprint/lib/python3.9/site-packages/octoprint/__init__.py", line 959, in main
from octoprint.util.fixes import patch_sarge_async_on_py2
File "/data/python/octoprint/lib/python3.9/site-packages/octoprint/util/__init__.py", line 52, in <module>
from octoprint.util.connectivity import ConnectivityChecker # noqa: F401
File "/data/python/octoprint/lib/python3.9/site-packages/octoprint/util/connectivity.py", line 12, in <module>
from octoprint.util.net import resolve_host, server_reachable
File "/data/python/octoprint/lib/python3.9/site-packages/octoprint/util/net.py", line 14, in <module>
import netifaces
ModuleNotFoundError: No module named 'netifaces'
I tried browsing through /usr/share/hassio/addons/data/774437fd_3dprinter/python/octoprint/lib/python3.9/site-packages/
only to discover literal netifaces package was actually missing. I am not completely sure why that's the case; given that there is an implementation-specific shared library available, no issues should arise. Naturally, I tried symlinking netifaces.so
to it (ln -s netifaces{.cpython-39-arm-linux-gnueabihf,}.so
). Here is the result:
Traceback (most recent call last):
File "/data/python/octoprint/bin/octoprint", line 8, in <module>
/* <same lines> */
import netifaces
ImportError: Error loading shared library ld-linux-armhf.so.3: No such file or directory (needed by /data/python/octoprint/lib/python3.9/site-packages/netifaces.so)
I might attempt to copy over the /lib/ld-linux-armhf.so.3
binary into the container, however I fear I might end up in an endless cycle of copying the files over and over.
I understand that this might not be a supported use case, neither can I confirm this occuring on other such installations.
HI,
plugin is not even starting Log Message:
fd full init mqueue null ptmx pts random shm stderr stdin stdout tty ttyAMA0 ttyS0 ttyUSB0 urandom zero
appears.
I hope you can fix it. Would be really nice.
Thx in advance
I did a quick fix for the reset command to only delete the /data/python folder, implemented in 0.3.1.
Later on I realized it might be possible to export a list of installed pip packages, replace Python folder with a fresh copy, and restore previously installed packages.
At the moment just an idea, there are some details to figure out such as:
As needed for this plugin: https://github.com/OctoPrint/OctoPrint-FirmwareUpdater/blob/devel/doc/marlinbft.md the python bin marlin-binary-protocol
is needed.
When installing it manually with:
pip3 install https://github.com/p3p/pyheatshrink/releases/download/0.3.3/pyheatshrink-pip.zip
and followed by:
pip3 install marlin-binary-protocol
It is missing gcc, which can be installed with:
apk add python3-dev gcc libc-dev
Not sure what is needed for debian
probably: apt-get install python3-dev
Wrong path in script.
Hola! I attempted to install 3D Printer add-on today, and stumbled upon the following issue (possibly introduced in PR #242):
21-11-14 09:04:59 ERROR (SyncWorker_1) [supervisor.docker.interface] Can't install ghcr.io/fredrikbaberg/addon-3dprinter-aarch64:2021.11.4: 500 Server Error for http+docker://localhost/v1.41/images/create?tag=2021.11.4&fromImage=ghcr.io%2Ffredrikbaberg%2Faddon-3dprinter-aarch64: Internal Server Error ("Head "https://ghcr.io/v2/fredrikbaberg/addon-3dprinter-aarch64/manifests/2021.11.4": denied")
Sending GET request to https://ghcr.io/v2/fredrikbaberg/addon-3dprinter-aarch64/manifests/2021.11.4
yields an "UNAUTHORIZED" error (albeit this observation might not be relevant to solving the issue at all).
I suppose the image has not been made public?
If printer is off, or disconnected, the OctoPrint add-on does not start.
Should see what happens if the line for ttyUSB0 is removed from config.json.
how is it possible to import a webcam which is attached via usb into octoprint?
Do i have to configure something in hass.io?
thanks
If the printer is powered off/disconnected when the addon start, then connected/started, the printer is not detected until it is restarted.
I tried everything to get pandas to install in the 3D printer addon but I keep getting the following error:
Original error was: Error loading shared library /tmp/pip-build-env-3zqirbzf/overlay/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-x86_64-linux-musl.so: Operation not permitted
As can be seen in the beginning, numpy is installed.
The dir /tmp/pip-build-env-3zqirbzf/overlay/lib/python3.9/site-packages/numpy/core/
does not exist after seening that error.
Error in installing rpi.gpio. Potential fix in separate branch for dev, to be merged.
Just found this repo in the comments on the new home assistant release page (version 11)
OctoPrint/OctoPrint#4225
Perhaps some useful information?
I recently installed the latest octoprint-dev and I can't get the USB camera to work, can someone help me?
Thanks,
-Ton
OctoPrint uses internal IP address, which causes some issues with autodiscovery.
Not sure if this can be fixed, as it can be set in config.yaml but that would cause issues if the hostname/IP changes.
It may be possible to add support for Klipper if anyone is interested.
Would need much testing, so would not happening soon.
Consider enabling support for multiple cameras.
Should be enough to:
list<string>
If OctoPrint is exposed by port, the webcam will be available without authentication at <OctoPrint instance>/webcam/
.
Consider removing this for security.
I am using the mjpg-streamer addon from this repo to stream my webcam to an open port and then onto the Octoprint addon. The stream works well when the mjpg-streamer is started, but after about 30 mins the stream no longer works. Once the stream is gone, the mjpg-streamer log has this message "NOTICE Oct 13 13:47:28 [258]: Waiting servers (0) is less than MinSpareServers (2). Creating new child." repeatedly until I restart the addon manually. Once I manually restart, the stream is back for ~30 mins again.
Here are my input arguments: input_uvc.so -d camera_device_id -r 1920x1080 -f 30
I see the below errors on the supervisor logs, the addon seems to run fine though.
21-03-25 01:26:59 WARNING (MainThread) [supervisor.store.data] Can't read /data/addons/git/774437fd/octoprint/FS/octoprint/config.yaml: Invalid Add-on config!. Got ordereddict([('accessControl', ordereddict([('autologinAs', 'homeassistant'), ('autologinLocal', True), ('localNetworks', ['172.30.32.2'])])), ('folder', ordereddict([('data', '/data/octoprint/data'), ('generated', '/data/octoprint/generated'), ('logs', '/data/octoprint/logs'), ('plugins', '/data/octoprint/plugins'), ('virtualSd', '/data/octoprint/virtualSd'), ('timelapse_tmp', '/data/octoprint/timelapse/tmp'), ('printerProfiles', '/config/octoprint/printerProfiles'), ('slicingProfiles', '/co...
21-03-25 01:26:59 WARNING (MainThread) [supervisor.store.data] Can't read /data/addons/git/774437fd/octoprint_dev/FS/octoprint/config.yaml: Invalid Add-on config!. Got ordereddict([('accessControl', ordereddict([('autologinAs', 'homeassistant'), ('autologinLocal', True), ('localNetworks', ['172.30.32.2'])])), ('folder', ordereddict([('data', '/data/octoprint/data'), ('generated', '/data/octoprint/generated'), ('logs', '/data/octoprint/logs'), ('plugins', '/data/octoprint/plugins'), ('virtualSd', '/data/octoprint/virtualSd'), ('timelapse_tmp', '/data/octoprint/timelapse/tmp'), ('printerProfiles', '/config/octoprint/printerProfiles'), ('slicingProfiles', '/co...
21-03-25 01:26:59 WARNING (MainThread) [supervisor.store.data] Can't read /data/addons/git/774437fd/octoprint/FS/octoprint/config.yaml: Invalid Add-on config!. Got ordereddict([('accessControl', ordereddict([('autologinAs', 'homeassistant'), ('autologinLocal', True), ('localNetworks', ['172.30.32.2'])])), ('folder', ordereddict([('data', '/data/octoprint/data'), ('generated', '/data/octoprint/generated'), ('logs', '/data/octoprint/logs'), ('plugins', '/data/octoprint/plugins'), ('virtualSd', '/data/octoprint/virtualSd'), ('timelapse_tmp', '/data/octoprint/timelapse/tmp'), ('printerProfiles', '/config/octoprint/printerProfiles'), ('slicingProfiles', '/co...
21-03-25 01:26:59 WARNING (MainThread) [supervisor.store.data] Can't read /data/addons/git/774437fd/octoprint_dev/FS/octoprint/config.yaml: Invalid Add-on config!. Got ordereddict([('accessControl', ordereddict([('autologinAs', 'homeassistant'), ('autologinLocal', True), ('localNetworks', ['172.30.32.2'])])), ('folder', ordereddict([('data', '/data/octoprint/data'), ('generated', '/data/octoprint/generated'), ('logs', '/data/octoprint/logs'), ('plugins', '/data/octoprint/plugins'), ('virtualSd', '/data/octoprint/virtualSd'), ('timelapse_tmp', '/data/octoprint/timelapse/tmp'), ('printerProfiles', '/config/octoprint/printerProfiles'), ('slicingProfiles', '/co...
Camera stream is not visible if accessed through Ingress with SSL enabled.
Probably need to update the HAProxy configuration.
There is a delay of up to one hour between the merge of a pull request with master and the image build completing, making the addon impossible to install or update.
A workflow should be added that:
Would be nice to be able to use Ingress.
As the title says, if I try to install and activate the standard version i get a message which says my platform is unsupported.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.