Coder Social home page Coder Social logo

hassio-addons's People

Contributors

bruvv avatar dependabot[bot] avatar fredrikbaberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hassio-addons's Issues

Path not correctly set in Ingress

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.

Password recovery or reset

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.

Octoprint-Octolapse require writes in /dev/sg* devices

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?

OctoPrint: stop using /config for configuration?

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.

  • Advantages
    • Security
      • Access to OctoPrint configuration limited to this addon
      • This addon will not be able to touch files in your /config folder
    • Easy to clean up, just uninstall the addon
    • Simplified backups
  • Disadvantages:
    • User will not be able to access configuration folder, any configuration needs to be done through UI
    • No clear path to upgrade
      • Not possible to migrate data, as /config would not be accessible anymore
      • Restore of backup for previous (pre-change) would not work

If 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.

Problem with the webcam

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!

GPIO - “ No access to /dev/mem. Try running as root!”

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

Octoprint Standard

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)

Connect Prusa Slicer

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 (?)

[OctoPrint Next Dev] Klipper isn't starting

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

No pip in 0.3.0-beta-0

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.

Unable to update/reinstall 3D Printer anymore

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.

OctoPrint + DietPi + Supervised install = missing netifaces library

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.

Octoprint Developer

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

Improve reset command

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:

  • Error handling on missing packages
  • Check if plugins are automatically available (not the case with current solution)

Add Marlin Binary Protocol Package

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

GHCR.io requires authentication (PR #242)

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?

load webcam

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

[3D printer] Unable to install pandas

I tried everything to get pandas to install in the 3D printer addon but I keep getting the following error:
afbeelding
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.

Octprint Develper

I recently installed the latest octoprint-dev and I can't get the USB camera to work, can someone help me?

Thanks,
-Ton

Support for Klipper?

It may be possible to add support for Klipper if anyone is interested.
Would need much testing, so would not happening soon.

Multi-camera support

Consider enabling support for multiple cameras.

Should be enough to:

  • Change config to enable multiple inputs, e.g. list<string>
  • Change script to use config.

mjpg-streamer not staying alive

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

Can't read /data/addons/git/774437fd/octoprint/FS/octoprint/config.yaml: Invalid Add-on config!

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...

Issues with SSL termination?

Camera stream is not visible if accessed through Ingress with SSL enabled.

Probably need to update the HAProxy configuration.

Image not built before merge is performed

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:

  • Is triggered manually
  • Builds and publishes the image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.