@MattFox I usually program more server-side stuff in PHP so it will take me time to wrap my brain around AngularJS, but I'm starting to try getting familiar with it.
I made that basic userModule based on the docs, but I don't see any good documentation beyond the basic scaffold. It would be cool to see a snippet or two of sample code.
My code to translate the raw voltage from the sensor to a %VWC is:
function percentMoisture( voltage )
{
if( voltage < 1.1 ) {
return ( 10 * voltage ) - 1;
}
else if ( voltage < 1.3 ) {
return ( 25 * voltage ) - 17.5;
}
else if ( voltage < 1.85 ) {
return ( 48.08 * voltage ) - 47.5;
}
else if ( voltage < 2.2 ) {
return ( 26.32 * voltage ) - 7.89;
}
else if ( voltage < 3 ) {
return ( 62.5 * voltage ) - 87.5;
}
else {
return 100;
}
}
This may be a silly question, but when I look up AngularJS, I keep getting notices that's depreciated in favour of the new Angular Framework. Do we know what this means for Mango down the road?
Thanks