hassio-addons/haos-sbfspot/rootfs/usr/bin/sbfspot/taillog.sh
habuild 1688059878
2022.9.1 (#34)
* Update en.yaml

Update options

* Prettified Code!

* Update en.yaml

* Prettified Code!

* Update en.yaml

* Update Dockerfile

curl dev version -> rc3
chmod changed to folders instead of files
taillog auto logs to dev stdout.. it is just a timestamp now

* Update build.yaml

codenotary..

* Update taillog.sh

SBFspot 3.9.6 logging changes
no files anymore. so just timestamp.

* Update genBluetoothConfig.sh

converted to bashio

* Update genEthernetConfig.sh

converted to bashio

* Create genSenBlue

Created for Bluetooth inverter sensors

* Create genSenEth

created for Ethernet inverter sensors
makes set config

* Create mqttSensorConfig

making sensors..

* Create purgeSen

purge sensors...

* Create nanorc

nano defaults.

* Update finish

exit code changes

* Update run

sensors and bashio changes

* Update config.yaml

defaulted most options in bashio

* Update en.yaml

spaces...

* Update en.yaml

* Update en.yaml

* Update en.yaml

* Prettified Code!

* Update config.yaml

* Update DOCS.md

updating for changes and making pretty

* Update README.md

* Prettified Code!

* Add files via upload

* Update README.md

* Update DOCS.md

* Update en.yaml

* Prettified Code!

* Update README.md

* Prettified Code!

* Update DOCS.md

* Update en.yaml

* Prettified Code!

* Update README.md

* Update en.yaml

* Prettified Code!

* Update DOCS.md

* Update en.yaml

* Prettified Code!

* Update README.md

* Update .mdlrc

* Prettified Code!

* Update DOCS.md

* Update CHANGELOG.md

2022.9.1

* Update README.md

* Update DOCS.md

* Update README.md

* Update README.md

* Update DOCS.md

* Delete UI options.PNG

renaming

* Delete mqqt Capture.PNG

renaming

* Add files via upload

* Update README.md

* Update README.md

* Delete MQTTcapture.PNG

* Add files via upload

* Update README.md

* Update DOCS.md

* Update CHANGELOG.md

* Update README.md

* Update DOCS.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: habuild <habuild@users.noreply.github.com>
2022-09-06 20:28:32 +10:00

27 lines
906 B
Bash

#!/usr/bin/with-contenv bashio
cd /
#---- Create lognow variable
# lognow=$(date +%Y%m%d)
#---- set tail to log out to HA log
#---- Use lognow variable to select latest file
#---- Print tail of latest log
# message=$(echo "[SBFspot Upload Log Latest] $(tail -n1 /data/sbfspot/log/SBFspotUpload$lognow.log)")
# bashio::log.info "${message:="Hello World..."}"
## Print the message the user supplied, defaults to "Hello World..."
# Sleep until log updated from last SBFspot run
sleep 45
bashio::log.info "[SBFspot Upload Log Latest]" #$(tail -n1 "/data/sbfspot/log/SBFspotUpload$lognow.log")"
# just used for timestamp display in logs.
#---- Delete old log files
#busybox command for minus 1 day
#date +%Y%m%d -d @$(($(date +%s)-86400))
# remove log files older than 3 days no longer required, however keeping for the message in the log.
## find /data/sbfspot/log -mtime +3 -exec rm {} \;