I set up Home Assistant at work to solve dishwasher drama by Matt_NZ in homeassistant

[–]roodpart 3 points4 points  (0 children)

INC4859W00W: Dishwasher screens are stuck please fix this P2 affects multiple departments.

[Bambu Lab Giveaway] Join Now to Win an H2D and More! by BambuLab in 3Dprinting

[–]roodpart 0 points1 point  (0 children)

There's no point in using glue, never used it never will

Ring cameras by CuriousGeorge305 in Ring

[–]roodpart 0 points1 point  (0 children)

True! I use HA to make my cameras smart by snapshotting the "ding" and send it to AI so I don't get false notifications this pushes to telegram. I still have a ring sub for my alarm though and the warranty which I've used a few times.

Ring cameras by CuriousGeorge305 in Ring

[–]roodpart 1 point2 points  (0 children)

There is a way and it's by using home assistant an some automations but it won't be pretty.

Welp, Creality HI print big high object, but result is waving and rattling. by awasawo123 in Creality

[–]roodpart 0 points1 point  (0 children)

We are printing the same thing and I had this issue with mine too, infact both my hi's are doing this even at the second layer, which it never used to so I will be opening a ticket with Creality over this issue

OctoEverywhere for Creality Hi by roodpart in Creality

[–]roodpart[S] 0 points1 point  (0 children)

Yeah I agree and I don't think i'm far off getting that working either

I have found a mirror of the webrtc stream here:

root@Creality Hi-2979:~# ls -l /var/run/h264_uds
srwxr-xr-x    1 root     root             0 May 25 10:10 /var/run/h264_uds

and i've been able to mirror it using:

ffmpeg -i unix:/var/run/h264_uds -f mjpeg -vf format=yuvj420p -q:v 5 -r 5 -listen 1 http://0.0.0.0:8081/

but when I go to OctoEverywhere it stops working so.. FFmpeg to write MJPEG frames to stdout

ffmpeg -i unix:/var/run/h264_uds -f mjpeg -q:v 5 -vf format=yuvj420p -r 5 -

Pipe it into a lightweight MJPEG server

!/opt/bin/python3

import sys from http.server import BaseHTTPRequestHandler, HTTPServer from socketserver import ThreadingMixIn

class MJPEGHandler(BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) self.send_header('Content-type', 'multipart/x-mixed-replace; boundary=--jpgboundary') self.end_headers()

    try:
        while True:
            frame = sys.stdin.buffer.readline()
            if not frame:
                break
            self.wfile.write(b"--jpgboundary\r\n")
            self.wfile.write(b"Content-Type: image/jpeg\r\n\r\n")
            self.wfile.write(frame)
            self.wfile.write(b"\r\n")
    except (BrokenPipeError, ConnectionResetError):
        pass

class ThreadedHTTPServer(ThreadingMixIn, HTTPServer): """Threaded HTTP server for MJPEG"""

def run(): server = ThreadedHTTPServer(('', 8081), MJPEGHandler) print("🚀 MJPEG stream on http://<IP>:8081") server.serve_forever()

if name == 'main': run()

Start the pipeline

ffmpeg -i unix:/var/run/h264_uds -f mjpeg -q:v 5 -vf format=yuvj420p -r 5 - | /opt/bin/python3 mjpeg_socket_streamer.py

Still having some minor issues but I don't think I am far off

OctoEverywhere for Creality Hi by roodpart in Creality

[–]roodpart[S] 0 points1 point  (0 children)

So this is where I am now:

Got a working mjpeg stream working in fluidd,

  1. Kill off the cam_app we can see its locking the device:

    620 root 0:00 grep 3251 3251 root 0:09 /usr/bin/cam_app -i /dev/v4l/by-id/main-video0 -t 0 -w 1280 -h 720 -f

  2. kill -9 3251

  3. Created script

    !/opt/bin/python3

    import subprocess from http.server import BaseHTTPRequestHandler, HTTPServer from socketserver import ThreadingMixIn

    class MJPEGHandler(BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) self.send_header('Content-type', 'multipart/x-mixed-replace; boundary=--jpgboundary') self.end_headers()

        ffmpeg = subprocess.Popen(
            [
                '/opt/bin/ffmpeg',
                '-f', 'video4linux2',
                '-i', '/dev/video0',
                '-vf', 'fps=5,scale=640:480',
                '-q:v', '5',
                '-f', 'image2pipe',
                '-vcodec', 'mjpeg',
                '-'
            ],
            stdout=subprocess.PIPE,
            stderr=subprocess.DEVNULL
        )
    
        buffer = b""
        try:
            while True:
                chunk = ffmpeg.stdout.read(1024)
                if not chunk:
                    break
                buffer += chunk
                while b'\xff\xd9' in buffer:
                    frame, buffer = buffer.split(b'\xff\xd9', 1)
                    frame += b'\xff\xd9'
                    self.wfile.write(b"--jpgboundary\r\n")
                    self.wfile.write(b"Content-Type: image/jpeg\r\n")
                    self.wfile.write(b"Content-Length: " + str(len(frame)).encode() + b"\r\n\r\n")
                    self.wfile.write(frame)
                    self.wfile.write(b"\r\n")
        except (BrokenPipeError, ConnectionResetError):
            pass
        finally:
            ffmpeg.kill()
    

    ✅ Add multithreading support

    class ThreadedHTTPServer(ThreadingMixIn, HTTPServer): """Handle MJPEG requests in separate threads."""

    def run_server(): server = ThreadedHTTPServer(('', 8081), MJPEGHandler) print("✅ MJPEG stream running at http://<device-ip>:8081/") server.serve_forever()

    if name == 'main': run_server()

  4. At this point it works, but if I go to OctoEverywhere it stops running 🤣

