Jump to content

Camera API returns 404 not found


Yates

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

      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 18 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...