Validation and evaluation of webcam urls
| Project: | Webcams |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Great module. I was working on something similar and then realized that, as always, someone in the community had done the job better already.
I would, however, also like the possibility to validate the url given for the webcam with respect to existence and min/max height/width/size/mime etc. If we did this we could also let the validation function fill out the dimensions automatically. I guess that the average internet user (me included) would be glad to avoid finding the picture's dimensions manually.
I guess we could do this by letting the validate function download the url given to a temporary location, get the dimensions from there and validate before we delete the file. It probably needs some time-out function in case the url points to a mjpeg stream.
If you think this is an interesting idea I will be glad to contribute.
/Cheers

#1
I made this patch to show what I had in mind.
I still haven't figured out a proper way to let the validate function set the height and width. I think I have to set the values with set_form_values, but am having problems.
Please let me know what you think
#2
It sounds like a useful function. I would make it optional, though.
I currently don't have the time to update anything. If you're thinking of contributing more, consider helping maintain the module.