-
Notifications
You must be signed in to change notification settings - Fork 46
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
Smoothieware List SD and Play SD functionality #30
Comments
If we do that, we should also make file upload available, even if it is dead slow. |
Agreed.
…On Jun 4, 2017 1:42 PM, "Claudio Prezzi" ***@***.***> wrote:
If we do that, we should also make file upload available, even if it is
dead slow.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHVr2xOvDGnW-l1KaS80i1ZWl1eIS_TTks5sAphBgaJpZM4NtX4F>
.
|
See
LaserWeb/deprecated-LaserWeb3#138 (comment)
- in testing it was faster than M28 indeed. If you can, please implement it
so it can be used with esp and ethernet too?
On Jun 4, 2017 1:45 PM, "Peter van der Walt (Gmail)" <
peter.plaaswerf@gmail.com> wrote:
… Agreed.
On Jun 4, 2017 1:42 PM, "Claudio Prezzi" ***@***.***> wrote:
> If we do that, we should also make file upload available, even if it is
> dead slow.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#30 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AHVr2xOvDGnW-l1KaS80i1ZWl1eIS_TTks5sAphBgaJpZM4NtX4F>
> .
>
|
I have started implementing SD support for Smoothieware and MarlinKimbra in branch SD_support :) |
Couple checklists to SD implementation [ ] track progress: https://github.com/openhardwarecoza/CoPrint/blob/gh-pages/public/js/socketcomms.js#L152 (when running sd, same as playing, disable jog, show progress (instead of queue) etc) [ ] reenable jog etc once done running sd job [ ] custom icons for gcode, config, firmware (just makes it more user friendly [ ] upload [ ] list sd files [ ] select a file to play it [ ] ability to abort /pause job while running off sd (existing buttons) |
Bonus points. Can we also make it work over the Telnet implementation? I am still working on the esp8266 bridge (boards came in last week) (: |
Cool, i see @cprezzi already has pause, stop, progress, even rm and mv https://github.com/LaserWeb/lw.comm-server/blob/SD_support/server.js#L2157 in backend. So the above notes was more useful for @jorgerobles (; for frontend |
Sorry I was away. Gonna review all the thread |
Hehe yeah sorry, some of it happened in #30 too |
Basic stub available on https://github.com/LaserWeb/LaserWeb4/tree/filemanager |
@cprezzi if can prepare the file tree as https://github.com/woodpig07/react-nested-file-tree will be fine |
No problem (: was just mentioning it as a sort of 'did work' UI. (;
Tree looks nice, might just hurt performance since you'd need to get list
of current dirz then seperately ls each subdir
…On Jul 3, 2017 8:43 PM, "jorgerobles" ***@***.***> wrote:
@cprezzi <https://github.com/cprezzi> if can prepare the file tree as
https://github.com/woodpig07/react-nested-file-tree will be fine
Don't worry for nesting. you could do only current directory and will sort
out working.
@openhardwarecoza <https://github.com/openhardwarecoza> I will try to
resemble coprint, as this component is very flexible.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHVr21seVwHbwBcK2xQLadP9L9dF_LIeks5sKTZNgaJpZM4NtX4F>
.
|
I think Peter is right about performance. It could be very slow to recursively scan the whole SD card to build the tree object for the filemanager. |
Hmm the component only paint the data sent. Send one folder content and
that's all.
El 4 jul. 2017 12:07 a. m., "Claudio Prezzi" <notifications@github.com>
escribió:
… I think Peter is right about performance. It could be very slow to
recursively scan the whole SD card to build the tree object for the
filemanager.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABoIYM07fEwLBvEx8AEp2el7ZxSxQGRoks5sKWYsgaJpZM4NtX4F>
.
|
@jorgerobles Does it make sense to use this lib, if we don't need the tree feature? I don't like unnecessary dependencies (overhead). We just need a list with buttons. I think I'll try to implements Peters list in the modal dialog ;) |
@cprezzi this lib does not force be recursive. It's easy to show a single folder contents without recursion, and
In either way, performance will not be a problem. The first way should update the state contents of the opened branch upon loading. The second way will replace all the state data, bringing the same "one folder" appearance. |
Anyway.. is your call 😄 |
I was concerned about the performance of the serial communication, not the frontend component. |
websocket -> listSD -> runs a http://smoothieware.org/console-commands#ls, (try and get results recursively? even if it means manually going deeper) -> Returns ws event to frontend with array of files.
Frontends displays list of files with a PLAY button
Play button sends ws event to lw.comm-server: to http://smoothieware.org/console-commands#play
The text was updated successfully, but these errors were encountered: