You are not logged in.

#1 2019-09-20 18:06:29

macdarren
Member
Registered: 2017-03-20
Posts: 411

Old buttons and GUI

Not sure when this happened and it is probably due to my having to revert to an old image then manually update...at some point.
My plates screen buttons have and I think other parts of the GUI have gone back to the older look and I lost my one custom button....
I don't care about the custom button so much I can recreate it however I would like to get my
plates buttons etc to reflect the current look....it works as is I think, but I prefer the newer look.

I presume there is probably a directory that contains the basic template for the appearance of the screens....
could I just move that from my remote slicer (which has the new look) to my Pi which is the one that has the older look?
What folder(s) / file(s) would I need to move?

Thanks

Last edited by macdarren (2019-09-20 21:25:44)

Offline

#2 2019-09-20 21:34:03

elshad66
Member
Registered: 2017-03-31
Posts: 118

Re: Old buttons and GUI

win  wersion     >>        \nanodlp\db\buttons.json   
pi     >>       /home/pi/printer/db/buttons.json

Last edited by elshad66 (2019-09-20 21:34:54)

Offline

#3 2019-09-20 22:24:48

macdarren
Member
Registered: 2017-03-20
Posts: 411

Re: Old buttons and GUI

Thanks...

But not sure that is it....seems to contain .json for the custom buttons but I suspect there is more to my issue than that one file...maybe the whole db directory but still not seeing the image files that I think would be needed.  But it could maybe get my custom button back if I can find an older copy of the file before had to rebuild the card.

Offline

#4 2019-09-20 23:06:16

elshad66
Member
Registered: 2017-03-31
Posts: 118

Re: Old buttons and GUI

all buttons are saved in this file
can be created in the win version and then copied to pi

Offline

#5 2019-09-20 23:08:59

elshad66
Member
Registered: 2017-03-31
Posts: 118

Re: Old buttons and GUI

which button?
what task does it perform?

Offline

#6 2019-09-21 08:32:15

macdarren
Member
Registered: 2017-03-20
Posts: 411

Re: Old buttons and GUI

I'm talking about the buttons specifically on the plates screen....previous versions used a rectangular 'start print' and 'resume' button, newer versions use a small square button that has the generic triangular symbol for play.  this newer button I think does double duty....either starting a fresh print or resuming if the print was stopped early.  Or maybe it changes symbols depending on whether the print is midway done or not I don't recall maybe it looks like a stop or pause button depending on the print state.

Offline

#7 2019-09-21 14:56:48

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Old buttons and GUI

Darren,

Lots of requests to revert things back regarding resume and start.

You should copy templates/, public/css/ and public/js/ folders.

Offline

#8 2019-09-25 23:18:12

macdarren
Member
Registered: 2017-03-20
Posts: 411

Re: Old buttons and GUI

oddly after copying over the above and restarting I still have the same look....I copied from my linux machine which has the newer look...must be another directory or file I missed...not a big deal...

I am assuming the manual update process only updates the application and not the various files that give appearance, or maybe I did something wrong on my last update....I can't use the built in update as it typically crashes my installation for some reason.

Offline

#9 2019-09-26 05:14:29

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Old buttons and GUI

Usually it should not happen only case it could happen is heavy permission customizations on OS level and change to systemd.

Offline

#10 2019-09-27 17:24:33

macdarren
Member
Registered: 2017-03-20
Posts: 411

Re: Old buttons and GUI

I will look into permissions...maybe with all the copying back and forth and partial and manual updates I have caused a problem.
I would be great if I could start updating normally again...:)

Offline

#11 2019-09-28 03:51:57

macdarren
Member
Registered: 2017-03-20
Posts: 411

Re: Old buttons and GUI

Hmm....should some items in the ~/home/pi/printer directory be owned by root?
maybe this is why my updates fail?

many files/directories are not writeable by the user 'pi'

should everything in /printer be owned by pi...

if so I could as root "chown -R pi:pi printer"
or maybe "chmod -R 777 printer"

Offline

#12 2019-09-28 05:09:22

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Old buttons and GUI

Actually printer binary has root access due to need to have memory access for GPIO. Files owned by root probably changed by upgrade process.

Offline

Board footer

Powered by FluxBB