hisptoot / bambusource2raw Goto Github PK
View Code? Open in Web Editor NEWGet raw webcam stream of BambuLab X1/P1P 3D printer
License: GNU Affero General Public License v3.0
Get raw webcam stream of BambuLab X1/P1P 3D printer
License: GNU Affero General Public License v3.0
This is exactly the project i've been looking for but i'm struggling to get setup.
In portainer I try to build the image using the dockerfile but get this message. Any ideas?
Step 5/13 : WORKDIR /bambu-bin
---> Using cache
---> c83892d060a7
Step 6/13 : COPY bambusource2raw /bambu-bin/bambusource2raw
COPY failed: file not found in build context or excluded by .dockerignore: stat bambusource2raw: file does not exist
file ~/.config/BambuStudio/BambuNetworkEngine.conf
: data
previously it was basic json
Get dev id and access code of the machine
./bambusource2raw list_dev -u <account_name> -p -r <region: us cn>
I'm using my email address - maybe it needs something else?
Output is:
by hisptoot 2022.12.26
user_name: REDACTED
passwd specified by user
region: us
getting token by login
getting user_id by token
curl_easy_perform() failed: Failed writing received data to disk/application
failed get_user_id
{"tfaKey":""}
Thanks for this project! I was able to get it running on Gentoo Linux.
Could you maybe enhance it so that it recovers automatically after the P1P was powered down for a while and was started again?
At the moment, I have to do it manually by pressing CTRL-C and starting it again.
I have everything working properly with 2 X1Cs and now I'm trying to get this working on my P1P with firmware version 01.02.02.00. I'm following all directions from the README but unfortunately bambusource2raw
is returning errors when trying to connect to the printer.
wait for 5 seconds
starting bambusource2raw
ffmpeg version 5.1.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
by hisptoot 2022.12.26
p1p ip: <x.x.x.x>
access code specified by user
getting user info by BambuNetworkEngine.conf
region: eu user_id: <xxxxxxxxxx> dev_id: <xxxxxxxxxxxxxx>
Starting Session
[1] [BambuTunnelLocal::open] host=<x.x.x.x> port=6000
[1] [BambuTunnelTutk::read] [-104]
[1] [BambuTunnel::read_sample] error [-104]
[1] [BambuTunnel::read_sample] error [1]
[1] [BambuTunnel::read_sample] error [1]
[1] [BambuTunnel::read_sample] error [1]
[1] [BambuTunnel::read_sample] error [1]
[1] [BambuTunnel::read_sample] error [1]
I have no idea what to do with this error. I just unpacked this P1P and updated the firmware to the latest version, so I can't tell whether this does work with an earlier firmware.
is there a plan to update the code that would support the new mode?
https://github.com/bambulab/BambuStudio/releases/tag/v01.07.00.53
Liveview in LAN only mode (X1) https://github.com/bambulab/BambuStudio/issues/1372 We have received multiple requests from our customers in regard to having liveview available in LAN only mode. The latest firmware for X1 series combined with the latest version of Bambu Studio introduces support for accessing the video from the printer locally, without requiring an internet connection. Please note that when the printer is set in LAN only mode, you will not have access to the liveview stream from Bambu Handy. Please update the printer firmware to V01.06 as well.
Trying to generate the cfg and I get this error, any idea?
root@5151c851e8b2:/bambu-bin# ./bambusource2raw gen_cfg -u [email protected] -p xxxxx-r eu -d xxxxx
by hisptoot 2022.12.26
user_name: xxxxx
passwd specified by user
region: eu
dev_id: xxxxx
getting token by login
getting user_id by token
user_id: xxxxx
region: eu user_id: xxxxx dev_id: xxxxx
munmap_chunk(): invalid pointer
Aborted (core dumped)
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.