#hazzy Logs
May 01 2020
#hazzy Calendar
12:00 AM * JamesW[m] uploaded an image: image.png (12KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/ivSBBfrtHxeqUWZbwMRgcyPX >
12:00 AM TurBoss: :(
12:00 AM JamesW[m]: nope - now mm
12:00 AM JamesW[m]: which works for me but isn't really what you want
12:08 AM JamesW: Its like the status channel is not fully started
12:08 AM JamesW: or some such
12:08 AM TurBoss: yes sounds like that
12:12 AM TurBoss: o kgot it
12:12 AM TurBoss: about to push
12:12 AM TurBoss: done
12:12 AM Not-944e: [02qtpyvcp] 07TurBoss pushed 031 commit to 03DRO_WIDGET [+0/-0/±1] 13https://git.io/JfOi5
12:12 AM Not-944e: [02qtpyvcp] 07TurBoss 03c32ec24 - get startup data from ini not status channel
12:12 AM JamesW: ok
12:12 AM TurBoss: git pull
12:12 AM TurBoss: should do
12:18 AM TurBoss: JamesW: status report?
12:18 AM TurBoss: :P
12:18 AM JamesW: just need to clean something in the gui to be confident ... just need a few mins
12:19 AM TurBoss: okay
12:21 AM JamesW: think we might have a winner
12:21 AM TurBoss: hurray!
12:21 AM JamesW: looks good on imperial start
12:22 AM * JamesW[m] uploaded an image: image.png (12KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/sApsYhRtFSjILzZRpvViflPi >
12:22 AM TurBoss: oh i found the issue with the status channel
12:22 AM TurBoss: i was quering the program units
12:22 AM TurBoss: :o
12:22 AM TurBoss: wich may be undefined
12:22 AM TurBoss: until you load something
12:22 AM * JamesW[m] uploaded an image: image.png (12KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/hnWhjzAKRqGwrjuOolTdwUVI >
12:23 AM TurBoss: \o/
12:23 AM TurBoss: bravo
12:23 AM TurBoss: ole!
12:23 AM JamesW: yup - they might. Although they should be set at machine start
12:23 AM TurBoss: ok I'll wait for our brave leader to review
12:24 AM JamesW: yup
12:24 AM TurBoss: maybe he has some idea
12:24 AM JamesW: once done I'll switch back to main branch
12:24 AM TurBoss: yes thats the plan
12:24 AM TurBoss: thank you !
12:26 AM JamesW: and thank you for looking into it
12:26 AM TurBoss: :)
12:26 AM TurBoss: just noticed my vcp doesn't have a dro
12:26 AM TurBoss: :o
12:27 AM TurBoss: I have a external 7segments display
12:27 AM JamesW: heh - I'm building looking at JTs work as a reference but it is a clean room build as I'm using it to learn the framework and how to handle Designer
12:27 AM JamesW: mine is for a hobby mill.
12:27 AM TurBoss: mine too
12:27 AM JamesW: G0704 sized
12:28 AM TurBoss: mine is lighter size
12:28 AM JamesW: k
12:29 AM JamesW: I have a "big" manual mill for heavier work
12:29 AM JamesW: nice to have both options.
12:29 AM * TurBoss uploaded an image: image.png (365KB) < https://matrix.org/_matrix/media/r0/download/jauriarts.org/mDvzvvdJcJscZNUMblSprbeo >
12:29 AM * TurBoss uploaded an image: image.png (574KB) < https://matrix.org/_matrix/media/r0/download/jauriarts.org/KCoGvFnAXnXxPNpgBqyFPGCi >
12:29 AM JamesW: but the cnc is getting all the attention at the moment. I'm using QTDragon and gmoccapy and they don't fit right somehow.
12:30 AM JamesW: nice
12:36 AM TurBoss: :)
12:36 AM JamesW: wonder if I have some pics of my gear lying arounf ....
12:42 AM JamesW: yeah - having fun.
01:04 AM JamesW[m]: Of course this is a little restoration project I need to start at some point
01:04 AM JamesW[m]: https://drive.google.com/open?id=1hzrFrUOv2fvr7bTl9feCSIy9WHJb4InL
07:15 AM TurBoss: regular morning
09:35 AM * JT[m] uploaded an image: VectorImage_2020-05-01_093420.jpg (2871KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/UBDyebiamFbVRbeVbImJNlCk >
09:56 AM hazzy-m: awww
09:56 AM hazzy-m: so fuzzy
10:06 AM hazzy-m: JamesW: Nice machines!
10:06 AM hazzy-m: and shop
10:06 AM hazzy-m: love the shaper
10:06 AM hazzy-m: that's the perfect size for a home shop
11:35 AM Roguish_shop: good moring from the shop
11:41 AM TurBoss: morning!
02:08 PM JamesW: morning all
02:11 PM JamesW: hazzy: thanks. Shaper is a little Alba 1A. She runs but needs some cleaning and when I get brave enough probably a redo on the dovetails. But nothing is broken just no factory vice. So I plan to fabricate a proper shaper style vice at some point. I have some good sections of 16mm, 25mm and 32mm plate for that project.
02:12 PM JamesW: And a suuply of low hydrogen stingers as well.
02:54 PM jthornton: afternoon
03:10 PM JamesW: trying to get my head back around git and guthub so can load my mill gui into a git repo. Think after all these hours of work might be a good idea instead of the only copy on a laptop
03:13 PM JamesW: anyone got a gui front for git and github they would recommend?
03:17 PM hazzy-m: JamesW: yes! I think most us here use GitKraken, it is a fantastic git client, and free
03:17 PM hazzy-m: gitkraken.com/
03:20 PM JamesW: cheers. Installed.
03:24 PM * jthornton tries to out smart 12 3 day old chicks...
03:25 PM JamesW: lol - good luck
03:25 PM JamesW: question: I assume i don't put the egg folder in git? That's created as part if the install mechanic isn't it?
03:26 PM jthornton: add stuff like that to .gitignore in your base directory
03:27 PM jthornton: https://github.com/jethornton/mill_touch_v6
03:27 PM hazzy-m: jthornton: this is a good starting point: https://github.com/KurtJacobson/blue-control/blob/master/.gitignore
03:27 PM hazzy-m: opps, JamesW
03:31 PM TurBoss: hazzy i think i fixed the drowidget
03:31 PM TurBoss: it reads the ini on boot
03:35 PM JamesW: hmm gitkraken seems to be pretty limited in its free version. Wont even let me open a local file based repo
03:35 PM hazzy-m: sweet!
03:35 PM hazzy-m: I will review, thank you!
03:38 PM TurBoss: tjanks
03:38 PM TurBoss: yup the kraken is a trap
03:39 PM TurBoss: tramp
03:39 PM TurBoss: but there is not much gui options for linux
03:49 PM JamesW: using git force
03:49 PM JamesW: deleting kraken
03:50 PM JamesW: zero patience with that type of marketing crap
03:54 PM hazzy-m: JamesW: it used to not have any of that crap
03:55 PM hazzy-m: its a shame
03:56 PM hazzy-m: but it is a fantastic got client, and one of the few applications I would probably pay for if I was forced too
03:59 PM jthornton: I think I used to use gitk, I'd have to look next time I'm in the beer cave
04:01 PM hazzy-m: gitAhead is also ok
04:05 PM jthornton: https://gnipsel.com/images/chickens/cinnamon-queens/
04:11 PM hazzy-m: jthornton: do they obey the No Roosting notice?
04:12 PM JamesW: sigh - now I am starting to remember why git is a pain in the ass and svn is much simplier for single user work
04:13 PM JamesW: stash this, merge that, fast forward the other thing
04:13 PM JamesW: FFS I just want to push a master commit
04:29 PM JamesW: finally. command line and gitq
04:29 PM JamesW: gitg
04:46 PM JamesW[m]: how sad is this. I'm finding it easier to do git from the command line than from guis
04:57 PM jthornton: hazzy-m, so far
05:01 PM JamesW: true.
05:02 PM JamesW: Now that I have the base setup I am using gitg more.
05:02 PM JamesW: I am after all doing VERY basic stuff on this. Not like what you guys might be up to with merges/pulls from various sources
05:02 PM JamesW: getting things ready to start testing my gui on my mill.
05:04 PM TurBoss: cool giving gitg a try
05:04 PM JamesW: it is VERY simple
05:04 PM JamesW: but then I am a simple soul :-p
05:05 PM JamesW: if you are on linux us meld for merge work on files. it is AWESOME
05:06 PM JamesW: I've been using it to pull hal and ini configs from my experimental files into my master files. It has been a life saver.
05:16 PM hazzy-m: meld is a LIVE SAVER!
05:16 PM hazzy-m: I have it set up as my git diff tool
05:22 PM TurBoss: only @hazzy can merge the unmergeable
05:29 PM hazzy-m: haha
05:35 PM JamesW: question: I have built a gui. Is there a process/formula for packaging it up to be moved/installed to a target machine? Asking as need to move my bf20 gui to the target machine to start real world testing. Also have a friend with almost the same kit who is interested in using it as well. So thought a single "packaging" effort that was repeatable would be good.
05:36 PM TurBoss: yes
05:36 PM TurBoss: using the setup.py
05:36 PM JamesW: assumption is the target machines already have qtpyvcp in place
05:36 PM JamesW: this is the setup.py in the folder that gets copied from vcp-teamplate?
05:37 PM TurBoss: it requires to install apt deps
05:38 PM TurBoss: qtpyvcp is installed auto if desired
05:40 PM JamesW: reading that setup script. It as vars for a repo url. Will it pull from there?
05:40 PM JamesW: or is that just for reference
05:40 PM TurBoss: ops not on there
05:42 PM TurBoss: https://github.com/TurBoss/JauriaCNC/blob/master/setup.py#L27
05:43 PM TurBoss: pulls from here https://pypi.org/project/qtpyvcp/
05:46 PM JamesW: found the documentation site. So does that mean all someone needs is the base dir with just the setup.py and it will pull everything it needs from the net?
05:46 PM JamesW: Obviously you still need to do all the hal and ini file work
05:48 PM TurBoss: you can also publish on pipy
05:48 PM JamesW: lol - one day, maybe
05:48 PM TurBoss: https://pypi.org/search/?q=qtpyvcp
05:48 PM TurBoss: :P
05:49 PM JamesW: I think for now I'll not be quite so public
05:49 PM JamesW: it needs a LOT more polish and work
05:49 PM TurBoss: there is also deb packaging
05:49 PM JamesW: but I think it is at a point that I can actually use it on a live machine
05:49 PM JamesW: simple python to start is ok
05:50 PM JamesW: just need to understand just what the setuptools will and wont do for me
05:52 PM TurBoss: a startup config is missing
05:53 PM JamesW: yup - would need to include that in the source tree
05:53 PM TurBoss: I mean that with pip config sampes can't be provided
05:53 PM TurBoss: i think there are scripts
05:53 PM TurBoss: jt did some
05:53 PM TurBoss: *JT
05:53 PM TurBoss: :P
05:54 PM JamesW: maybe in our context we need to do source distributions?
05:55 PM TurBoss: i saw a cool project on hack a day wich uses c_python to make binaries
05:55 PM JamesW: but from what I can see there is a directive type construct that allows the listing of non python files for inclusion
05:56 PM TurBoss: pyboy
05:56 PM JamesW: package_data={
05:56 PM JamesW: # If any package contains *.txt or *.rst files, include them:
05:56 PM JamesW: "": ["*.txt", "*.rst"],
05:56 PM JamesW: # And include any *.msg files found in the "hello" package, too:
05:56 PM JamesW: "hello": ["*.msg"],
05:56 PM JamesW: },
05:56 PM JamesW: so this will support the QT files .ui, .qrc, .qss
05:57 PM JamesW: or anything else extra .hal, .ini etc etc etc
05:57 PM RacoonRider|MovT: hi all. hope all of you are fine
05:57 PM RacoonRider|MovT: fine/well
05:58 PM JamesW: yup
05:58 PM TurBoss: hello
05:58 PM JamesW: busy with all this book learnin stuff
05:58 PM TurBoss: fine here
05:59 PM TurBoss: confined for more than a month but leaving pass
05:59 PM RacoonRider|MovT: i have a strange behaviour after pulling latest pyqtvcp. i use probe_basic and if i rotate the backplot the screen is dark until i hit reset path
05:59 PM TurBoss: yes i noticed
06:00 PM TurBoss: its because recently fix/bug
06:00 PM TurBoss: onse seems to happend on metric for me
06:00 PM RacoonRider|MovT: yea i am in the metric world
06:00 PM TurBoss: the bug was rotate restarting the zoom level when rotating
06:01 PM TurBoss: this seems new
06:01 PM RacoonRider|MovT: before the most boring thing was, if i pan and zoom als fine, if i rotate all is reset 😭
06:02 PM RacoonRider|MovT: hehe yea
06:02 PM TurBoss: thanks
06:03 PM TurBoss: there is something thast enables the plot again change the view
06:03 PM RacoonRider|MovT: do you guys know where the problem is?
06:03 PM TurBoss: yes
06:05 PM RacoonRider|MovT: i am very new in python and have take a look into widgets/display_widgets/vtk_backplot/ guess there somwhere
06:05 PM RacoonRider|MovT: but found nothing i understand in that short period of time
06:07 PM TurBoss: https://github.com/kcjengr/qtpyvcp/commit/03e1eb983265bd5d0da8368174f4a0a9942a7c86#diff-3f934e7a3355479225dd434ae3424e17R476
06:07 PM TurBoss: the change that breaks is the reset camera
06:07 PM TurBoss: the removal worked fine for imperial
06:08 PM RacoonRider|MovT: thnks got ist
06:08 PM RacoonRider|MovT: it
06:08 PM TurBoss: now I thin that the problem is the clipping range
06:09 PM RacoonRider|MovT: yes i see. i already have the erset commented
06:09 PM RacoonRider|MovT: self.renderer.ResetCamera()
06:10 PM * RacoonRider|MovT sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/JwJVDjWpEfrmFVlfRDAPPUsi >
06:10 PM RacoonRider|MovT: i take the pull yesterday
06:13 PM RacoonRider|MovT: when i comment the SetClippingRange all is fine
06:15 PM TurBoss: does it fix?
06:17 PM TurBoss: bravo
06:18 PM RacoonRider|MovT: yea but the redraw still strange. need to test it with a lage file
06:23 PM hazzy-m: JamesW: probably the cleanest example of a VCP package currently is JauriaCNC or BlueControl
06:23 PM hazzy-m: https://github.com/KurtJacobson/blue-control
06:24 PM TurBoss: bluecontrol is better :P
06:24 PM hazzy-m: the main think you need to change is the setup.py file, entry points are the most import thing you need to get right
06:24 PM TurBoss: the packages thing only
06:24 PM hazzy-m: the rest is pretty simple
06:35 PM RacoonRider|MovT: camera.SetClippingRange(0.001, 10000000.0) did the trick
06:36 PM RacoonRider|MovT: now all is fine
06:36 PM TurBoss: great!
06:37 PM RacoonRider|MovT: if i try to start with the latest probe basic i stuck on disabling the M6 subroutine call
06:38 PM RacoonRider|MovT: i have my own script and try to call it, it doesnt work. says every time the tool is already in the spindle 😭
07:09 PM JamesW: cheers
07:09 PM JamesW: will look at and mimic
07:27 PM JamesW: ok - done that. What is sass? Is it worth learning?
07:27 PM JamesW: looks like something that "compiles" to css
07:28 PM TurBoss: object oriented css
07:28 PM TurBoss: yes but hazzy managed to get it run for us
07:28 PM JamesW: okay. Maybe I just stick with qss for the time being.
07:31 PM JamesW: I think I have enough complexity getting back in to python and QT and such.
07:33 PM TurBoss: RacoonRider | MovT: I'm with the rotation stuff
07:37 PM RacoonRider|MovT: Hehe okay. I'll stay on the working version for now. Its not important to stay at the latest probe_basic for now
07:38 PM TurBoss: great
07:40 PM RacoonRider|MovT: If my diy atc iso20 spindle is ready this weekend i will use measured tools in each holder so i dont need the m5 tool probe anymore. that is the plan.
07:41 PM TurBoss: amazing!
07:42 PM RacoonRider|MovT: yea, cheapo toolholder frm china, 16USD each are amazing for my need. i turned a spindle and bougt som alloy and bearings and watch a few videos on youtube 🙂
07:43 PM TurBoss: they are really cool
07:44 PM RacoonRider|MovT: t first it will driven by my chinesium hf spindle. later i will switch over to a servo with some tourqe
07:44 PM * RacoonRider|MovT uploaded an image: 093CAD36-BF59-4EE0-A150-A21C49AF0E05_1_105_c.jpeg (246KB) < https://matrix.org/_matrix/media/r0/download/jauriarts.org/wOhreghxGUkXKCXoshUlXauz >
07:45 PM JamesW: that would be nice to do. But I think I can live with my BF20 spindle with its 3MT and just auto measure tools on each change. Doesn't seem to loose that much time.
07:46 PM JamesW: repeatability seems to be circa 0.003mm
07:47 PM RacoonRider|MovT: Yes i agree. But the er20 collets on a chines hf spindle is a pain in the ass fr changing tools
07:47 PM JamesW: its a bit slower. Bit I'm well practiced at it now. ER collet on big mill and BF20 cnc mill
07:48 PM RacoonRider|MovT: you need two wrenches, and need to clamp it well, its not really well for the lower bearings whe yo pul like a horse on the wrenches 😉
07:48 PM JamesW: you shouldn't need to crank it that much
07:49 PM JamesW: not if your collet is a good fit on the tool
07:49 PM RacoonRider|MovT: yea i have learn my lession. 1" endmill slip out of the collet. that wasnt funny
07:49 PM JamesW: and given the DOCs these small mills can handle the load isnt that high either
07:50 PM JamesW: 1"?!
07:50 PM JamesW: yike
07:50 PM JamesW: s
07:50 PM TurBoss: got a fix
07:50 PM JamesW: nah I limit myself to 12mm (1/2")
07:50 PM TurBoss: works here
07:50 PM RacoonRider|MovT: err 1/2"
07:50 PM RacoonRider|MovT: 12mm
07:50 PM JamesW: ah - thats more like it
07:51 PM TurBoss: oh now time to g20 21
07:51 PM RacoonRider|MovT: hehe
07:51 PM RacoonRider|MovT: imperial is martian to me (almost)
07:51 PM JamesW: If you are doing roughing cuts I highly recommend a proper roughing end mill. The onces with the wavy toothed edges. They are brillant for hogging stuff
07:52 PM RacoonRider|MovT: i know 25,4 mm is an inch basically 🙂
07:52 PM JamesW: I have a 12mm one of those. Put the mister on and let her rip. She eats ali for breakfast
07:52 PM RacoonRider|MovT: yea i have tons of mills. endmill, roughmills, ballmills etc
07:52 PM JamesW: 25.4mm is exactly an Inch as I understand it
07:53 PM RacoonRider|MovT: correct
07:53 PM JamesW: so load wise you let your roughers do all the heavy work and then your normal finishing ones shouldn't be under too much load. Well that's the theory.
07:54 PM JamesW: Worked for me so far (touch wood)
07:54 PM RacoonRider|MovT: but than it goes to 3/8" 5/9" 3/64" 🙄
07:54 PM JamesW: now you talking crzy fraction stuff
07:54 PM JamesW: 4mm, 5mm, 6mm, 8mm, 10mm, 12mm Them are sane sizes
07:55 PM RacoonRider|MovT: hehe
07:55 PM RacoonRider|MovT: i am talking about the imperial measurement generally, not for mills
07:55 PM Not-944e: [02qtpyvcp] 07TurBoss pushed 031 commit to 03VTK_ROTATION [+0/-0/±1] 13https://git.io/Jf3cI
07:55 PM Not-944e: [02qtpyvcp] 07TurBoss 03951a1a4 - fix rotation on metric
07:55 PM Not-944e: [02qtpyvcp] 07TurBoss created branch 03VTK_ROTATION - 13https://git.io/fhCou
07:55 PM RacoonRider|MovT: Ahh cool
07:55 PM TurBoss: lol caps
07:57 PM travis-ci: kcjengr/qtpyvcp#1437 (VTK_ROTATION - 951a1a4 : TurBoss): The build passed.
07:57 PM travis-ci: Diff view : https://github.com/kcjengr/qtpyvcp/commit/951a1a4a82a9
07:57 PM travis-ci: Build details : https://travis-ci.org/kcjengr/qtpyvcp/builds/682169018
08:06 PM Not-944e: [02qtpyvcp] 07TurBoss pushed 031 commit to 03VTK_ROTATION [+0/-0/±1] 13https://git.io/Jf3cy
08:06 PM Not-944e: [02qtpyvcp] 07TurBoss 03c762178 - missing defaults
08:13 PM RacoonRider|MovT: anybody have a clue where is the best place to implement a "autozoom" after loading a ngc file in the backplot?
08:15 PM RacoonRider|MovT: that would be nice to see the part and not the whole machine for some reasons. It can be a part in the .ini at the DISPLAY section like AUTO_ZOOM_ON_NGC_LOAD = true or something
08:18 PM RacoonRider|MovT: A button in the viewer could also do the same job 🙂
08:18 PM TurBoss: there is a load signal
08:19 PM RacoonRider|MovT: load signal?
08:20 PM TurBoss: https://github.com/kcjengr/qtpyvcp/blob/master/qtpyvcp/widgets/display_widgets/vtk_backplot/vtk_backplot.py#L376
08:20 PM TurBoss: https://github.com/kcjengr/qtpyvcp/blob/master/qtpyvcp/widgets/display_widgets/vtk_backplot/vtk_backplot.py#L564
08:20 PM TurBoss: but thats trigered on every file modification
08:21 PM TurBoss: so if you save with the editor it will reload
08:21 PM TurBoss: save the loaded file
08:22 PM TurBoss: so what you load can be overriden.... i don't like this :(
08:22 PM TurBoss: I would like to have a unmutable buffer
08:22 PM TurBoss: * I would like to have a unmutable file
08:22 PM TurBoss: *file
08:24 PM RacoonRider|MovT: yes i got it. thats right but no problem at all. the autozoom only need the ncg boundaries to zoom the path to a appropriated size in the view
08:24 PM TurBoss: yes you can add the code on load_program function
08:25 PM TurBoss: or add a new one and call it from there and othe like the button you said
08:25 PM TurBoss: new function
08:25 PM RacoonRider|MovT: i have a 1250x700mm x/y and z 230mm. If i load a part of 40x30mm i see only a point in the view 🙂
08:26 PM JamesW: hazzy-m: when was asking about the Setup.py stuff. I'm now playing as a "user" and trying to install the "clean" package onto a new machine. Have setup things like the example you provided. When I run 'python setup.py install' it complains about no write access to ' /usr/local/lib/python2.7/dist-packages/'
08:26 PM RacoonRider|MovT: yea i will do it if i am more in touch with the code structure and python itself
08:26 PM JamesW: I don't recall needing sudo access when doing this before. Or do I need to be doing the install process differently?
08:27 PM TurBoss: JamesW: "python2 -m pip install --user -e ."
08:27 PM TurBoss: oops
08:27 PM TurBoss: no
08:27 PM TurBoss: wrong
08:27 PM TurBoss: * JamesW: "python2 -m pip install --user qtpyvcp"
08:27 PM TurBoss: sorry
08:27 PM TurBoss: "python2 -m pip install --user qtpyvcp"
08:28 PM JamesW: okay - think that needs to be scripted cose asking a non tech user to remember that is a bit much
08:28 PM TurBoss: sometimes it tries the user side
08:28 PM TurBoss: but some others doesnt'
08:28 PM JamesW: I take it pip runs the setup.py file as needed
08:30 PM JamesW: ok - nice little 'install.sh' script to save the day
08:31 PM Not-944e: [02qtpyvcp] 07TurBoss commented on issue 03#27: Display Info and Error Notifications - 13https://git.io/Jf3CB
08:31 PM Not-944e: [02qtpyvcp] 07TurBoss closed issue 03#27: Display Info and Error Notifications - 13https://git.io/JeiKg
08:31 PM JamesW: and moved to GitAhead as a new git gui. Looking more promising. gitg is clean but no obvious 'git push' command got a bit lame.
08:37 PM TurBoss: good night
08:40 PM JamesW: nite
08:40 PM JamesW: just when I have a question for him
08:42 PM TurBoss: yo
08:42 PM JamesW: that install instruction. Where would I expect to see where things got installed to?
08:42 PM TurBoss: just moved from dev to sofa :P
08:42 PM JamesW: ah
08:43 PM JamesW: :)
08:43 PM TurBoss: a hidden file in home folder
08:43 PM TurBoss: .local somthing
08:43 PM TurBoss: i think is shown in the log
08:43 PM TurBoss: hidded directory
08:46 PM JamesW: looking in .local
08:46 PM JamesW: can see the qtpyvcp stuff
08:46 PM JamesW: not seeing my giu
08:46 PM JamesW: gui
08:47 PM TurBoss: hmmm
08:47 PM TurBoss: site-packages?
08:48 PM JamesW: where would the log be you referred to?
08:48 PM JamesW: didnt see no log file is all
08:48 PM TurBoss: when running the install?
08:48 PM JamesW: yup
08:48 PM TurBoss: :/
08:49 PM TurBoss: ah is shown ehrn there are errors lol
08:49 PM JamesW: ok - let me go to back and clearly set the scene. In case I have f'd up
08:50 PM JamesW: [1] built gui on dev box. Got it working as a sim on dev box. Booked the code into github. Cleaned things up per advice. Fixed entry point defs to ini file, removed .bak files and the egg directory. So nice and clean.
08:52 PM JamesW: [2] cloned this repo onto my "real" linuxcnc box that controls mill. Got instructions from yourself on how to correct run the the install from this cloned dir. Wrapped that in an install.sh bash script so would be easier.
08:52 PM JamesW: [3] ran the install script. Things chuckled away pulling stuff down and the like. No errors.
08:52 PM JamesW: BUT I am not sure where the GUI has been installed to. Or is it just that cloned dir?
08:53 PM JamesW: Or do I just try spinning up a linucnc ini that refers to the gui and see if qtpyvcp finds it?
08:54 PM JamesW: Or is there a way for me to check if qtpyvcp knows about the gui before doing that.
08:54 PM TurBoss: so you ran pip install -e . in your vcp directory?
08:55 PM JamesW: in the cloned dir of my vcp.
08:55 PM TurBoss: then you can run editvcp yourvcpname
08:55 PM JamesW: #!/bin/bash
08:55 PM JamesW: python2 -m pip install --user qtpyvcp
08:56 PM JamesW: no as I have not installed designer
08:56 PM TurBoss: ah true
08:56 PM JamesW: oops
08:56 PM JamesW: I have. Forgot that.
08:56 PM JamesW: lets see if it works. have X forwarding on.
08:57 PM JamesW: editvcp does not know about the conf name
08:57 PM hazzy-m: JamesW: you should install your VCP with `pip install -e .` from within the directory that has your VCP's setup.py file. This should work 100% of the time
08:57 PM JamesW: ok - will try that now
08:58 PM hazzy-m: the files are not copied anywhere for a editable (-e) install, only a link is crated to point python the the location of your python packages
08:58 PM JamesW: ok - so that means I can continue to update from the git repo
08:58 PM TurBoss: oh that why they didn't apear on .local
08:58 PM hazzy-m: its called an egg link, and you should be able to find them in you ~/.local/lib/python dir
08:59 PM JamesW: if I didn't do -e then it would copy them?
08:59 PM hazzy-m: * its called an egg link, and you should be able to find the egg link' in you ~/.local/lib/python dir
08:59 PM JamesW: and I would need to reinstall each time I pulled changes from github
08:59 PM hazzy-m: it will NOT copy them with -e
08:59 PM TurBoss: with -e no need
08:59 PM JamesW: yup - git
08:59 PM JamesW: got it
09:00 PM JamesW: there is no an egg dir when before wasn't
09:00 PM JamesW: no==now
09:00 PM hazzy-m: so you do not have to reinstall after editing files, it is running from the source files so will pick up anychanges
09:00 PM hazzy-m: perfect!
09:00 PM JamesW: can see the egg link in ~/.local/lib/python2.7/site-packages/
09:02 PM JamesW: IF you were not doing a source install then you would use 'pip install .'
09:02 PM JamesW: ?
09:03 PM TurBoss: you can aldo pip install git+https://github..com/kcjengr/qtpyvcp
09:03 PM TurBoss: or your vcp repo
09:03 PM TurBoss: also**
09:03 PM JamesW: gotcha. Good to know
09:04 PM JamesW: noted that in my notes file :)
09:05 PM JamesW: oh and editvcp now auto completes the gui name. So seeing things correctl
09:05 PM JamesW: thanks gents
09:08 PM JamesW: ok - the million dollar question. Will my gui run on my real machine.
09:09 PM JamesW: ** heads off to garage to see what happens **
09:10 PM TurBoss: :)
09:15 PM JamesW: well it starts and homes. But I forgot I had an odd setup on the 4th axis. Pandering to the sim config. Will need to change that so sim is more aligned to real machine.
09:22 PM JamesW: hazzy-m: did you approve/merge the DRO_WIDGET branch?
09:36 PM Not-944e: [02qtpyvcp] 07KurtJacobson pushed 034 commits to 03master [+0/-0/±4] 13https://git.io/Jf3Wh
09:36 PM Not-944e: [02qtpyvcp] 07KurtJacobson 03c4782f8 - Merge remote-tracking branch 'origin/DRO_WIDGET'
09:37 PM hazzy-m: JamesW: should be up in a minute
09:37 PM hazzy-m: TurBoss: looks great!
09:38 PM TurBoss: cool
09:38 PM Not-944e: [02qtpyvcp] 07KurtJacobson pushed 031 commit to 03gh-pages [+489/-0/±0] 13https://git.io/Jf3Wj
09:38 PM Not-944e: [02qtpyvcp] 07traviscibot 0329e55d7 - Deploy kcjengr/qtpyvcp to github.com/kcjengr/qtpyvcp.git:gh-pages
09:41 PM JamesW: cheers.
09:59 PM JamesW: are custom fonts automatically picked up? Or do I need to install or reference where they are in some manner?
09:59 PM JamesW: Benn looking at probe_basic and can't see if there is a special reference made to the font in its font dir. Other than naming it in the qss
10:02 PM hazzy-m: if the font is not installed system wide then it has to be added to the QT font database
10:02 PM hazzy-m: for it to be picket up in UI files and style sheets
10:03 PM hazzy-m: I wonder if a relative path might work now that I've fixed that ...
10:04 PM hazzy-m: JamesW: https://github.com/kcjengr/probe_basic/blob/master/probe_basic/probe_basic.py#L18
10:04 PM JamesW[m]: so define a relative path to it in the qss?
10:04 PM hazzy-m: should probably make that something that can be specified in the YAML file, rather than hard coded
10:04 PM hazzy-m: its worth a try in the qss
10:05 PM JamesW: thanks. Will try in qss first, if can figure out correct syntax. As references I have seen are font family based not file
10:06 PM hazzy-m: yeah, I'm not seeing any qss specifier that looks promising
10:09 PM JamesW: yeah - just went throug the ref. font references are by family
10:10 PM JamesW: so added that line into the code. Minor thing. nice to be via yaml but probably bigger fish to fry.
10:16 PM hazzy-m: heh, already implemented
10:16 PM hazzy-m: I forgot about that
10:16 PM JamesW: lol
10:16 PM hazzy-m: so looks like you should be able to pass a list of custom font locations to the application
10:16 PM JamesW: so how would reference un yaml?
10:16 PM hazzy-m: sek, I'll make an example
10:17 PM JamesW: lol - don't you hate having a dumb asking all the dumb questoins
10:17 PM JamesW: newbie I mean
10:17 PM JamesW: although I probably am dumb
10:19 PM hazzy-m: haha, no its awesome!
10:20 PM hazzy-m: every time I have to answer questions it makes it all worth it, means somebody else thinks its worth trying to figure out
10:20 PM * hazzy-m sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/dZHEvfslBzOYFXfsJrXvsBDm >
10:20 PM hazzy-m: try adding that to your VCPs YAML file
10:21 PM hazzy-m: file.dir is the path to the dir the YAML file is located in
10:21 PM hazzy-m: and the rest is the path from there to the font it's self
10:21 PM hazzy-m: need to find a way to make clean relative paths work ...
10:21 PM JamesW: on it
10:23 PM hazzy-m: if it can't find the font it should print an error
10:23 PM hazzy-m: you will still need to specify that fond family in the QSS, but this makes it available
10:24 PM JamesW: yup
10:25 PM JamesW: assume this is in master?
10:25 PM JamesW: or i a branch?
10:28 PM hazzy-m: master
10:29 PM JamesW: cool - have synched up off to see if works
10:31 PM JamesW: hmmm possible typo in example. scanner is complaining with markers on the {} around the { file.dir }}/resources/fonts/BebasKai.ttf
10:31 PM JamesW: hmm think I need an extra bracket and something else ike the stylesheet:
10:32 PM JamesW: fixed it. had to look at the riot IM to see things more easily
10:34 PM JamesW: hmm ... how to tell if it is loading proper or not.
10:36 PM * JamesW[m] sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/FMQYzcyqzfvNbzaoEKhGBiDo >
10:36 PM JamesW[m]: lets try that again without all the html ick
10:36 PM * JamesW[m] sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/KOjAijyPfevdCLtgJJFpUdrG >
10:36 PM JamesW[m]: so looks like not finding the font file
10:39 PM JamesW: actually that could be legit
10:39 PM JamesW: looking at the actual font file it doesn't seem to have any lowercase
10:44 PM hazzy-m: strange ...
10:44 PM hazzy-m: oh lol
10:45 PM hazzy-m: its spliting the path up into letters
10:45 PM hazzy-m: xD
10:45 PM JamesW: should it do that?
10:45 PM hazzy-m: make sure you have the `-` before the path in the YAML
10:45 PM JamesW: -
10:45 PM hazzy-m: that specifies that it is an item in a list
10:46 PM JamesW: k - dont at the moment but I have it all on one line
10:46 PM hazzy-m: you could also try
10:46 PM JamesW: custom_fonts: {{ file.dir }}/resources/fonts/BebasKai.ttf
10:46 PM hazzy-m: application:
10:46 PM hazzy-m: kwargs:
10:46 PM hazzy-m: custom_fonts: [ {{ file.dir }}/ui/fonts/myfont.ttf ]
10:46 PM hazzy-m: custom_fonts expects a list
10:46 PM JamesW: ah - ok
10:47 PM hazzy-m: your supplying a string, to put square brakets around it
10:47 PM hazzy-m: I should probably check if its a string typ and not split if it is ...
10:48 PM JamesW: the [] stopped the big error list
10:50 PM JamesW: as I suspected at some point this font has been installed in the .local/share/fonts dir on my dev laptop. So hard to tell if being picked up or not
10:51 PM JamesW: nned to check on mill machine
10:53 PM hazzy-m: you can uninstall it
10:53 PM JamesW: WIN.
10:54 PM hazzy-m: it should be located in ~/.local/share/fonts
10:54 PM JamesW: test passed on debian 9 machine on my mill
10:54 PM JamesW: crappy fonts and now nice slick fonts
10:54 PM hazzy-m: possibly in a true types forler
10:54 PM hazzy-m: sweet!
10:55 PM JamesW: so if you wanted to use more than one sutom font you need multiple of these custom_conts lines
10:55 PM JamesW: ?
10:57 PM hazzy-m: no, just add another item to the list
10:58 PM * hazzy-m sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/qGCuLNbOxKhUPOAbHYQIKhTV >
10:59 PM JamesW: gotcha
11:20 PM JamesW: ita amazing all this little niggles you find when going to use something in anger versus in theory
11:23 PM Not-944e: [02probe_basic] 07mlkood starred 03probe_basic - 13https://git.io/Jf38h
11:28 PM hazzy-m: yes lol
11:52 PM JamesW: have a probe question. qtvcp has a prebuilt probe widget that wraps up all the icons etc. Is there something similar? Or is it more a case of "here are all the base bits, put them together as simple or complicated as you want.