teepee changed the topic of #openscad to: OpenSCAD - The Programmers Solid 3D CAD Modeller | This channel is logged! | Website: http://www.openscad.org/ | FAQ: https://goo.gl/pcT7y3 | Request features / report bugs: https://goo.gl/lj0JRI | Tutorial: https://bit.ly/37P6z0B | Books: https://bit.ly/3xlLcQq | FOSDEM 2020: https://bit.ly/35xZGy6 | Logs: https://bit.ly/32MfbH5
juri_ has quit [Ping timeout: 260 seconds]
juri_ has joined #openscad
LordOfBikes has quit [Ping timeout: 260 seconds]
LordOfBikes has joined #openscad
mmu_man has quit [Ping timeout: 246 seconds]
jonasbits has quit [Quit: No Ping reply in 180 seconds.]
jonasbits has joined #openscad
snaked has joined #openscad
LordOfBikes has quit [Ping timeout: 246 seconds]
LordOfBikes has joined #openscad
qeed_ has joined #openscad
qeed has quit [Ping timeout: 246 seconds]
snakedGT has joined #openscad
snaked has quit [Ping timeout: 245 seconds]
J23k68 has quit [Quit: Client closed]
J23k68 has joined #openscad
snakedGT has quit [Ping timeout: 260 seconds]
J23k40 has joined #openscad
J23k68 has quit [Ping timeout: 246 seconds]
snakedGT has joined #openscad
t4nk_freenode has joined #openscad
InPhase_ has joined #openscad
vsellier_ has joined #openscad
tcurdt has quit [*.net *.split]
Lagopus has quit [*.net *.split]
siege has quit [*.net *.split]
Scopeuk has quit [*.net *.split]
castawayc has quit [*.net *.split]
vsellier has quit [*.net *.split]
InPhase has quit [*.net *.split]
t4nk_fn has quit [*.net *.split]
Scopeuk has joined #openscad
siege has joined #openscad
tcurdt has joined #openscad
Lagopus has joined #openscad
castawayc has joined #openscad
misterfish has joined #openscad
misterfish has quit [Ping timeout: 245 seconds]
Alexer has quit [Ping timeout: 250 seconds]
vsellier_ is now known as vsellier
misterfish has joined #openscad
hypera1r has quit [Remote host closed the connection]
hyperair has joined #openscad
qeed has joined #openscad
qeed_ has quit [Ping timeout: 246 seconds]
raboof has quit [*.net *.split]
sinned69150 has quit [*.net *.split]
gwillen has quit [*.net *.split]
Friithian has quit [*.net *.split]
Fleck has quit [*.net *.split]
lkcl has quit [*.net *.split]
gbruno has quit [*.net *.split]
Fleck has joined #openscad
sinned69150 has joined #openscad
raboof has joined #openscad
lkcl has joined #openscad
Friithian has joined #openscad
gwillen has joined #openscad
gbruno has joined #openscad
misterfish has quit [Ping timeout: 246 seconds]
misterfish has joined #openscad
pa has quit [Ping timeout: 260 seconds]
teepee_ has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
misterfish has quit [Ping timeout: 256 seconds]
mmu_man has joined #openscad
InPhase_ is now known as InPhase
snakedGT has quit [Quit: Leaving]
misterfish has joined #openscad
<J23k40> why is "Test()if(false)cube();module Test()echo($children);" 1 not 0 ?
Alexer has joined #openscad
<Scopeuk> in what way is it 1? I just get no geometry/output as the if(false) disables the cube geometry and we are then getting an empty child. Am I missing something?
<Scopeuk> I did
<Scopeuk> found the echo statement
<Scopeuk> what I'm not sure about is what echo($children) is expect to achieve
<Scopeuk> Objects are indexed via integers from 0 to $children-1. OpenSCAD sets $children to the total number of objects within the scope. Objects grouped into a sub scope are treated as one child. See example of separate children below and Scope of variables. Note that children(), echo() and empty block statements (including ifs) count as $children objects,
<Scopeuk> even if no geometry is present (as of v2017.12.23).
<Scopeuk> I guess that solves the what and not he why
hrberg has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
hrberg has joined #openscad
<gbruno> [github] rewolff opened pull request #4719 (Make FOV changeable via GUI) https://github.com/openscad/openscad/pull/4719
mmu_man has quit [Ping timeout: 245 seconds]
mmu_man has joined #openscad
L29Ah has left #openscad [#openscad]
mmu_man has quit [Ping timeout: 245 seconds]
mmu_man has joined #openscad
misterfish has quit [Ping timeout: 256 seconds]
little_blossom has quit [Quit: little_blossom]
<J23k40> Scopeuk  Yes .. so WHY again Ü
<J23k40> I have a recursive module that works with and without children - but  to differentiate  i need to use a switch ..  that children() is also counted as $children if empty is bad enough but that even an IF statement is counted is annoying.
little_blossom has joined #openscad
L29Ah has joined #openscad
L29Ah has left #openscad [#openscad]
<Scopeuk> I think empty is fine but empty blocks are not
<Scopeuk> So module(); returns 0
<Scopeuk> But module(){}; returns 1
<Scopeuk> teepee may have something more on they why
<J23k40> empty {} is still  0   but put if(0); in and it is 1 -   so you can not change the number of children
<J23k40> while * is removing them from the count
peeps[work] has joined #openscad
misterfish has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
pbsds has joined #openscad
teepee has joined #openscad
J23k40 has quit [Quit: Client closed]
J23k40 has joined #openscad
misterfish has quit [Ping timeout: 246 seconds]
J23k40 has quit [Quit: Client closed]
J23k40 has joined #openscad
mmu_man has quit [Ping timeout: 246 seconds]
mmu_man has joined #openscad
<teepee> ah, the interwebs works again \o/
<teepee> J23k40: there was some bigger discussion about what is empty and what is non-existing
<gbruno> [github] t-paul pushed 2 modifications (Merge pull request #4719 from rewolff/master Make FOV changeable via GUI) https://github.com/openscad/openscad/commit/2835e35fa93a36ffa757c5b80d95b0ed49703fc1
<gbruno> [github] t-paul closed pull request #4719 (Make FOV changeable via GUI) https://github.com/openscad/openscad/pull/4719
<gbruno> [github] t-paul closed pull request #4718 (Make FOV changeable via GUI (SHIFT + mouse wheel).) https://github.com/openscad/openscad/pull/4718
<J23k40> teepee i just wonder that if  "if" is not the tool to remove an object - maybe we could get one
<teepee> hmm, even an open issue https://github.com/openscad/openscad/issues/4529
<teepee> let me summarize... it's complicated :)
<J23k40> amazing that you find all these ..  my searches often fail or list endless issues
<J23k40> but i assumed that a different evaluation must be causing this  - so there is no easy fix for it
<teepee> a little bit of memory helps, the github search function is not exactly amazing
<teepee> the * behaviour is trivial though, that is handled already on parser level, so the processing never even sees that sub-tree
<teepee> wtf, 20+ notifications on twitter, Hackaday post or something?
<J23k40> hm at least conditional members of an array get removed echo([1,if(false)2,3]);
<J23k40> cool nice improvement
<teepee> looks like slightly surprising precedence
<teepee> argh 🤦
<teepee> oh, no, emoji not working :)
<J23k40> i can see an emoji .. but it is so small
<J23k40> haha
<teepee> I was wondering why I could not change the volume of my raspi playing youtube via that printed action button board
<teepee> right after clicking update on home-assistant :)
<J23k40> i don't follow
<teepee> the local version of "I can't open my garage door because the internet is down"
<J23k40> ah the home-assistant is also the local network
<teepee> pretty impressive software they are building
<J23k40> so the button board is not connected directly to the raspi media center
<teepee> yep, it has an esp32 running esphome, so it's trivial to connect to homeassistant
<teepee> so 2 buttons do volume control on the raspi, the 3 other control the night light led strip
<Scopeuk> I want to play with home automation stuff at some point
<J23k40> is that the button board using crossing wires as switch?
<Scopeuk> although at the moment my house has no sources and no destinations
<teepee> there's lots of standalone zigbee stuff
<Scopeuk> yeh
<Scopeuk> I have some wled stuff on order (going to take another crack at my clock and some twinkles https://shop.pimoroni.com/products/5m-flexible-rgb-led-wire-50-rgb-leds-aka-neopixel-ws2812-sk6812?variant=40384556171347
<Scopeuk> that may act as a suitable toy
<Scopeuk> I have been eyeing up some of ikeas home automation stuff
<Scopeuk> it appears to be quite community friendly
<teepee> J23k40: no, that that one, I've not tried printing it
<teepee> older build https://imgur.com/a/atlTmr0
<J23k40> arcade vibes going strong Ü
<teepee> Scopeuk: yep, just add an esp32 board and you can do fun stuff https://imgur.com/a/z9WQvHL
<Scopeuk> eI now have all of those bits on my desk (except the case)
<Scopeuk> I have esp8266 boards lying around
<Scopeuk> the wled controls I have coming are esp32
<teepee> wled is nice, but I decided to use esphome for a bit more control
<teepee> essentially all led animation stuff you can buy is waaaaaay to flashy/blinky for me
<teepee> the one doing ambient lighting here switches color of a single led every 2 seconds or so
<J23k40> with BLE and deep sleep you can even run them on battery
<teepee> yeah, although when driving 120 leds all bets are off :)
<teepee> nice example with the data-gnome Gina built for the CCCamp
<teepee> obviously I'd like an OpenSCAD version to print :D
<juri_> teepee: we can never have nice things. didn't you get the memo? ;)
To_Aru_Shiroi_Ne has quit []
<Scopeuk> J23k40 that's a nice looking piece of hardware
<teepee> nope, memos go straight to the bin ;-)
<teepee> not that it helps much
<J23k40> 3day batterie for the datagnome  sounds bad ..  with 5μA it should hold month
<teepee> oh? 3day, that's not a lot
<teepee> "30s wake cycle every 10min"
<teepee> I would not get much data if I have to swap batteries every 3 days.
<J23k40> 30s is long .. and if the WLAN is active the hole 30s ..  we had some hardware that only activated the WLAN for fractions of a second to transmit data
ToAruShiroiNeko has joined #openscad
<J23k40> whole
<teepee> normal wlan is slow to connect, worse with dhcp and all the fancy automated things
<teepee> maybe waiting for the zigbee version is the way to go :)
<J23k40> BLE has only limited range .. But you can  send WLAN to low energy without  the whole reconnecting afaik
<J23k40> they should get at least two weeks  battery ..  the  esp32 uses 25mA when full powered, strange
<teepee> multiple voltage converters probably increase that quite a bit
<J23k40> you should have a disconect fet for everything when going to sleep
<teepee> which is hard to do if the goal is to basically just plug together some stuff from amazon
<J23k40> just have two circuits .. one is using a FET that disconnects all sensor stuff before going to sleep ..  wake up power sensors an get data .. last second disconnect and activate WLAN to transmit ↦ then sleep for 10min
<J23k40> but maybe they only need that going for 3days
<J23k40> with a small solarcell this could go forever ..  my  cheap weather stations has just two AA and run for over a year transmitting TH
<teepee> yep, website mentions some special goals without going too much into detail
<teepee> I just got one of those sonos zigbee thermometer/hygrometer thingies with lcd display, that claims 2 years from a button cell with 2s readings
<teepee> if that's true, that's pretty impressive what they designed there
<J23k40> they got pretty good with low energy stuff
<J23k40> there are even some that can harvest enough energy from RF  or the button press
<J23k40> on the other hand i remember a car radio that had a blue LED always on .. draining your car battery in a week - Ü
<teepee> yeah, philips has such buttons, but they can shove their proprietary still hugely expensive stuff where I can't find it ;-)
misterfish has joined #openscad
misterfish has quit [Ping timeout: 260 seconds]
L29Ah has joined #openscad
Guest26 has joined #openscad
LordOfBikes has quit [Ping timeout: 260 seconds]
Guest26 has quit [Quit: Client closed]
LordOfBikes has joined #openscad