Jump to content

Recommended Posts

Posted · Camera API returns 404 not found

All of the camera API URI's return 404 not found. Having digest authorization does not matter, I always get a 404.

 

I have other requests working, I use the same headers and digest authentication.

 

The printer is running the stable version 5.2.11.20190503

  • Link to post
    Share on other sites

    • 2 weeks later...
    Posted · Camera API returns 404 not found

    I don't know why it is not working, probably a bug, but as far as I know the API just returns the URL to the video stream. So you can just use the URL instead of calling the API before: http://<IPADDRESS>:8080/?action=stream

  • Link to post
    Share on other sites

    Posted · Camera API returns 404 not found

    @Smithy the request to retrieve the stream is actually the only camera API route I don't want to use 😛

    Guess I'll have to wait until they release a fix, or capture the stream and create a workaround.

  • Link to post
    Share on other sites

    Posted · Camera API returns 404 not found

    perhaps this find is of any help?

     

     

    11 hours ago, Yates said:

    the request to retrieve the stream is actually the only camera API route I don't want to use

     

    out of curiosity: what are the other possibilities to read the stream?

     

  • Link to post
    Share on other sites

    Posted · Camera API returns 404 not found

    @tinkergnome there's a route for the camera object, one to retrieve the stream URL, one for redirection to the stream URL with a specific index and one to get the snapshot with a specific index. I don't know what the index is supposed to be or do, I was mainly interested in the camera object.

  • Link to post
    Share on other sites

    Posted · Camera API returns 404 not found

    I think the index is just a random number to defeat any caching.

  • Link to post
    Share on other sites

    Posted · Camera API returns 404 not found

    The API for retrieving the camera's URL is confirmed as a bug in v5.2.11, it was broken since v5.1 and will be fixed in the next release.

     

    The index number you specify in the API call is to specify the camera number you want to access. Not officially supported yet, but you can connect up to 10 camera's over usb and then this index number will select each camera. Not officially supported because never tested, and there is no guarantee that the number connecting to the camera's will remain the same.

    • Like 1
    Link to post
    Share on other sites

    Posted · Camera API returns 404 not found

    @CarloK,  is there an ETA for the next release?

  • Link to post
    Share on other sites

    Posted · Camera API returns 404 not found

    No, there is no release date planned yet. The camera API problem is fixed but not considered large enough to validate a new release.

     

    The workaround is to use the hard coded camera paths like:

    http://x.x.x.x:8080/?action=stream

    and for a picture

    http://x.x.x.x:8080/?action=snapshot

     

    If you ever add more camera's to the the printer, then the second camera will be at port 8081, the 3rd at port 8082, etc.

     

    There are no plans to change these paths, so hard coding them in your application shouldn't be a reason to wait for a new firmware release.

     

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • Help Us Improve Cura – Join the Ultimaker Research Program
        🚀 Help Shape the Future of Cura and Digital Factory – Join Our Power User Research Program!
        We’re looking for active users of Cura and Digital Factory — across professional and educational use cases — to help us improve the next generation of our tools.
        Our Power User Research Program kicks off with a quick 15-minute interview to learn about your setup and workflows. If selected, you’ll be invited into a small group of users who get early access to features and help us shape the future of 3D printing software.

        🧪 What to Expect:
        A short 15-minute kickoff interview to help us get to know you If selected, bi-monthly research sessions (15–30 minutes) where we’ll test features, review workflows, or gather feedback Occasional invites to try out early prototypes or vote on upcoming improvements
        🎁 What You’ll Get:
         
        Selected participants receive a free 1-year Studio or Classroom license Early access to new features and tools A direct voice in what we build next
        👉 Interested? Please fill out this quick form
        Your feedback helps us make Cura Cloud more powerful, more intuitive, and more aligned with how you actually print and manage your workflow.
        Thanks for being part of the community,

        — The Ultimaker Software Team
        • 0 replies
      • Cura 5.10 stable released!
        The full stable release of Cura 5.10 has arrived, and it brings support for the new Ultimaker S8, as well as new materials and profiles for previously supported UltiMaker printers. Additionally, you can now control your models in Cura using a 3D SpaceMouse and more!
          • Like
        • 18 replies
    ×
    ×
    • Create New...