The client mode user name and password is with digest authentication.
I have not tried the library below:
I think the request library below does not implement digest auth correctly.
May Not Work
You Need a Library That Handles DigestAuth
var postData = {
// post data here
}
var postReq = new digestAuthRequest('POST', url, 'username', 'password');
postReq.request(function(data) {
// success callback
// data probably a success message
},function(errorCode) {
// error callback
// tell user request failed
}, postData);
ill keep working on this after im done my current project.
To use the current code to make a simple interface that takes video or pictures and back them up to a harddrive when there done, possibly try to do long video recording then transfer and loop.
i have a car show i go to id like to record since i foundout you can inport 360 video into a 3d render program i have.
.
A little improvement code: (to update on to my previous CMD notepad edit)
Using the “application on GitHub” Features:
and say i want the url from the “storageUri” everytime i use the same request and get the above result above.
well i can get that and extract only the url.
as of now ive made it so all you have todo is select the name of the element you want, and if the element result requres (Quotation marks, comma) before or after the info you want to require.
*the picture displays it getting the “fingerprint” element 1st result
also the code on the page isnt displayed the best, but i was more focused on getting the equation to work as i wanted then make it look good for myself lol
Congratulations on your progress. This will be useful to people in the future as there is no easy way for people to set camera parameters from a desktop/laptop.
Also, the mobile app doesn’t allow configuration of the entire API.
Whenever you’re ready, feel free to put your code up on GitHub. Maybe other people will join into the development and submit pull requests.
Really cool that you’re putting in the effort. I’m pretty interested in trying this out myself. I’ve wanted to be able to grab bigger chunks of API accessible info all at once. This seems like a cool answer to that.
No pressure. But if you do get it up in a GitHub repo, I’d love to be able to try it out myself.
also formatting text so when set at the correct width, the code has a smaller layout of the same data.
The next step i would like to figure out would be how to send a data responce update from the device, or if that is even possible, instead of a timed refresh update.
Ex. After the recording is converted to a file, theta sends a update of some sorts to post that the updates the users incoming request of active info.
just a little update, i think i found something that will work nicely.
it decodes “Response” and gets each field.
ADDED automatic loop to get current update,
also doesn’t require the"Response" field as show in the image example,
and now updates every second with added format:
uptime:1205
Device On Time: 0D 0H 20M 5S
possibly make a simple interface?..
endless possibility’s?
I am interested in this as well. My objective is to get the livestream preview from the camera in to electron and then view it in an Occulus headset using either Google VR or A-Frame. I think A-Frame and electron work together, but I am not sure.
There is a gethub for this forum, but I have not posted one for what I am working on yet.
I’m currently just trying to setup a order of getting the info that possible to get from the theta to a easyer to use format.