Giter VIP home page Giter VIP logo

Comments (9)

hohenfelsjoe avatar hohenfelsjoe commented on July 17, 2024 9

Worked for me. Here is what I did:

mv /home/pi/oprint/lib/python3.7/site-packages/octoprint_webcamtab/static/js/webcamtab.js /home/pi/oprint/lib/python3.7/site-packages/octoprint_webcamtab/static/js/webcamtab.js.orig

curl https://raw.githubusercontent.com/elfco/OctoPrint-WebcamTab/patch-1/octoprint_webcamtab/static/js/webcamtab.js > /home/pi/oprint/lib/python3.7/site-packages/octoprint_webcamtab/static/js/webcamtab.js

chown pi.pi /home/pi/oprint/lib/python3.7/site-packages/octoprint_webcamtab/static/js/webcamtab.js

chmod 644 /home/pi/oprint/lib/python3.7/site-packages/octoprint_webcamtab/static/js/webcamtab.js

from octoprint-webcamtab.

elfco avatar elfco commented on July 17, 2024 7

i have write a quick fix for 1.7, a bit silly but it works ok xD

from octoprint-webcamtab.

lsaranto avatar lsaranto commented on July 17, 2024 2

Same in 1.7.0

from octoprint-webcamtab.

pandel avatar pandel commented on July 17, 2024 2

@hohenfelsjoe Thanks! Works for me, too!

from octoprint-webcamtab.

jbuszkie avatar jbuszkie commented on July 17, 2024

Will this be updated so we don't have to work around it?

from octoprint-webcamtab.

Dephrilibrium avatar Dephrilibrium commented on July 17, 2024

Yeah, can also confirm that elfcos webcam.js works (using hohenfelsjoes guide)
Much thanks @both

PS:
using Octo1.7.0 on python 3.7 on complete clean install (including debian)

from octoprint-webcamtab.

conqueror433 avatar conqueror433 commented on July 17, 2024

Worked for me. Here is what I did:

mv /home/pi/oprint/lib/python3.7/site-packages/octoprint_webcamtab/static/js/webcamtab.js /home/pi/oprint/lib/python3.7/site-packages/octoprint_webcamtab/static/js/webcamtab.js.orig

curl https://raw.githubusercontent.com/elfco/OctoPrint-WebcamTab/patch-1/octoprint_webcamtab/static/js/webcamtab.js > /home/pi/oprint/lib/python3.7/site-packages/octoprint_webcamtab/static/js/webcamtab.js

chown pi.pi /home/pi/oprint/lib/python3.7/site-packages/octoprint_webcamtab/static/js/webcamtab.js

chmod 644 /home/pi/oprint/lib/python3.7/site-packages/octoprint_webcamtab/static/js/webcamtab.js

Sorry I am not very familier with the coding. Are above lines need to be pasted on by one in RPi SSH Putty?
Or I have to manually move something?

from octoprint-webcamtab.

harryfiedify avatar harryfiedify commented on July 17, 2024

@conqueror433 yes, log in to the RPi using SSH (or local terminal) and paste each line separately, that's all

This will replace the webcamtab.js from the plugin with a patched file for the new OctoPrint version. (and set some necessary file permissions.)
If you mess anything up, the old file is renamed to webcamtab.js.orig

from octoprint-webcamtab.

conqueror433 avatar conqueror433 commented on July 17, 2024

@harryfiedify Thanks a Ton..!! It Worked..

from octoprint-webcamtab.

Related Issues (13)

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.