since it seems that view cameras scenarios under LMCE could be adapted to show some other usefull jpg or png sources, I tried to create view camera scenario that will retrieve picture from traffic webcams. So I can see traffic situation before I leave house for work... But there are some problems to be solved...
In my case there are basically two problems :
1. some websites won't allow access based on IP (they switch to home page on request made by ip). They work ok if access is made with full URL:
for instance: http://www1.dars.si/kameregric/vransko/cam1.jpg
gets picture while http://220.127.116.11/kameregric/vransko/cam1.jpg
won't work cause website switches to home page...
2. it seems that some pictures can be quite big (Generic IP camera only waits for 5 secs or 16384 bytes - so this doesn't suffice). So I see messages like "Ruby was unable to handle the command in reasonable amount of time".
I'd kindly ask for some opinion or advice to following questions (I'm currently using Generic IP Camera template):
1. can I somehow retrieve jpegs using URLs and not numeric IPs ?
2. does increase of parameters in
help in problem 2. ?
3. should I change generic IP camera template or start new one ?
4. Any other thing needed to adapt to slow retrieval of webcams snapshots ?
5. if I use some Ruby equivalent code of wget like here :http://snippets.dzone.com/posts/show/4656
, can I use open-uri from GSD ?