11-16-2023 12:59 AM
Dear Forum Members,
I am currently working on interfacing LabVIEW with an IP camera's web interface. I've successfully filled in the login screen fields using the approach discussed in this forum post: http://forums.ni.com/t5/LabVIEW/How-to-fill-out-and-submit-a-web-form-using-LabVIEW/td-p/289527.
However, I'm facing challenges in programmatically clicking the buttons, particularly the one for taking a snapshot on the main screen. I have attached screenshots of the login page and the main screen, along with the relevant HTML and minified JavaScript files.
Any guidance on how to proceed with this and successfully trigger button clicks would be greatly appreciated.
https://iqratechnology.com/academy/javascript-training/
Thank you,
[IQRA Technology]
11-16-2023 01:09 AM
Dear LabVIEW Community,
I am currently working on integrating a local hardware device into LabVIEW that provides status data through a web interface. By accessing the device's URL in a browser and opening the console, I can retrieve status variables using the command "response [x]" in the JavaScript console.
I am looking for a way to efficiently load the website and open the JavaScript console within LabVIEW to request and monitor these variables programmatically. As there is no documentation on alternative communication methods with the hardware, any insights or guidance on achieving this integration in LabVIEW would be greatly appreciated.
https://iqratechnology.com/academy/javascript-training/js-variables/
Thank you,
[IQRA Technology]
11-16-2023 07:45 AM
You can look into headless browser / browser API tools: https://en.wikipedia.org/wiki/Headless_browser - or try some scripting with some input scripting tool like https://en.wikipedia.org/wiki/AutoHotkey
In general, I would recommend switching over from the JavaScript Console to observe the "Network" tab while working on the device. A more direct solution might come up.
11-16-2023 04:51 PM
I have used javascript to simulate a mousclick, however that was in a completly different context.
11-17-2023 02:04 PM
oh, and you haven't attached anything
11-17-2023 02:20 PM
@iqratech wrote:
rowser and opening the console, I can retrieve status variables using the command "response [x]" in the JavaScript console.
I am looking for a way to efficiently load the website and open the JavaScript console within LabVIEW to request and monitor these variables programmatically.
oh... I have overlooked that sentence
how do you spawn the browser inside labview? are you using that deprectaed activex method?
better use the dot net browser https://forums.ni.com/t5/LabVIEW/OpenStreetMap-GPS-track/m-p/4216487#M1222608