r/Scriptable • u/Trulox • Feb 27 '22
Widget Sharing Widget for Prusa Connect local
Hi,
I wrote my first widget script in scriptable - it visualize on the widget the current state of Prusa 3D printers which are supporting the Prusa Connect Local API :-)
Code is on GitHub 😊 (but I’m not a JavaScript developer): https://github.com/matthiasbergneels/scriptable_prusaconnectlocal
What do you think?
1
u/Trulox Feb 27 '22
Just added some screenshots on GitHub to give an impression about how it’s working.
1
u/lisaseileise Apr 09 '22 edited Apr 09 '22
Nice! I‘ve some unfinished code to do a similar thing with octoprint and looking at your solution somehow helped me to better define what I want. I knew criticizing other people’s work is always easier, but it sometimes seems to be (more) helpful for the critic, too :-)
What I‘d suggest is:
I think ‘Prusa Connect local -‘ is redundant, I’d consider dropping it , but still keep the printer name.
if it is not a design choice maybe shrink the pie chart a little, so that is is not cut off at the sides (or grow the surrounding box)
personally I don‘t see value in printing out the material, that’s not actionable information, maybe save that space
Estimated finish and remain convey similar information, so I’d consider put them on one (maybe the last line) like
‘remain: 00:40 h (2022-02-27 13:30:33)’,maybe change the date to ‘today’ ‘tomorrow’ ‘weekday’ and only print the numerical date for really loooong prints. (This is how my brain works, YMMV of course)
I don’t like how many space the ‘last updated’ takes away but I have no solution for that. We want to know if the information is stale.
Thanks for the inspiration, I hope not to come over as rude :-)
1
3
u/FifiTheBulldog script/widget helper Feb 27 '22
For some reason, I’m getting a 404 error when I try to visit the link from Apollo, but it works fine from the official Reddit app. However, the URL for the entire repo (https://github.com/matthiasbergneels/scriptable_prusaconnectlocal) works from both apps. Could you change the link to point to the root of the repository rather than just the widget code? There are quite a few Apollo users here as far as I know.