--
You received this message because you are subscribed to the Google Groups "weblabdeusto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weblabdeusto...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
(Sorry for the format of the email, I'm writing a bus 0:-) )
I've just read Luis' mail. I add more related info here.
There are three related topics described in more detail here (subsections "Load balancing", "Concurrency" and "Sharing resources"):
Basically you can play with the scheduler to tune what you want. In the case you're describing, as far as I understand, you can have as you say two different experiments:
a) A regular one, with controlling access, and only one slot. So you would need its own queue and a single resource (unless you have multiple copies of the lab).
b) Another one, with multiple users accessing but no control access. So as to avoid that it interacts with the other lab, you should use a different queue. And you should "invent" different experiments only in the core server configuration file and in the lab configuration file.
So, you could have in the core server:
core_coordinator_laboratory_servers = {
'laboratory1:laboratory1@core_host' :
{
'exp1|webcam|Dummy experiments' : 'webcam1@webcam_queue',
'exp2|webcam|Dummy experiments' : 'webcam2@webcam_queue',
'exp3|webcam|Dummy experiments' : 'webcam3@webcam_queue',
'exp4|webcam|Dummy experiments' : 'webcam4@webcam_queue',
'exp5|webcam|Dummy experiments' : 'webcam5@webcam_queue',
...
}, }
up to 60 or so. WebLab will think that there are those resources (as in load balancing) and will send them to the Laboratory Server.
Then, on the Laboratory Server you can do the same but pointing to a single experiment:
laboratory_assigned_experiments = {
'exp1:webcam@Dummy experiments' : {
'coord_address' : 'webcam:laboratory1@core_host',
'checkers' : () },
'exp2:webcam@Dummy experiments' : {
'coord_address' : 'webcam:laboratory1@core_host',
'checkers' : () },
'exp3:webcam@Dummy experiments' : {
'coord_address' : 'webcam:laboratory1@core_host',
'checkers' : () },
'exp4:webcam@Dummy experiments' : {
'coord_address' : 'webcam:laboratory1@core_host',
'checkers' : () },
'exp5:webcam@Dummy experiments' : {
'coord_address' : 'webcam:laboratory1@core_host',
'checkers' : () },
}
This experiment can be ConcurrentExperiment as you mention, but it can also be a regular experiment. The difference is that if it is a regular experiment, there is no way for you to differentiate among the different users. Suddenly it will be called the "start experiment" many times and when "send command" is sent, you don't know which user is calling it. But if you don't need it, then a regular experiment is fine.
And all this only makes sense if you need a feature of WebLab-Deusto. I mean, if it is only for the camera (and not for interacting with hardware in read-only mode), you're not interested in recording who enters in the camera, anyone can access and so on, it might be easier to put a static HTML file in the /pub directory and pass the link to the students.
Regarding your last paragraph, I didn't understand it. You meant like having an external site for the webcam so other people can access but also include it (e.g., in an iframe) in your experiment client? That would be perfectly fine.
Best,
Great! By the way, are you planning to upload somewhere the Flask + opencv example code? It would be great so as to know how to use USB cameras in Windows in this context!
To post to this group, send email to weblab...@googlegroups.com.
Visit this group at https://groups.google.com/group/weblabdeusto.
--
You received this message because you are subscribed to a topic in the Google Groups "weblabdeusto" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weblabdeusto/QqcHm7RtJpA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weblabdeusto...@googlegroups.com.
That's great!
To unsubscribe from this group and all its topics, send an email to weblabdeusto+unsubscribe@googlegroups.com.
That's great!
To unsubscribe from this group and all its topics, send an email to weblabdeusto...@googlegroups.com.