gablab / realtime

0 stars 2 forks source link

updated version of Dummylaunch #15

Closed satra closed 11 years ago

satra commented 11 years ago

this demonstrates how to have dynamic flot updating. it also cleans and reorganizes the code. i would recommend pulling this branch, undoing the changes that anisha made (181030a) so that i could run this on my mac.

while the general form can be cleaned up a fair bit, i kept the original submit logic - just that it happens through a javascript function now that allows for more flexibility.

akeshavan commented 11 years ago

Cool! I've fetched and merged but the flot modal doesn't show up when I click "Launch RT" - Is this something I need to add or was it there, but I messed up the merge?

satra commented 11 years ago

that's because the json file is empty. while empty nothing will show up. so either you have to do a real run, or open the run004_active.json in an editor and add/change things.

sasen commented 11 years ago

@akeshavan, @satra On flots for runs that haven't occurred yet: my approach has been to initialize all of those files (run001_active.json, etc.) with a trivial template; I think I use a graph with one datapoint at (0,0) in it so that the flot plots happily... Those basic templates are tracked by git. See template_active.json and template_reference.json. I think this is the best way to avoid the 72 HTTP-404 errors. Would welcome a patch on Pull Request #18