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
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.
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.
I have not found the solution yet… just getting back into the project i was working on…
i have found out some usefull info…
below code finds the ipadress by using the devices mac address…
**(Replace DeviceMACAddress with your devices mac address)
arp -a | find “DeviceMACAddress”
192.168.X.XXX DeviceMACAddress dynamic
then using cmd to ping the address to verify its connected
**(Replacing 192.168.X.XXX with shown device ip)
if responce is
" Reply from 192.168.X.XXX: bytes=XX time=Xms TTL=XX "
your device is active
" Ping request could not find host DeviceMACAddress. Please check the name and try again. "
then you would have to scan through 254 pages per each number until you stop scanning though.
Example i want to search from 192.168.1.1 to 192.168.2.254 thats about 508 web pages to scan through to find one that connects to http://192.168.X.XXX/osc/info/ .)
Im sure with some work in making a cmd script i could find these values and make it return to a text file a response with the address,mac address, Status
There’s a way to set the IP address of the THETA V/Z1 so that when it goes into client-mode, it goes to a known IP address.
First, coonnect to the camera in AP mode. Then send this:
"ssid": config.ssid, // change to string for your ssid
"security": "WPA/WPA2 PSK",
"password": config.password, // set string to the password of your router
After that, reboot the camera and the client-mode IP address will be saved. Now, you can go back to that IP address from your Electron app.
According to the documentation for request, it supports Digest authentication, but I have not been able to get it to work yet.
Digest authentication is supported, but it only works with sendImmediately set to false ; otherwise request will send basic authentication on the initial request, which will probably cause the request to fail.
Application in Electron which you can use to control the Theta, paste the url for a YouTube stream and my application starts a new stream with OBS. But the problems already start by choosing the right API.
I am going to use Windows, this pc is connected to the internet with ethernet and activates a hotspot where the Theta can connect to in client mode.
The live stream to OBS will be going over a USB cable but when I connect the Theta to a pc the wifi gets disabled (I read this already in your post here). Is there a workaround for this?
No, you can’t send WiFi API commands to the THETA when it is streaming through the USB cable. You can send USB API commands to control the stream.
I’m still testing on a Theta V but I will be using the Theta Z1 for the final project. I will have the Z1 in a few days and I don’t know yet if the it also disables the wifi on USB connection.
I do not think you can use the Wi-Fi API while the THETA Z1 is streaming over the USB cable. You can use the USB API with the USB cable and the stream will work.
You can stream over Wi-Fi. One of the easier solutions is to use the RICOH THETA LiveView, however that will not generate the FPS you need for streaming to YouTube. This Wi-Fi plug-in can stream to YouTube.
It sounds like your application would benefit from the USB API.
Is it possible to have client mode always enabled on the Theta V or Z1?
You can leave the THETA in client mode 24/7 and it will stay up if you disable sleep and shutdown. You can do this with the API.
Can I use the USB for the stream in OBS and the Web API for commands simultaneously?
Alternatively how can I use the full USB API with Electron?
Use existing library for PTP on the desktop. For Linux, it is libptp
Also, do I need to be a real professional to make this work? Its my first Electron app and I’m still in secondary school.
Get it working from a shell script first and then do the GUI with Electron later. This developer was in high school too. His application didn’t stream.
The primary difficulties you will encounter:
there’s no example using the USB API with Electron, but you should be able to find some from the command line, then you just need to practice using sub-process (I think called child process in Electron) . With this technique, you should be able to use an command line example that someone else built and then adapt it for your specific application
There are more examples on this forum of using the USB API with Linux (on Raspberry Pi), but I believe there are people using Windows. Please help out the community and document your work with Windows and the USB API.
Translate this from Japanese to your language.
I think I can take care of the OBS part (OBS settings are in JSON format) but I was wondering if you could share your thoughts and experience with me about the Theta.