Compare commits

..

No commits in common. "455b1509e55db018617908b20e735024c9f069c1" and "8ec46fc9ebd3ff33bfdf24c9e521c6526daf849e" have entirely different histories.

3 changed files with 1 additions and 31 deletions

3
02.nicsensor/nicsensor.sh Normal file → Executable file

@ -937,8 +937,7 @@ convert_tmp112_data(){
dec_val=$(echo "ibase=16; $upper_hex_value" | bc) dec_val=$(echo "ibase=16; $upper_hex_value" | bc)
binary_number=$(echo "ibase=16;obase=2;$upper_hex_value" | bc) binary_number=$(echo "ibase=16;obase=2;$upper_hex_value" | bc)
bin_length=$(echo $binary_number | awk '{print length($0)}') last_digit=$(echo $binary_number | cut -c 16)
last_digit=$(echo $binary_number | cut -c $bin_length)
if [ $last_digit -eq 0 ];then if [ $last_digit -eq 0 ];then
temp=$(echo "scale=4; $dec_val / 16 * 0.0625" | bc) temp=$(echo "scale=4; $dec_val / 16 * 0.0625" | bc)
elif [ $last_digit -eq 1];then elif [ $last_digit -eq 1];then

@ -1,9 +0,0 @@
@echo off
::配置Obsidian workspace地址
set obsidian_path="D:\Files\3.SelfLerning\Marcin's_Repo"
::切换目录到 Obsidian workspace下
D:
cd %obsidian_path%
::先拉取远端更新
git pull

@ -1,20 +0,0 @@
@echo off
::配置Obsidian workspace地址
set obsidian_path="D:\Files\3.SelfLerning\Marcin's_Repo"
::切换目录到 Obsidian workspace下
D:
cd %obsidian_path%
::判断是否有更新并将更新同步到远端仓库
for /f "delims=" %%a in ('git status --porcelain') do (
set HAS_CHANGES=1
goto end_loop
)
:end_loop
if defined HAS_CHANGES (
git add -A
git commit -m "Daily Sync from workbook"
git push origin main
) else (
echo Git has no changes.
)