Tibus / TouchScreen-For-NanoDLP

Nextion Touch Screen => NodeJS => NanoDLP By Mango3D
http://fb.com/mango3dslicer
MIT License
79 stars 74 forks source link

Z-axis screen Home button not working #6

Open EberleG opened 6 years ago

EberleG commented 6 years ago

Hi, I have found the home button on the Z-axis control screen/page doesn't work. All the z-axis controls still function but I can't leave that page. BTW, I followed the previous issue post (solved: "connecting to printer" issue) to get my Nextion screen (NX4832T035) working on a Pi3 B. I'm not sure that introduced this bug?

mylove29985 commented 6 years ago

I have the same problem. Home button on the Z axis control not work. Reboot and Shutdow also not working. I am using 2.4 nextion screen

SteBuTOS commented 6 years ago

Sounds to me like you only updated the tft-file on the nextion but did not update the javascript code (home botton issue on z-axis screen requires fixed zAxis.js in bin folder, also new features require corresponding changes/ additions in javascript files.

mylove29985 commented 6 years ago

Thanks for quick respond. Can you guide me how to upgrade this javascrip? Upgrade via Rasberry terminal or in nextionsreen. Cuz I am a new in this so I dont know how :(

SteBuTOS commented 6 years ago

Tibus currently preparing an official 3rd release. Until that becomes available you might try the following: mkdir /home/pi/nextion;(wget https://github.com/SteBuTOS/TouchScreen-For-NanoDLP/archive/v0.3.tar.gz --no-check-certificate -O - | tar -C /home/pi/nextion -xz);cd /home/pi/nextion; sudo ./setup.sh

mylove29985 commented 6 years ago

Thanks alot. I will try it, waiting to the nex release :D

mylove29985 commented 6 years ago

I tried this as you recomended but no luck, till the same problem??? mkdir /home/pi/nextion;(wget https://github.com/SteBuTOS/TouchScreen-For-NanoDLP/archive/v0.3.tar.gz --no-check-certificate -O - | tar -C /home/pi/nextion -xz);cd /home/pi/nextion; sudo ./setup.sh

SteBuTOS commented 6 years ago

Did you copy the complete sequence at once to the command line and executed it? If so, did you get any error messages? You might give it a second try with „sudo“ in front

SteBuTOS commented 6 years ago

Most importand: once installed, do a reboot!

mylove29985 commented 6 years ago

Yes i coppied and executed it. it show some faul mean " folder exist" then it download ( about 12Mb) then ended. After that I do a reboot. I will try again with "sudo" in front and take the picture.

mylove29985 commented 6 years ago

I tried again with no luck. it show error (please see 2 pictures) https://upanhtocdo.com/image/Sotg3 https://upanhtocdo.com/image/Sonpv

SteBuTOS commented 6 years ago

(Last) Try: cd /home/pi/nextion;sudo (wget https://github.com/SteBuTOS/TouchScreen-For-NanoDLP/archive/v0.3.tar.gz --no-check-certificate -O - | tar -C /home/pi/nextion -xz);cd /home/pi/nextion; sudo ./setup.sh

mylove29985 commented 6 years ago

It show error in command line: bash: syntax error near unexpected token `wget'

SteBuTOS commented 6 years ago

sudo cd /home/pi/nextion;(wget https://github.com/SteBuTOS/TouchScreen-For-NanoDLP/archive/v0.3.tar.gz --no-check-certificate -O - | tar -C /home/pi/nextion -xz);cd /home/pi/nextion; sudo ./setup.sh

SteBuTOS commented 6 years ago

Right at the moment I have no access to linux machine for testing myself. So it becomes a trial an error which is not very effectlve. Sorry for that

mylove29985 commented 6 years ago

Hi I tried but the same problems as two pictures I showed. Maybe i have to reinstall all. Thanks alot for support.

SteBuTOS commented 6 years ago

ok, had some time on my hand on a linux machine. the following script shourd work:

sudo wget https://github.com/SteBuTOS/TouchScreen-For-NanoDLP/archive/v0.3.tar.gz --no-check-certificate -O - | sudo tar -C /home/pi/nextion -xz

sudo cp /home/pi/nextion/TouchScreen-For-NanoDLP-0.3/. /home/pi/nextion/. -rv

sudo rm -r /home/pi/nextion/TouchScreen-For-NanoDLP-0.3

sudo npm i ip

sudo npm i drivelist

sudo npm i child_process

sudo shutdown -r now

mylove29985 commented 6 years ago

Thanks you for help me. I tried and the Shutdown and reboot button is working now!!! But Home button on Z axis calibration till not work and in this section I can choice arrange of number like the picture. Some thing went wrong ??? https://upanhtocdo.com/image/SUfw5

SteBuTOS commented 6 years ago

The script also downloaded a fresh set of tft files. Can you try to reinstall the right one to your display with sd card?!

mylove29985 commented 6 years ago

I tried but nothing. What the different between 2.4.tft and 2.4 tft enhance. I try to install 2.4 enhance tft file to my screen but it showed wrong file.

SteBuTOS commented 6 years ago

Can you check for a file errorOutput.log in your nextion folder on your Pi. If the content is not to huge, pist it here.

SteBuTOS commented 6 years ago

Err: pist=post

mylove29985 commented 6 years ago

Hi, I checked errorOutput.log, only 1 line "missing API key for pushbullet" how to solve that? Thanks

SteBuTOS commented 6 years ago

That message seems not related to your issue with the zAxis screen. Your screenshot indicates that in the javascript zAxis.js in the bin-subfolder the function setBtn() was not executed. Thats strange, bacuse in that area was no code chang lately, so it‘s more likely that there is something that prevents that file from beeing executed in general in your setup. Can you please check the following file: /home/pi/nextion/bin/plugins/nextion/pages/zAxis.js Two questions here: 1 does it exist? 2 whats the content?

mylove29985 commented 6 years ago

Yes it exist, I copy the content as below ( not need anymore 😀 )

mylove29985 commented 6 years ago

Hi I tried to reinstall 2.4 tft file version 0.2. In this case Zaxis page work like a charm. So i think problem come from 2.4 tft file version 0.3 thanks

SteBuTOS commented 6 years ago

Can you tell me what file-size the 2.4.tft of your 0.3 version has?

SteBuTOS commented 6 years ago

...oh I now see the reason: somehow the nextion IDE reassigned the object-id's during downscaling. It seems only be the case for the zAxis screen, with effect for the 2.4, 2.4 enhanced, 2.8 and 2.8 enhanced tft's. Thats a bad situation, as the object ids are not editable (assigned by the IDE), but must match through all versions of HMI files to correspond with the javascript. Have to figure out a way to get that fixed.

SteBuTOS commented 6 years ago

2.4.tft.zip can you please try this one

SteBuTOS commented 6 years ago

(...of course you need to unzip it first). Give a short feedback, if we have fixed it. In that case I need to make a pull request to provide the fix to Julien.

mylove29985 commented 6 years ago

Wow I reinstall your 2.4tft and it working now!! I appreciate your work. Thanks alot, it time to provide the fix to Julien :D

SteBuTOS commented 6 years ago

Thanks for your feedback. I already made a pull request to Julien

Tibus commented 6 years ago

Sorry was a bit occupied on other things. I just accept your pull request and will really try to make a Release today!

SteBuTOS commented 6 years ago

Laser on fdm printer?

Tibus commented 6 years ago

yeap ;D https://www.youtube.com/watch?v=QYVMZF7p-S4 And modified the LaserWeb4 repository, create a pull request to make this awesome software compatible

mylove29985 commented 6 years ago

Dear TOS I am waiting for next version with can choise Plate from usb. It made an awesome standalone machine without network connection. Happy to test next version on my own machine :D

SteBuTOS commented 6 years ago

@mylove29985 as you downloaded a pre-release from my fork, you should already have that functionality available within your current setup. Just check for the plus-icon in the top right corner of the Plates-screen.

mylove29985 commented 6 years ago

@SteBuTOS I know but it not working any button and stuck on that page, cant back to home page like the last bug of Zaxis page so I think it just a demo version! So this the same problem like Zaxis page ? https://upanhtocdo.com/image/Sqs7j

mylove29985 commented 6 years ago

Oh I know how to solve that, just insert USB then all the Problem gone :D Wonderful!!!

SteBuTOS commented 6 years ago

Did I get you right? The home button in the „add Plate“ screen does not work?

mylove29985 commented 6 years ago

Yes it work! I checked all and everything is working well 😀

polyfield commented 3 years ago

hello,i am a chemist in 3d uv curing materials, i want a diy interface so i follow your guys tips to install this script,but after connecting its bottoms not working ,is there any wrong with my terminal inputs? somebody can help or give me some information?

pi@raspberrypi:~/nextion $ sudo npm i ip --unsafe-perm screen@1.0.0 /home/pi/nextion └── ip@1.1.5

npm WARN screen@1.0.0 No repository field. pi@raspberrypi:~/nextion $ sudo npm i drivelist --unsafe-perm

drivelist@6.4.6 install /home/pi/nextion/node_modules/drivelist prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=6.4.0 runtime=n ode arch=arm platform=linux) make: Entering directory '/home/pi/nextion/node_modules/drivelist/build' CXX(target) Release/obj.target/drivelist/src/drivelist.o In file included from /root/.node-gyp/6.4.0/include/node/node.h:42, from ../../nan/nan.h:56, from ../src/drivelist.cpp:17: /root/.node-gyp/6.4.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’: /root/.node-gyp/6.4.0/include/node/v8.h:8504:57: warning: cast between incompati ble function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallba ckFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type] reinterpret_cast(callback)); ^ /root/.node-gyp/6.4.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’: /root/.node-gyp/6.4.0/include/node/v8.h:8511:57: warning: cast between incompati ble function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallba ckFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type] reinterpret_cast(callback)); ^ In file included from ../../nan/nan.h:56, from ../src/drivelist.cpp:17: ../src/drivelist.cpp: At global scope: /root/.node-gyp/6.4.0/include/node/node.h:447:43: warning: cast between incompat ible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void ( )(v8::Local, v8::Local, void)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^ /root/.node-gyp/6.4.0/include/node/node.h:478:3: note: in expansion of macro ‘NO DE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) ^~~~~ ../src/drivelist.cpp:66:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(DriveList, InitAll); ^~~ In file included from /root/.node-gyp/6.4.0/include/node/node.h:42, from ../../nan/nan.h:56, from ../src/drivelist.cpp:17: /root/.node-gyp/6.4.0/include/node/v8.h: In instantiation of ‘void v8::Persisten tBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallba ckType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInf o

::Callback = void ()(const v8::WeakCallbackInfo&)]’: /root/.node-gyp/6.4.0/include/node/node_object_wrap.h:64:78: required from her e /root/.node-gyp/6.4.0/include/node/v8.h:7484:16: warning: cast between incompati ble function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘v oid ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] reinterpret_cast(callback), type); ^~~~~~~~ /root/.node-gyp/6.4.0/include/node/v8.h: In instantiation of ‘void v8::Persisten tBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallba ckType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfo&)]’: ../../nan/nan_object_wrap.h:65:61: required from here /root/.node-gyp/6.4.0/include/node/v8.h:7484:16: warning: cast between incompati ble function types from ‘v8::WeakCallbackInfo::Callback’ {aka void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘voi d ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] CXX(target) Release/obj.target/drivelist/src/device-descriptor.o In file included from /root/.node-gyp/6.4.0/include/node/node.h:42, from ../../nan/nan.h:56, from ../src/device-descriptor.cpp:17: /root/.node-gyp/6.4.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’: /root/.node-gyp/6.4.0/include/node/v8.h:8504:57: warning: cast between incompati ble function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallba ckFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type] reinterpret_cast(callback)); ^ /root/.node-gyp/6.4.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’: /root/.node-gyp/6.4.0/include/node/v8.h:8511:57: warning: cast between incompati ble function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallba ckFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type] reinterpret_cast(callback)); ^ /root/.node-gyp/6.4.0/include/node/v8.h: In instantiation of ‘void v8::Persisten tBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallba ckType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInf o

::Callback = void ()(const v8::WeakCallbackInfo&)]’: /root/.node-gyp/6.4.0/include/node/node_object_wrap.h:64:78: required from her e /root/.node-gyp/6.4.0/include/node/v8.h:7484:16: warning: cast between incompati ble function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘v oid ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] reinterpret_cast(callback), type); ^~~~~~~~ /root/.node-gyp/6.4.0/include/node/v8.h: In instantiation of ‘void v8::Persisten tBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallba ckType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfo&)]’: ../../nan/nan_object_wrap.h:65:61: required from here /root/.node-gyp/6.4.0/include/node/v8.h:7484:16: warning: cast between incompati ble function types from ‘v8::WeakCallbackInfo::Callback’ {aka void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘voi d ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] CXX(target) Release/obj.target/drivelist/src/linux/list.o In file included from /root/.node-gyp/6.4.0/include/node/node.h:42, from ../../nan/nan.h:56, from ../src/linux/list.cpp:17: /root/.node-gyp/6.4.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’: /root/.node-gyp/6.4.0/include/node/v8.h:8504:57: warning: cast between incompati ble function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallba ckFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type] reinterpret_cast(callback)); ^ /root/.node-gyp/6.4.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’: /root/.node-gyp/6.4.0/include/node/v8.h:8511:57: warning: cast between incompati ble function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallba ckFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type] reinterpret_cast(callback)); ^ /root/.node-gyp/6.4.0/include/node/v8.h: In instantiation of ‘void v8::Persisten tBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallba ckType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInf o

::Callback = void ()(const v8::WeakCallbackInfo&)]’: /root/.node-gyp/6.4.0/include/node/node_object_wrap.h:64:78: required from her e /root/.node-gyp/6.4.0/include/node/v8.h:7484:16: warning: cast between incompati ble function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘v oid ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] reinterpret_cast(callback), type); ^~~~~~~~ /root/.node-gyp/6.4.0/include/node/v8.h: In instantiation of ‘void v8::Persisten tBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallba ckType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfo&)]’: ../../nan/nan_object_wrap.h:65:61: required from here /root/.node-gyp/6.4.0/include/node/v8.h:7484:16: warning: cast between incompati ble function types from ‘v8::WeakCallbackInfo::Callback’ {aka void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘voi d ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] SOLINK_MODULE(target) Release/obj.target/drivelist.node COPY Release/drivelist.node make: Leaving directory '/home/pi/nextion/node_modules/drivelist/build' screen@1.0.0 /home/pi/nextion └─┬ drivelist@6.4.6 ├─┬ bindings@1.5.0 │ └── file-uri-to-path@1.0.0 ├─┬ debug@3.2.7 │ └── ms@2.1.3 ├── fast-plist@0.1.2 ├── nan@2.14.2 └─┬ prebuild-install@4.0.0 ├── detect-libc@1.0.3 ├── expand-template@1.1.1 ├── github-from-package@0.0.0 ├── minimist@1.2.5 ├── mkdirp@0.5.5 ├─┬ node-abi@2.19.3 │ └── semver@5.7.1 ├── noop-logger@0.1.1 ├─┬ npmlog@4.1.2 │ ├─┬ are-we-there-yet@1.1.5 │ │ ├── delegates@1.0.0 │ │ └─┬ readable-stream@2.3.7 │ │ ├── core-util-is@1.0.2 │ │ ├── inherits@2.0.4 │ │ ├── isarray@1.0.0 │ │ ├── process-nextick-args@2.0.1 │ │ ├── string_decoder@1.1.1 │ │ └── util-deprecate@1.0.2 │ ├── console-control-strings@1.1.0 │ ├─┬ gauge@2.7.4 │ │ ├── aproba@1.2.0 │ │ ├── has-unicode@2.0.1 │ │ ├── object-assign@4.1.1 │ │ ├── signal-exit@3.0.3 │ │ ├─┬ string-width@1.0.2 │ │ │ ├── code-point-at@1.1.0 │ │ │ └─┬ is-fullwidth-code-point@1.0.0 │ │ │ └── number-is-nan@1.0.1 │ │ ├─┬ strip-ansi@3.0.1 │ │ │ └── ansi-regex@2.1.1 │ │ └── wide-align@1.1.3 │ └── set-blocking@2.0.0 ├── os-homedir@1.0.2 ├─┬ pump@2.0.1 │ ├── end-of-stream@1.4.4 │ └─┬ once@1.4.0 │ └── wrappy@1.0.2 ├─┬ rc@1.2.8 │ ├── deep-extend@0.6.0 │ ├── ini@1.3.7 │ └── strip-json-comments@2.0.1 ├─┬ simple-get@2.8.1 │ ├─┬ decompress-response@3.3.0 │ │ └── mimic-response@1.0.1 │ └── simple-concat@1.0.1 ├─┬ tar-fs@1.16.3 │ ├── chownr@1.1.4 │ ├── pump@1.0.3 │ └─┬ tar-stream@1.6.2 │ ├── bl@1.2.3 │ ├─┬ buffer-alloc@1.2.0 │ │ ├── buffer-alloc-unsafe@1.1.0 │ │ └── buffer-fill@1.0.0 │ ├── fs-constants@1.0.0 │ ├── to-buffer@1.1.1 │ └── xtend@4.0.2 ├─┬ tunnel-agent@0.6.0 │ └── safe-buffer@5.1.2 └── which-pm-runs@1.0.0

npm WARN screen@1.0.0 No repository field. pi@raspberrypi:~/nextion $ sudo npm i child_process --unsafe-perm screen@1.0.0 /home/pi/nextion └── child_process@1.0.2

npm WARN screen@1.0.0 No repository field. pi@raspberrypi:~/nextion $ sudo shutdown -r now