#hazzy Logs
May 03 2020
#hazzy Calendar
12:06 AM TurBoss: morning
12:19 AM JamesW: hi
12:20 AM JamesW: TurBoss - does linuxcnc or qtpyvcp send messages to things like the xfce4 notification daemon?
12:20 AM TurBoss: it did
12:21 AM TurBoss: there is a dbus notification system but didn't work on all systems
12:21 AM JamesW: I have debug and msg lines in gcode I am running and instead of it just listing in the log widget I am also getting these annoying popup messages
12:22 AM JamesW: when you say "it did" which "it"
12:22 AM TurBoss: its disable
12:22 AM TurBoss: * its disabled
12:23 AM JamesW: in linuxcnc?
12:23 AM TurBoss: https://github.com/kcjengr/qtpyvcp/blob/master/qtpyvcp/yaml_lib/default_config.yml#L42
12:23 AM TurBoss: you can add this section to your yaml
12:23 AM TurBoss: under data_plugins
12:24 AM JamesW: so that says its on by default>?
12:24 AM JamesW: so I should be able to turn if off?
12:24 AM TurBoss: the qt notifications is the default becaus it shows in all systems
12:24 AM TurBoss: yes
12:24 AM TurBoss: also switch to dbus
12:24 AM TurBoss: instead of native
12:27 AM JamesW: cheers. Will try that and see if it has disabled it.
12:29 AM JamesW: managed to get my manual tool chnage and auto measure fully integrated into my new gui today. No pop-ups from the default manual tool changer. All interaction is in the UI
12:29 AM TurBoss: great!
12:34 AM JamesW: I even have a hal led flashing during the probe cycle.
12:34 AM TurBoss: ๐ฒ
12:34 AM TurBoss: https://github.com/jethornton/mill_touch_v6/blob/master/mill_touch_v6/config.yml#L43
12:34 AM JamesW: mind you would like to improve the visual look of it at some point.
12:34 AM TurBoss: check this
12:34 AM TurBoss: it just disables popups
12:34 AM JamesW: HAH
12:34 AM JamesW: JT would have found those popups as annoying as I am
12:34 AM TurBoss: )
12:34 AM TurBoss: * :)
12:35 AM JamesW: crap - maybe I put too much in. Cose that didnt work
12:35 AM TurBoss: how is that
12:36 AM JamesW: well i put all those settings in but change the enable to False
12:36 AM JamesW: and still got messages
12:36 AM JamesW: UNLESS
12:36 AM JamesW: there were pesistant ones
12:36 AM JamesW: no - they were new cose they appeared as sson as i started another M6 cycle
12:37 AM JamesW: and that macro has the debug lines in it
12:39 AM JamesW: oh i see
12:40 AM JamesW: needs to be under he data_plugins
12:43 AM TurBoss: yes
12:47 AM JamesW: sorted
12:47 AM JamesW: perfect
12:47 AM TurBoss: nice!
12:50 AM JamesW: soo cool. now I can have multiple tool changes in a prog. System will hit an M6, move to a tool change location and wait for a button press on the gui to indicate tool has been changed. Then it will go to the probe location and measure the new tool length and assign a G43.1 offset and things carry on.
12:52 AM JamesW: just what the doctor ordered when you dont have preset tool holders and lengths.
12:59 AM Not-944e: [02qtpyvcp] 07TurBoss pushed 033 commits to 03master [+0/-0/ยฑ3] 13https://git.io/JfsTr
12:59 AM Not-944e: [02qtpyvcp] 07TurBoss 037b0afb4 - Merge branch 'VTK_ROTATION'
12:59 AM Not-944e: [02qtpyvcp] 07TurBoss deleted branch 03VTK_ROTATION - 13https://git.io/fhCou
12:59 AM Not-944e: [02qtpyvcp] 07TurBoss deleted branch 03VTK_ROTATION
01:00 AM JamesW: TurBoss - did that dro_widget fix get accepted?
01:00 AM TurBoss: yes
01:06 AM Not-944e: [02qtpyvcp] 07TurBoss deleted branch 03DRO_WIDGET - 13https://git.io/fhCou
01:06 AM Not-944e: [02qtpyvcp] 07TurBoss deleted branch 03DRO_WIDGET
01:06 AM Not-944e: [02qtpyvcp] 07KurtJacobson pushed 031 commit to 03gh-pages [+489/-0/ยฑ0] 13https://git.io/JfsTi
01:06 AM TurBoss: so master is fixed
01:06 AM Not-944e: [02qtpyvcp] 07traviscibot 03072a2b6 - Deploy kcjengr/qtpyvcp to github.com/kcjengr/qtpyvcp.git:gh-pages
01:06 AM JamesW: yup
01:06 AM TurBoss: also went carzy and merged the rotation fix
01:06 AM JamesW: which means something screwy on my mill config as it is still showing imperial style 0.0000
01:06 AM TurBoss: :/
01:06 AM JamesW: seeing that a bit at the moment. It works but need to be a bit more specific in some cases for qtpyvcp to be happy
01:06 AM TurBoss: do you have master on your mill?
01:06 AM TurBoss: or 0.37 from pip?ยฟ
01:06 AM TurBoss: qtpyvcp --version will show
01:06 AM JamesW: should be running off a git clone
01:06 AM JamesW: will check version
01:06 AM TurBoss: then git pull
01:07 AM JamesW: on my dev box
01:07 AM TurBoss: yes!
01:07 AM JamesW: right - some fixing to do
01:08 AM TurBoss: thats from git
01:08 AM TurBoss: when a release comes will include thoose changes
01:09 AM JamesW: sorted
01:09 AM TurBoss: cool!
01:10 AM JamesW: running o ngit on both machines now
01:11 AM * TurBoss is idiot
01:11 AM TurBoss: trying to test python3 stuff without pull lol
01:23 AM JamesW[m]: ah
01:24 AM TurBoss: wow rene did a great job!
01:25 AM * TurBoss uploaded an image: Captura de pantalla de 2020-05-03 08-24-51.png (44KB) < https://matrix.org/_matrix/media/r0/download/jauriarts.org/GkjDGjmMavdttiDAvZqSnwHN >
01:25 AM TurBoss: wow ...
01:25 AM TurBoss: something
01:26 AM TurBoss: gona make me a eatly carajillo
01:26 AM TurBoss: * gona make me a early carajillo
01:41 AM * TurBoss uploaded an image: Captura de pantalla de 2020-05-03 08-40-37.png (291KB) < https://matrix.org/_matrix/media/r0/download/jauriarts.org/MOdRYzpBHuMMAztwboLJOdXq >
01:42 AM JamesW[m]: simple and to the point
01:42 AM JamesW[m]: but reminds me I need to start working on my visual look.
01:43 AM JamesW[m]: I think the colors and "flat" look of probe-basic appeals most.
01:43 AM JamesW[m]: are the buttons done with images?
01:43 AM JamesW[m]: on the image?
01:44 AM TurBoss: images took from 3d models
01:44 AM JamesW[m]: neat idea
01:44 AM JamesW[m]: I'm crap at the visual/graphical side of things
01:45 AM TurBoss: lol mee to
01:45 AM TurBoss: * lol mee too
01:46 AM JamesW[m]: i see there is a --develop mode. Does that auto detect changes to qss or do you need to do something to trigger a reload?
01:47 AM TurBoss: hmmmm
01:47 AM TurBoss: no idea
01:47 AM TurBoss: duno about --develop
01:49 AM JamesW[m]: " --develop Development mode. Enables live reloading of QSS styles.
01:49 AM JamesW[m]: "
01:49 AM TurBoss: oh
01:49 AM TurBoss: https://www.youtube.com/watch?v=jeOE2nt7R78
01:58 AM RacoonRider|MovT: <span class="d-mention d-user">TurBoss</span> Very nice screen. Pretty skeumorphic and only the base. The only one problem on that design is the waste of screen space. I like it but i also like probe-basic, because the possibility to present more information in a small space
01:58 AM TurBoss: yes TNC is just the first standalone VCP i did for fun
01:58 AM TurBoss: RacoonRider | MovT: rotation gotfix got merged in master
02:00 AM JamesW[m]: its funny as you get into this gui stuff you start getting more ideas.
02:01 AM JamesW[m]: I mean to finish the one I have started but I already have an idea for one that can more aggressively use the screen space I have available.
02:01 AM JamesW[m]: "be the onion grasshopper, think ... layers"
02:01 AM JamesW[m]: ROFL
02:02 AM JamesW[m]: well it was funny in my head with a mix of Shrek and Donkey voices
02:02 AM JamesW[m]: oh yeah the "voices"
02:05 AM RacoonRider|MovT: yea i have seen the fix. great solution to look in the ini for the measuretype
02:06 AM RacoonRider|MovT: 10 meters clipspace is also save
02:07 AM RacoonRider|MovT: for now ๐
02:07 AM RacoonRider|MovT: finished my spindle this night
02:08 AM RacoonRider|MovT: after e quite few tasks
02:09 AM * RacoonRider|MovT uploaded an image: 754492B4-79EB-488E-92F0-22671ADD9E7F_1_105_c.jpeg (286KB) < https://matrix.org/_matrix/media/r0/download/jauriarts.org/TJmXSBcbIXjNNMFNcMhHhHpi >
02:09 AM RacoonRider|MovT: boring is boring ๐ 300 yars one chip ๐
02:09 AM JamesW[m]: your BT20 home built spindle?
02:09 AM RacoonRider|MovT: Yea
02:09 AM JamesW[m]: thats impressive
02:09 AM JamesW[m]: how did you get tolerances that would need?
02:10 AM * RacoonRider|MovT uploaded an image: 9D6A0AB4-6435-4883-AAF8-E6E6740CD566_1_105_c.jpeg (219KB) < https://matrix.org/_matrix/media/r0/download/jauriarts.org/cJmewgETczdbiLgVPERuqzRV >
02:10 AM RacoonRider|MovT: some burss as metal art
02:10 AM * RacoonRider|MovT uploaded an image: 9D6A0AB4-6435-4883-AAF8-E6E6740CD566_1_105_c.jpeg (219KB) < https://matrix.org/_matrix/media/r0/download/jauriarts.org/wWLXvoaocvdQhvIUAspFfKYS >
02:10 AM RacoonRider|MovT: some burrs as metal art
02:10 AM * RacoonRider|MovT uploaded an image: 72DE0A11-155A-4A92-B620-58D020012ADC_1_105_c.jpeg (180KB) < https://matrix.org/_matrix/media/r0/download/jauriarts.org/jgkBCDwcbDqSoKrDwQCNgGFi >
02:10 AM RacoonRider|MovT: and the final product
02:11 AM RacoonRider|MovT: maybe i will change things after using a while but at the first throw it is okay so far
02:11 AM JamesW[m]: what is the rpm max?
02:13 AM RacoonRider|MovT: its scalable. now i have made a ratio of 2: 1 with the 24000 rpm chinesium spindle. So max is 12k rpm. The encoder is on his limit than. The bearings i used can run at 24k rpm
02:16 AM RacoonRider|MovT: i will see what is going on with the torque. I use a hitachi WJ200 with vector control. Maybe its a good couple. Otherwise i will update the mortor to a servodrive 3,5 kw or something
02:16 AM RacoonRider|MovT: some covers will be mde also for the belts and the spindle. I guess i will print them
02:27 AM RacoonRider|MovT: the interesting data are the motor current from the vfd. Sadly the gradient widget in probe-basic is only a dummy right now
02:28 AM TurBoss: yep โน๏ธ
02:41 AM Not-944e: [02qtpyvcp] 07TurBoss pushed 031 commit to 032to3 [+0/-0/ยฑ65] 13https://git.io/JfsID
02:41 AM Not-944e: [02qtpyvcp] 07TurBoss 03a298ef0 - run 2to3
02:41 AM Not-944e: [02qtpyvcp] 07TurBoss created branch 032to3 - 13https://git.io/fhCou
03:24 AM JamesW: okay --develop command line is cool. It picks up any new saved changes to qss. Awesome way to build up the style.
03:27 AM TurBoss: JamesW: how do you run the app with that arg?
03:27 AM TurBoss: editvcp?
03:27 AM JamesW: running linuxcnc not designer
03:27 AM JamesW: DISPLAY = qtpyvcp --develop
03:27 AM TurBoss: ahhhhh!
03:27 AM TurBoss: okay!
03:28 AM JamesW: changes qss, save and bam! lcnc show rerenders
03:28 AM JamesW: fecking awesome
03:28 AM TurBoss: wow
03:29 AM JamesW: the ultimate in css prototyping
05:03 AM jthornton_: morning
05:03 AM TurBoss: mornin
05:03 AM TurBoss: g
05:19 AM * JamesW[m] uploaded an image: image.png (173KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/kMBRjWiJidqcGCXwgIZoztzW >
05:19 AM JamesW[m]: millv6 meets probe-basic
05:22 AM JamesW[m]: obviously not done yet. But coming along
05:23 AM jthornton: what does start/stop and clear do?
05:29 AM JamesW[m]: clear == clear plot
05:31 AM JamesW[m]: start/stop is a placeholder at the moment. I'm thinking of deleting it
05:31 AM JamesW[m]: or it might become the toggle for showing program etents
05:32 AM JamesW[m]: extents
05:43 AM TurBoss: wow
05:43 AM TurBoss: ver cool!
05:44 AM JamesW[m]: getting there. Not too bad for a first effort.
05:44 AM JamesW[m]: obviously looking at how those smarter then me have done things.
05:47 AM JamesW[m]: looking at rules I can assign a style class. Need some reminders of what style classes are. can I define those in the qss and then assign class to the widget via the style-class rule?
06:22 AM JT[m]: your answer is in the tutorials section
06:30 AM JamesW[m]: thanks. A whole set of pages I hadn't found as I had been navigating off the left menu not going next/next/next
06:40 AM JamesW[m]: oh wow. That is soooo much cleaner.
06:51 AM JamesW[m]: a little cleaner. Anyway done for the night.
06:51 AM * JamesW[m] uploaded an image: image.png (157KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/PBJrepwouYNBODEUulIKiOBB >
06:53 AM TurBoss: we need a better program extents
06:53 AM TurBoss: ๐
07:00 AM JT[m]: morning TurBoss
07:00 AM TurBoss: hello JT
09:36 AM roguish[m]: wonderful morning all.
09:37 AM hazzy-m: morning
09:40 AM roguish[m]: JamesW: could you share your gui source? I'm curious how you've done some of your features, like a flashing button during probing....
11:32 AM JT[m]: happy chick day to all
02:15 PM JamesW[m]: <roguish[m] "JamesW: could you share your gui"> Roguish the led flashes not the button. The tool changed button and led are both from the Hal pallete in designer. They get linked to motion.digital outputs that are controlled by the gcode sub that overrides the M6
02:38 PM JamesW[m]: Once i have cleaned up the repo and the readme I plan to make the repo public.
04:04 PM JamesW[m]: ok that's annoying. If I am right it looks like PyQt5 (and maybe QT5) has dropped the QX11EmbedContainer implementation. So no ability to embed X11 screen in a running PyQT5 or QT5 based app. So if I have this correct the only way to get NativeCAM available is to reimplement in PyQT5. Now if someone can tell/show me I have this wrong I would be a VERY happy camper.
04:09 PM JamesW[m]: Under PyQt4 the solution looked to be quite simple: https://www.riverbankcomputing.com/static/Docs/PyQt4/qx11embedcontainer.html#details
04:09 PM JamesW[m]: but danged if I can find the equivalent in PyQt5
04:38 PM hazzy-m: JamesW: I think it is possible to embed x11 windows, but itโs not straight forward
04:38 PM hazzy-m: I think Chris got it to work in QtVCP
04:50 PM JamesW[m]: is QTVCP based on PyQt5?
04:50 PM JamesW[m]: sorry - brain fade at the moment.
04:51 PM JamesW[m]: yup it is
04:51 PM JamesW[m]: will have a snoop through his source tree for inspiration
04:56 PM JamesW: his probe routine is just using a python sub prog to call ngc code. So that's not it.
04:56 PM JamesW: will keep looking
04:58 PM JamesW[m]: https://github.com/LinuxCNC/linuxcnc/blob/master/lib/python/qtvcp/widgets/xembed.py
04:59 PM JamesW[m]: supported by https://github.com/LinuxCNC/linuxcnc/blob/master/lib/python/qtvcp/lib/xembed.py
05:01 PM JamesW[m]: not sure what the "rules" are but qtvcp seems to have worked out the base to do embeding. Adding the same to qtpyvcp should be very doable maybe with ouvert credit reference?
05:07 PM * jthornton has been on generator power for a few hours now
05:13 PM JamesW[m]: really?
05:14 PM JamesW[m]: big storm? Or a substation going pop?
05:18 PM JamesW[m]: here is some potential heresy, if I have pyvcp installed, can I import/utilise some of those classes inside a qtpyvcp?
05:18 PM JamesW[m]: I thinking about the xembed stuuf.
05:19 PM JamesW[m]: looking at the code its clearly designed to embed gladevcp apps like ncam
05:20 PM JamesW[m]: oops I mean qtvcp
05:21 PM JamesW[m]: typing one thing and thinking something different. Very clearly a Monday
05:28 PM hazzy-m: LOL
05:29 PM hazzy-m: Yes, it should be possible, but it might not be a good idea to import from QtVCP
05:29 PM hazzy-m: Depends on how much GTK stuff gets emboldened
05:30 PM hazzy-m: Involved*
05:42 PM JamesW[m]: ok. So maybe I try and figure out making a simplistic widget and and port that specific code and see what I can make happen. I guess a blank widget in Designer would be the first step. lol - why do I feel like I'm moving from crawling to sprinting.
05:45 PM JamesW[m]: the alternative is a full port of nativecam gui and that feels like a LOT of work. The bulk of the hard stuff is all in ngc files so that is all fully portable. Its just the gui wrapper and the logic to build up and populate the vars for the ngc's that would need serious rework
05:46 PM JamesW[m]: might need to power up glade and see if I can pick apart Ferns work to understand what would be invovled
05:53 PM jthornton: small severe storm 27% of the county is out of power 35% of the coop customers are out of power
06:51 PM JamesW[m]: <hazzy-m "LOL "> From a quick look at the code it doesn't directly enable GTK. That is all done in a separate program space but whatever app who's display you are embeding. The qtvcp part is all just PyQt5
06:52 PM JamesW[m]: <hazzy-m "Depends on how much GTK stuff ge"> oops - re above