I can publish it to my GitHub repo so you can keep yours around. Don't mind me reusing your code in the app right?
Nope, you have my permission. If you're feeling generous, keep a credit to me in there somewhere. But I'm not that attached.
Yea, I'll keep credit in there.
You two can share the profits 50/50.
I'll take that deal.
I keep getting a divide by zero error when I try to calculate the profits to send.
New package is up and should be added to HPM soon.
Cool! Congrats on the adoption, @lewis.heidrick! And thanks for the
"donation," @chris.sader. Win-Win if I've ever seen it.
True LOL.
Try profit as the numerator rather than the denominator in a profit share fraction calculation
Results is undefined.
Yeah, exactly. And probably still zero really ha ha ha
Any way to have this code behave differently in different modes? I would like to turn it off when I'm having a party at my house.
The app supports a switch for enabling/disabling it; you could automate that using modes or another trigger.
So Auto Lock was the real reason no one came to my party last week - they couldn't get in!
I'm gonna sue @lewis.heidrick and @chris.sader for ALL their profits!!
Be careful you may end up paying them...
Sorry, I'm very new to this. How exactly would I go about doing this?
The app allows you to optionally designate a switch to control it's active state.
If you create a virtual switch and use that option to link it to the app, you can use Rule Machine, etc. to turn that switch on or off depending on the trigger you select (i.e. Mode Change).
He can use Simple Automations to turn the switch on and off via mode change as well, I assume. Likely easier to start w/Simple Automations for this if he's new to HE.
There you go taking the fun out of it , but yes Simple Automations would be better in this use case.