This is going to apply for a few different things, one being an image viewer, another to view webcam history.
I'm trying to figure out what the best way to go about this in hstouch is going to be.
I've got a script right now that parses a webcam page for the latest images. They get labeled something like this:
20081125_235014.jpg
20081125_232631.jpg
20081125_173805.jpg
20081125_171935.jpg
This list is going to change anytime the camera application gets another image, then it gets added to the top of this list.
I add a URL to the front of those image filenames and HSTouch can bring them up, the problem is that the list changes, and I don't want to store 50 virtual devices holding the filenames for me.
I've thought about making some scripting commands that would just update a staticly named image on the homeseer web directory. Say WebCam.jpg and thumb1.jpg thumb2.jpg etc...
Using that technique I would be creating 2 screens, one with thumbs, and one with the full image. The script in the background would do the rest. The thumbs could be updated based on page, and the selected image could be updated based on the script command of selecting one of the thumbs locations times the page number.
This works up until I want to have two clients connected, and both happen to be looking at different images from the webcam history.
I thought about trying to populate a listbox and be able to select the image thus updating the image path? Don't know if that's possible, and I don't know if I can dynamically populate a listbox or dropdown list in HSTouch.
Can anyone else think of some ways to do this?
I'm trying to figure out what the best way to go about this in hstouch is going to be.
I've got a script right now that parses a webcam page for the latest images. They get labeled something like this:
20081125_235014.jpg
20081125_232631.jpg
20081125_173805.jpg
20081125_171935.jpg
This list is going to change anytime the camera application gets another image, then it gets added to the top of this list.
I add a URL to the front of those image filenames and HSTouch can bring them up, the problem is that the list changes, and I don't want to store 50 virtual devices holding the filenames for me.
I've thought about making some scripting commands that would just update a staticly named image on the homeseer web directory. Say WebCam.jpg and thumb1.jpg thumb2.jpg etc...
Using that technique I would be creating 2 screens, one with thumbs, and one with the full image. The script in the background would do the rest. The thumbs could be updated based on page, and the selected image could be updated based on the script command of selecting one of the thumbs locations times the page number.
This works up until I want to have two clients connected, and both happen to be looking at different images from the webcam history.
I thought about trying to populate a listbox and be able to select the image thus updating the image path? Don't know if that's possible, and I don't know if I can dynamically populate a listbox or dropdown list in HSTouch.
Can anyone else think of some ways to do this?
Comment