diff --git a/content/posts/smart-rice-cooker.md b/content/posts/smart-rice-cooker.md index ea598ae..29fb013 100644 --- a/content/posts/smart-rice-cooker.md +++ b/content/posts/smart-rice-cooker.md @@ -180,10 +180,10 @@ Takes no input. Just a proxy to `Heat`, but only as a false bool. *Might* be used at the end of a recipe, unnecessary though. -Examples might be canceling an infinite temperature holding cycle (e.g rice warming). +Examples might be cancelling an infinite temperature holding cycle (e.g rice warming). ## Dependency Graph ![Dependency Connections][connections] -[connections]: /images/rice/connections.svg "Dependency Connections" +[connections]: /images/generated/rice/connections.svg "Dependency Connections" diff --git a/src/build.sh b/src/build.sh index b729707..00ffaf8 100755 --- a/src/build.sh +++ b/src/build.sh @@ -1,10 +1,14 @@ #!/bin/bash +__target='../static/images/generated/rice/connections.svg' + +mkdir -P "${__target}" + sed -e 's/\[depend_value\]/[color=blue]/' \ -e 's/\[proxy_value\]/\[color=deepskyblue\]/' \ -e 's/\[proxy_function\]/\[color=dodgerblue\]/' \ -e 's/\[documented\]/\[fillcolor=darkolivegreen1\]/' \ -e 's/\[done\]/\[fillcolor=chartreuse\]/' \ --e 's/\[depend_function\]/\[color=cornflowerblue\]/' connections.dot | fdp -Ln5 -Tsvg > '../static/images/rice/connections.svg' +-e 's/\[depend_function\]/\[color=cornflowerblue\]/' connections.dot | fdp -Ln5 -Tsvg > "${__target}" exit diff --git a/static/images/rice/connections.svg b/static/images/rice/connections.svg deleted file mode 100644 index d4e9dee..0000000 --- a/static/images/rice/connections.svg +++ /dev/null @@ -1,354 +0,0 @@ - - - - - - -%3 - - -cluster_key - -Key - - -cluster_doc - - - -cluster_sub - - - -cluster_directives - -Directives - - -cluster_primary - -Primary - - -cluster_secondary - -Secondary - - -cluster_directives_lighting - -Lighting - - -cluster_directives_temperature - -Temperature - - -cluster_sensor - -Sensors - - -cluster_api - -api - - -cluster_api_sensor - -sensor - - -cluster_recipe - -recipe - - -cluster_schedule - -schedule - - -cluster_settings - -settings - - -cluster_time - -time - - -cluster_lighting - -lighting - - -cluster_settings_recipe - -recipe - - - -Done - -Done - - - -Documented - -Documented - - - -Undocumented - -Undocumented - - - -Depend on value - -Depend on value - - - -Node - -Node - - - -Depend on value->Node - - - - - -Proxy to value - -Proxy to value - - - -Proxy to value->Node - - - - - -Depend on function - -Depend on function - - - -Depend on function->Node - - - - - -Proxy to function - -Proxy to function - - - -Proxy to function->Node - - - - - -Sleep - -Sleep - - - -Heat - -Heat - - - -All Kill - -All Kill - - - -Lighting Kill - -Lighting Kill - - - -All Kill->Lighting Kill - - - - - -Temperature Kill - -Temperature Kill - - - -All Kill->Temperature Kill - - - - - -Lighting Change - -Lighting Change - - - -Temperature Change - -Temperature Change - - - -Temperature Change->Sleep - - - - - -Temperature Change->Heat - - - - - -Temperature - -Temperature - - - -Temperature Change->Temperature - - - - - -Temperature Hold - -Temperature Hold - - - -Temperature Hold->Sleep - - - - - -Temperature Hold->Heat - - - - - -Temperature Hold->Temperature - - - - - -Temperature Kill->Heat - - - - - -/api/sensor/temperature - -temperature - - - -/api/sensor/temperature->Temperature - - - - - -/api/recipe/list - -list - - - -/api/recipe/start - -start - - - -/api/recipe/kill - -kill - - - -/api/recipe/kill->All Kill - - - - - -/api/recipe/schedule/add - -add - - - -/api/recipe/schedule/delete - -delete - - - -/api/recipe/schedule/list - -list - - - -/api/settings/time/set - -set - - - -/api/settings/lighting/list - -list - - - -/api/settings/lighting/set - -set - - - -/api/settings/recipe/set - -set - - - diff --git a/update.sh b/update.sh index a132408..d5bc979 100755 --- a/update.sh +++ b/update.sh @@ -2,6 +2,10 @@ git pull +find src -iname '*.sh' | while read -r __file; do + time ./${1} +done + HUGO_ENV=production hugo --gc --minify exit