update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
PW_VERS='2.12.10-07272025'
|
PW_VERS='2.12.12-08122025'
|
||||||
|
|
||||||
noheader=' update service dailytemp confsync -r -report test '
|
noheader=' update service dailytemp confsync -r -report test '
|
||||||
|
|
||||||
|
|||||||
@@ -1464,8 +1464,6 @@ POWERLOGGER_SERVICE(){
|
|||||||
KYLE_AMP=`echo "scale=2; ${KYLE_AMP}/10" | tr -d $'\r' | bc`
|
KYLE_AMP=`echo "scale=2; ${KYLE_AMP}/10" | tr -d $'\r' | bc`
|
||||||
KYLE_WATT=`echo "scale=2; ${KYLE_VOLT}*${KYLE_AMP}" | tr -d $'\r' | bc`
|
KYLE_WATT=`echo "scale=2; ${KYLE_VOLT}*${KYLE_AMP}" | tr -d $'\r' | bc`
|
||||||
|
|
||||||
echo "HERE: '${KYLE_VOLT}','${KYLE_AMP}','${KYLE_WATT}'"
|
|
||||||
|
|
||||||
if [ "${KYLE_AMP}" != "" ]; then
|
if [ "${KYLE_AMP}" != "" ]; then
|
||||||
|
|
||||||
QRY="INSERT INTO power_data (sensorid, date, volt, amp, watt) VALUES ('${PW_POWERSENSOR_ID['KP-Power']}',CONVERT_TZ('${LogDataTime}', 'America/Chicago', 'UTC'),'${KYLE_VOLT}','${KYLE_AMP}','${KYLE_WATT}')"
|
QRY="INSERT INTO power_data (sensorid, date, volt, amp, watt) VALUES ('${PW_POWERSENSOR_ID['KP-Power']}',CONVERT_TZ('${LogDataTime}', 'America/Chicago', 'UTC'),'${KYLE_VOLT}','${KYLE_AMP}','${KYLE_WATT}')"
|
||||||
|
|||||||
Reference in New Issue
Block a user