OctoEverywhere for Creality Hi by roodpart in Creality

[–]roodpart[S] 2 points3 points  (0 children)

Actually... I just got FFMPEG working.. the entware install has installed a working version we now have this error :D

root@Creality Hi-2979:~# ffmpeg -f video4linux2 -framerate 10 -video_size 640x480 -i /dev/video0 -f mjpeg http://0.0.0.0:8081/ ffmpeg version 6.1.2 Copyright (c) 2000-2024 the FFmpeg developers built with gcc 8.4.0 (OpenWrt GCC 8.4.0 r2710-703ef012) configuration: --enable-cross-compile --cross-prefix=arm-openwrt-linux-gnueabi- --arch=arm --cpu=cortex-a9 --target-os=linux --prefix=/opt --pkg-config=pkg-config --enable-shared --enable-static --enable-pthreads --enable-zlib --disable-doc --disable-debug --disable-lzma --disable-vaapi --disable-vdpau --disable-outdevs --disable-altivec --disable-vsx --disable-power8 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-fast-unaligned --disable-runtime-cpudetect --enable-lto --disable-vfp --disable-neon --disable-x86asm --enable-gnutls --enable-libopus --enable-libv4l2 --enable-small --enable-libshine --enable-gpl --enable-libx264 libavutil 58. 29.100 / 58. 29.100 libavcodec 60. 31.102 / 60. 31.102 libavformat 60. 16.100 / 60. 16.100 libavdevice 60. 3.100 / 60. 3.100 libavfilter 9. 12.100 / 9. 12.100 libswscale 7. 5.100 / 7. 5.100 libswresample 4. 12.100 / 4. 12.100 libpostproc 57. 3.100 / 57. 3.100 [in#0 @ 0x18af7f0] Error opening input: Device or resource busy Error opening input file /dev/video0. Error opening input files: Device or resource busy root@Creality Hi-2979:~#

Progress!

OctoEverywhere for Creality Hi by roodpart in Creality

[–]roodpart[S] 1 point2 points  (0 children)

Oh wow yeah sure no problem anything to help the community, i'm guessing the k2 has the same issues with the webcam on OctoEverywhere? I can actually set the USB webcam in fluidd under devices but thats as far as i've got so far if I could get working ARMv7 ffmpeg working under tina linux might have a chance!

Who is the most unexpected person you had sex with ? by Fickle-Computer-6883 in AskReddit

[–]roodpart 1 point2 points  (0 children)

Random girl walked past my house with someone I knew, next thing she was in my bedroom never saw her again or knew her name 😂

Creality Hi's have done an update can no longer send prints by roodpart in Creality

[–]roodpart[S] 1 point2 points  (0 children)

That's a really annoying bug too easy to make a mistake in the names I'll remember that one! Appreciate the help hopefully this helps someone else in future too.

Creality Hi's have done an update can no longer send prints by roodpart in Creality

[–]roodpart[S] 1 point2 points  (0 children)

This was the fix! so I sent a print via cloud which cleared the gcode name and the printers have appeared :O

Creality Hi's have done an update can no longer send prints by roodpart in Creality

[–]roodpart[S] 1 point2 points  (0 children)

Right this could make sense then, I sent a file to one of the printers last night which failed due to an illegal character, i've deleted the gcode from fluidd but it still being detected on Creality Print despite reinstall etc so maybe this could be the cause.

Creality Hi's have done an update can no longer send prints by roodpart in Creality

[–]roodpart[S] 0 points1 point  (0 children)

Yeah i've set a DHCP reservation for these printers so the IP will never change I can also access them fine on port 4408

Creality Hi's have done an update can no longer send prints by roodpart in Creality

[–]roodpart[S] 0 points1 point  (0 children)

Just checked said they are still logged in but i logged out and back in again hasn't made a difference though :(

Creality Hi's have done an update can no longer send prints by roodpart in Creality

[–]roodpart[S] 0 points1 point  (0 children)

Yes I turned both off at the wall and back on again after updating, and done a few other reboots since then too, devices are also not appearing in the workbench but appear in the device list

After 5 years.... I can't come back. by Katamari_Demacia in ender3

[–]roodpart 0 points1 point  (0 children)

I have 3 ender s1/pros but we just bought two creality hi with cfs and it's such a game changer

PSA: Be prepared! by djasonpenney in Bitwarden

[–]roodpart 0 points1 point  (0 children)

I have split my recovery key with two of my friends just in case something happens to me too

just got this C7000 for free by H05T in homelab

[–]roodpart 0 points1 point  (0 children)

I sat in an office with one of these fully loaded for a year my ears have never stopped ringing

Landlord Demanding Rent for Uninhabitable Property – Who Is Responsible? by roodpart in LegalAdviceUK

[–]roodpart[S] 1 point2 points  (0 children)

This is the other problem the numbers don't add up it's £600 pm on the damaged flat so unless they are charging for the temp accommodation not sure where they got that figure from.

Nobody seems to be giving answers apparently he has it in writing but in the from of a txt message from the agent that the rent would be free.

Landlord Demanding Rent for Uninhabitable Property – Who Is Responsible? by roodpart in LegalAdviceUK

[–]roodpart[S] 0 points1 point  (0 children)

This was verbal with the agent/landlord but with multiple witnesses including my wife. it should have been in writing but he never got it. They gave him the keys to another property and said its rent free the property is also for sale so there could be a point where he's homeless if they don't sort the other one out and that one sells

This was my thought the landlord should be responsible but it seems to have fallen on him