-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: continuous monitoring support #67
base: master
Are you sure you want to change the base?
Conversation
+ change max file size to 5MB (rounded)
}; | ||
|
||
// main "load" function that supports both URL/local file | ||
$scope.loadFile = function(event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be removed, but I thought if you could change the buttons to work with only this method? So there'd be only 1 button "Load". Do you think it'd work?
@jefffohl for your preliminary review, if you have time. thx |
@jefffohl can you please review this? |
} | ||
$scope.canDownload(); // will set the local file= true/false | ||
loadFileHelper(); | ||
setMonitoringTimer(appConfig.POLLING_INTERVAL); //FIXME create an entry element for numeric value in UI for this, each change should call setMonitoringTimer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jefffohl could you do the UI for this? Some way to enter numeric values, 0 means disabled, >0 means delay in polling interval for monitoring in ms. On a change the element should call the setMonitoringTimer()
Conflicts: build/app.js client/src/app/appConfig.js client/src/app/appCtrl.js
resolved merge conflicts, hope I haven't introduced any bugs during the merge. |
Conflicts: build/app.js client/src/app/appConfig.js client/src/app/appCtrl.js
@jefffohl how much of this PR are you reusing in your work on #78 ? I was thinking about rebasing a PR off this PR to have only the working functionality, introduction of the Angular's |
I am not using any of this code, as it seemed that the approach wouldn't work. I am sorry if I wasn't clear about that. I don't think we should be working on the same feature at the same time. I am currently working on the server implementation, which is required for online monitoring. |
Thanks Jeff.
from this PR? It would not intervene with any of your work on the server? |
To be honest, I don't think it is a good idea to keep working on this PR. The code is too divergent between our two branches, and it is going to be tough to merge them. It might be best to wait until I am finished with my server work, and then, if you want to implement a method for monitoring files using a diff method and the |
Ok, I'll wait for your server part. Btw, do you have a rough ETA?
|
I am hoping to have it ready before Friday, but there are some things I haven't figured out how to do yet. If I get stuck, I will let you know, and ask for help. |
@breznak - Sorry, I am still working on this. Making progress though. I hope that this is not holding you back from things that you need to do. |
@breznak - sorry still working on this. Some things came up this week that I had to prioritize. |
@breznak - I am working on this issue on this branch: https://github.com/jefffohl/nupic.visualizations/tree/issue78 There are a number of fundamental changes happening here. Specifically:
Remotely hosted files can be parsed, as well as local files. For local files, you must give a full path from the system root to the file. Note that because of this feature, the code as it currently stands should NEVER be hosted on a public server, as that will give the public access to all the files on the web server. We will need to figure out a good way to make sure that this feature is disabled if the app is ever hosted publicly. Right now, the intent is that the app should only be run locally. Local files can be continuously updated. I added a little bash script: /examples/tests/update.sh that will continuously update the If you want to test this branch as it is, first make sure that |
@breznak I have a working prototype on this branch: https://github.com/jefffohl/nupic.visualizations/tree/issue78 This version allows you to "play" a local file. You can enter the path to a local file, and it will load a portion of the file. Clicking the "play" button will start to stream the file from the file system into the web app. Next steps are:
|
@jefffohl sorry for the delay, I was off the grid That sounds great, will you make a PR? |
I could. I was thinking that I would get some of the other steps completed first, but I can make a PR if you like. I am on vacation right now, but I can do it when I return on Monday. |
@brezank - I am thinking of making a new PR for what I have now in https://github.com/jefffohl/nupic.visualizations/tree/issue78 Note that this is almost a complete rewrite of the architecture, due to parsing the data now on the server. Some additional things I also changed along the way:
Let me know your thoughts. |
@jefffohl thanks Jeff, sorry for the silence, I was somehow missing all notifications from this project :/ |
npm
Fixes: #17