Nice scaling formulas. I was doing something similar, but that looks like it'd be more exact. If you were experimenting with the old envirocontrol on your Pi your SD card is probably dead! lol. Good thing they're like $2/GB now. And yeaaaas, I hope you enjoy the new easier to understand...