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).
<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
<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 ;-)