From c6ba2158a5ae1bf93d0c165cc07037682f540173 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Mon, 30 Dec 2024 17:06:51 -0500 Subject: [PATCH] feat: More presentation slides. --- Presentation.md | 74 +++++++++++++++++++++++++++++++++++++++-- bin/run | 16 ++++++++- files/diff.json | 34 +++++++++++++++++++ files/hvac.json | 34 +++++++++++++++++++ files/symposium.dstheme | 1 + img/gif/diff.gif | 3 ++ img/gif/history.gif | 4 +-- img/gif/hvac.gif | 3 ++ img/hvac_system.png | 3 ++ justfile | 3 ++ tapes/diff.tape | 26 +++++++++++++++ tapes/history.tape | 12 ++++--- tapes/hvac.tape | 25 ++++++++++++++ 13 files changed, 228 insertions(+), 10 deletions(-) create mode 100644 files/diff.json create mode 100644 files/hvac.json create mode 100644 files/symposium.dstheme create mode 100644 img/gif/diff.gif create mode 100644 img/gif/hvac.gif create mode 100644 img/hvac_system.png create mode 100644 tapes/diff.tape create mode 100644 tapes/hvac.tape diff --git a/Presentation.md b/Presentation.md index 73be455..9714f51 100644 --- a/Presentation.md +++ b/Presentation.md @@ -1,5 +1,5 @@ autoscale: true -footer: ![house](./img/SketchupHouse.png) *2025 Symposium* +footer: ![house](./img/SketchupHouse.png) **_2025 Symposium_** slidenumbers: false build-lists: false @@ -103,8 +103,8 @@ to remove heat from a liquid via a vapor-compression or absorption refrigeration # Fun Facts -| | Density | Specific Heat | -| --------- | ------------------------- | ------------------------------ | +| | Density | Specific Heat | +| ----------------- | ----------------------------------- | ------------------------------ | | Air1 | 0.075lb/ft3 | 0.24btu/lb | | Water2 | 62.37lb/ft3 | 1.0btu/lb | @@ -113,6 +113,8 @@ to remove heat from a liquid via a vapor-compression or absorption refrigeration `https://hvacrschool.com/sensible-heat-in-air-and-water` +^ Can anyone tell me why this matters? + --- # Fun Facts @@ -143,3 +145,69 @@ _Source: **Modern Hydronic Heating**, by: John Siegenthaler, P.E._ ![fit](./img/house_detail.jpg) --- +[.footer:] + +![](./img/gif/hvac.gif) + +--- + +# HVAC Key Characteristics + +A well-designed HVAC (Heating, Ventilation, and Air Conditioning) system provides several key benefits, including: + +1. **Comfort**: Maintains a consistent and comfortable temperature and humidity levels throughout the space. +2. **Indoor Air Quality**: Improves air quality by filtering out pollutants, allergens, and other contaminants, while also providing proper ventilation to bring in fresh air. +3. **Energy Efficiency**: Optimizes energy use, reducing utility bills and energy waste through the use of energy-efficient equipment and proper system design. +4. **Zoning Control**: Allows for the creation of different temperature zones in larger buildings, enabling tailored comfort levels in different areas. + +--- + +# HVAC Key Characteristics + +5. **Humidity Control**: Helps to regulate humidity levels, preventing issues such as mold growth and structural damage. +6. **Noise Reduction**: Designed to minimize operational noise, providing a quieter indoor environment. +7. **Reliability**: Incorporates durable components and proper system sizing to ensure consistent performance and reduce the likelihood of breakdowns. +8. **Scalability**: Can be designed to accommodate future expansion or changes in usage, making it flexible for evolving needs. + +--- + +# HVAC Key Characteristics + +9. **Automation and Smart Controls**: Integrates advanced controls and smart technology for optimized performance, scheduling, and remote management. +10. **Safety**: Incorporates safety features to prevent issues such as carbon monoxide buildup and gas leaks, ensuring safe operation. +11. **Maintenance Ease**: Designed for easy access to components for routine maintenance, inspections, and repairs. +12. **Environmental Responsibility**: Utilizes eco-friendly refrigerants and practices to minimize environmental impact. + +_A well-designed HVAC system is essential for providing a comfortable, healthy, and efficient indoor environment._ + +--- + +![fit](./img/hvac_system.png) + +--- +[.footer:] + +![](./img/gif/diff.gif) + +--- + +# Key Differences + +### _Here are some key benefits:_ + +1. **Energy Efficiency**: Chillers, especially when combined with modern controls and variable frequency drives, can be more energy-efficient than conventional HVAC systems. They often consume less energy, leading to lower operating costs. +2. **Scalability**: Chiller systems can be easily scaled to meet varying cooling loads. You can add or remove chillers based on demand, making them suitable for buildings with fluctuating cooling needs. +3. **Flexibility**: Chillers can provide cooling for multiple spaces or zones within a facility efficiently and can be used in a variety of applications, including process cooling and specialized environments. +4. **Integration with Renewable Energy**: Chiller systems can be integrated with renewable energy sources, such as solar or wind, enhancing their overall efficiency and sustainability. +5. **Water-Cooled Options**: Many chiller systems are water-cooled, which can be more efficient than air-cooled systems, particularly in larger settings. Water has a higher thermal capacity than air, leading to more effective heat exchange. + +#### _Chiller systems offer several advantages over traditional HVAC systems._ +--- + +# Key Differences + +6. **Reduced Environmental Impact**: Chillers can use refrigerants that have less environmental impact compared to some traditional HVAC systems. They can also be designed to minimize energy consumption, further reducing their carbon footprint. +7. **Consistent Temperature Control**: Chillers provide more consistent cooling due to their ability to modulate cooling output based on demand, leading to improved comfort in living and working environments. +8. **Space Saving**: In certain applications, chillers can save on space by centralizing cooling. They can be placed away from conditioned spaces, whereas traditional systems may require larger equipment to be located within these spaces. +9. **Longevity and Reliability**: Chiller systems are generally robust and, if properly maintained, can have a longer lifespan than traditional HVAC units. Their design often allows for easier maintenance and repair. +10. **Advanced Control Systems**: Chiller systems often incorporate advanced building management systems, enabling better monitoring, automation, and integration with other building systems for improved overall performance. diff --git a/bin/run b/bin/run index 3b933f7..e4568f7 100755 --- a/bin/run +++ b/bin/run @@ -10,7 +10,10 @@ zparseopts -D -E -- \ -show-history=showhistory \ -show-me-the-chillers=showchillers \ -ask-chat-gpt:=askgpt \ - -output:=outputFile + -output:=outputFile \ + -show-hvac-characteristics=showhvac \ + -copy-gpt-output:=copygpt \ + -show-the-diff-yo=showdiff ######################### Helpers ######################### @@ -24,6 +27,11 @@ function spinner { gum spin --title "$1" -- sleep "${2:-5}" } +function getGptOutput { + local json=$1 + echo "$(cat "files/$json" | jq '.["choices"][0]["message"]["content"]')" +} + function parseGpt { local json=$1 local header=$2 @@ -69,4 +77,10 @@ elif [ ! -z "$askgpt" ]; then local file="${outputFile[-1]}" spinner "Asking ChatGPT..." askChatGpt $question $file +elif [ ! -z "$showhvac" ]; then + echo "$(parseGpt 'hvac.json' '# HVAC Components')" | gum format | gum pager +elif [ ! -z "$copygpt" ]; then + echo "$(getGptOutput ${copygpt[-1]})" | pbcopy +elif [ ! -z "$showdiff" ]; then + echo "$(parseGpt 'diff.json' '# Key Differences')" | gum format | gum pager fi diff --git a/files/diff.json b/files/diff.json new file mode 100644 index 0000000..d08c9e8 --- /dev/null +++ b/files/diff.json @@ -0,0 +1,34 @@ +{ + "id": "chatcmpl-AkHYYGXNthO9uOkBhIJhLtA8uUBBj", + "object": "chat.completion", + "created": 1735593938, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "Chiller systems offer several advantages over traditional HVAC systems. Here are some key benefits:\n\n1. **Energy Efficiency**: Chillers, especially when combined with modern controls and variable frequency drives, can be more energy-efficient than conventional HVAC systems. They often consume less energy, leading to lower operating costs.\n\n2. **Scalability**: Chiller systems can be easily scaled to meet varying cooling loads. You can add or remove chillers based on demand, making them suitable for buildings with fluctuating cooling needs.\n\n3. **Flexibility**: Chillers can provide cooling for multiple spaces or zones within a facility efficiently and can be used in a variety of applications, including process cooling and specialized environments.\n\n4. **Integration with Renewable Energy**: Chiller systems can be integrated with renewable energy sources, such as solar or wind, enhancing their overall efficiency and sustainability.\n\n5. **Water-Cooled Options**: Many chiller systems are water-cooled, which can be more efficient than air-cooled systems, particularly in larger settings. Water has a higher thermal capacity than air, leading to more effective heat exchange.\n\n6. **Reduced Environmental Impact**: Chillers can use refrigerants that have less environmental impact compared to some traditional HVAC systems. They can also be designed to minimize energy consumption, further reducing their carbon footprint.\n\n7. **Consistent Temperature Control**: Chillers provide more consistent cooling due to their ability to modulate cooling output based on demand, leading to improved comfort in living and working environments.\n\n8. **Space Saving**: In certain applications, chillers can save on space by centralizing cooling. They can be placed away from conditioned spaces, whereas traditional systems may require larger equipment to be located within these spaces.\n\n9. **Longevity and Reliability**: Chiller systems are generally robust and, if properly maintained, can have a longer lifespan than traditional HVAC units. Their design often allows for easier maintenance and repair.\n\n10. **Advanced Control Systems**: Chiller systems often incorporate advanced building management systems, enabling better monitoring, automation, and integration with other building systems for improved overall performance.\n\nThese advantages make chillers an increasingly popular choice for commercial, industrial, and institutional applications, particularly in larger buildings or facilities with complex cooling requirements.", + "refusal": null + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 28, + "completion_tokens": 455, + "total_tokens": 483, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0aa8d3e20b" +} diff --git a/files/hvac.json b/files/hvac.json new file mode 100644 index 0000000..fa6f5dd --- /dev/null +++ b/files/hvac.json @@ -0,0 +1,34 @@ +{ + "id": "chatcmpl-AkGK5V6VsfhSr0CsHguPdCUpvWw3i", + "object": "chat.completion", + "created": 1735589197, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "A well-designed HVAC (Heating, Ventilation, and Air Conditioning) system provides several key benefits, including:\n\n1. **Comfort**: Maintains a consistent and comfortable temperature and humidity levels throughout the space.\n\n2. **Indoor Air Quality**: Improves air quality by filtering out pollutants, allergens, and other contaminants, while also providing proper ventilation to bring in fresh air.\n\n3. **Energy Efficiency**: Optimizes energy use, reducing utility bills and energy waste through the use of energy-efficient equipment and proper system design.\n\n4. **Zoning Control**: Allows for the creation of different temperature zones in larger buildings, enabling tailored comfort levels in different areas.\n\n5. **Humidity Control**: Helps to regulate humidity levels, preventing issues such as mold growth and structural damage.\n\n6. **Noise Reduction**: Designed to minimize operational noise, providing a quieter indoor environment.\n\n7. **Reliability**: Incorporates durable components and proper system sizing to ensure consistent performance and reduce the likelihood of breakdowns.\n\n8. **Scalability**: Can be designed to accommodate future expansion or changes in usage, making it flexible for evolving needs.\n\n9. **Automation and Smart Controls**: Integrates advanced controls and smart technology for optimized performance, scheduling, and remote management.\n\n10. **Safety**: Incorporates safety features to prevent issues such as carbon monoxide buildup and gas leaks, ensuring safe operation.\n\n11. **Maintenance Ease**: Designed for easy access to components for routine maintenance, inspections, and repairs.\n\n12. **Environmental Responsibility**: Utilizes eco-friendly refrigerants and practices to minimize environmental impact.\n\nA well-designed HVAC system is essential for providing a comfortable, healthy, and efficient indoor environment.", + "refusal": null + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 29, + "completion_tokens": 344, + "total_tokens": 373, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0aa8d3e20b" +} diff --git a/files/symposium.dstheme b/files/symposium.dstheme new file mode 100644 index 0000000..231db8b --- /dev/null +++ b/files/symposium.dstheme @@ -0,0 +1 @@ +{"creationDate":1735595730.870266,"name":"Copy of Olive Green","type":1,"customizations":{},"baseTheme":{"identifier":"olive green","variantIdentifier":"scheme6"},"importDate":1735595730.870266,"baseCustomizations":{"background":{"color":{"blue":1,"green":0.31308263539999998,"red":0.41514921189999998},"__deckset_model_version":0},"text":{"lineHeight":1,"color":{"green":1,"red":0.99999600649999998,"blue":1},"textAlignment":0,"textScale":1,"__deckset_model_version":0,"font":{"fullName":"AvenirNextCondensed-DemiBold","familyName":"Avenir Next Condensed","memberName":"Demi Bold"}},"footer":{"textScale":1.5000001000000001,"lineHeight":1,"textAlignment":1,"__deckset_model_version":0,"color":{"red":0.99999600649999998,"blue":1,"green":1}},"header":{"font":{"familyName":"Inconsolata Nerd Font","memberName":"Bold","fullName":"InconsolataNF-Bold"},"textScale":1.5000001000000001,"__deckset_model_version":0,"color":{"blue":1,"red":1,"green":0.2527923882},"lineHeight":1,"textAlignment":0},"code":{"font":{"familyName":"Avenir Next Condensed","fullName":"AvenirNextCondensed-Italic","memberName":"Italic"},"__deckset_model_version":0,"seed":0,"colors":[{"green":1,"red":0.50196078431372548,"blue":1},{"red":0.75294117647058822,"blue":0.75294117647058822,"green":0.75294117647058822},{"blue":0.52549019607843139,"red":1,"green":0.94901960784313721},{"green":0.8901960784313725,"red":0.20784313725490197,"blue":0.50588235294117645},{"blue":0.50588235294117645,"red":0.20784313725490197,"green":0.8901960784313725}],"lineHeight":1,"colorMode":{"manual":{}}}},"identifier":"4D978EE2-4D71-426A-9A5E-F0443868EF16"} \ No newline at end of file diff --git a/img/gif/diff.gif b/img/gif/diff.gif new file mode 100644 index 0000000..e6fa729 --- /dev/null +++ b/img/gif/diff.gif @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16d3ac0a655dc5003de0e9bc233e89cc30f5799755ba07b8086719366b47d515 +size 429748 diff --git a/img/gif/history.gif b/img/gif/history.gif index 21408b7..e62adeb 100644 --- a/img/gif/history.gif +++ b/img/gif/history.gif @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7e3bd832971489bfc425a878d3bb4dc1842ee560e8c699d8bda71c9308cdef4d -size 829356 +oid sha256:76d58c7f372dbc0ecda273b0bd76c4e9e2195da975941bd0a4979dddf34642f8 +size 502241 diff --git a/img/gif/hvac.gif b/img/gif/hvac.gif new file mode 100644 index 0000000..28c7954 --- /dev/null +++ b/img/gif/hvac.gif @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0421db9792fb4e80635f32e5a4a2ed25cfa4734ab144d516bdb3edae2b1a6ecf +size 440362 diff --git a/img/hvac_system.png b/img/hvac_system.png new file mode 100644 index 0000000..3fd0c8b --- /dev/null +++ b/img/hvac_system.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e731bca7b265c94e0ae2d64213b5274f52706460b2f1da0365439b91a5f4f60f +size 135141 diff --git a/justfile b/justfile index a960e36..e4c3327 100644 --- a/justfile +++ b/justfile @@ -20,3 +20,6 @@ ask-gpt question: convert-to-gif path output: magick path output + +copy-gpt-output file: + @bin/run --copy-gpt-output {{file}} diff --git a/tapes/diff.tape b/tapes/diff.tape new file mode 100644 index 0000000..09ac306 --- /dev/null +++ b/tapes/diff.tape @@ -0,0 +1,26 @@ +Output img/gif/diff.gif + +Set Shell "zsh" +Set FontSize 32 +Set Width 1920 +Set Height 1080 +Set Theme "Catppuccin Mocha" +Set Margin 20 +Set MarginFill "#6B50FF" +Set Padding 4 +Set CursorBlink false +Set PlaybackSpeed 0.75 + +Type "just ask-chat-gpt 'Key advantages of chiller versus traditional HVAC system.' \" +Enter +Type "files/diff.json" +Enter +Sleep 5.2s +Hide +Type "clear" +Enter +Show +Type "bin/run --show-the-diff-yo" +Sleep 0.5s +Enter +Sleep 10s diff --git a/tapes/history.tape b/tapes/history.tape index c163437..165cb79 100644 --- a/tapes/history.tape +++ b/tapes/history.tape @@ -11,11 +11,15 @@ Set Padding 4 Set CursorBlink false Set PlaybackSpeed 0.75 -Type "just ask-gpt 'Tell me about the history of hydronic systems in 2 short paragraphs.' \" +Type "just ask-chat-gpt 'Tell me about the history of hydronic systems in 2 short paragraphs.' \" Enter -Type "> files/history.json && \" +Type "files/history.json" Enter +Sleep 5.2s +Hide +Type "clear" +Enter +Show Type "bin/run --show-history" Enter -Screenshot "img/history.png" -Sleep 20s +Sleep 10s diff --git a/tapes/hvac.tape b/tapes/hvac.tape new file mode 100644 index 0000000..71639ac --- /dev/null +++ b/tapes/hvac.tape @@ -0,0 +1,25 @@ +Output img/gif/hvac.gif + +Set Shell "zsh" +Set FontSize 32 +Set Width 1920 +Set Height 1080 +Set Theme "Catppuccin Mocha" +Set Margin 20 +Set MarginFill "#6B50FF" +Set Padding 4 +Set CursorBlink false +Set PlaybackSpeed 0.75 + +Type "just ask-chat-gpt 'List the key things provided by a well designed HVAC system.' \" +Enter +Type "files/hvac.json" +Enter +Sleep 5.2s +Hide +Type "clear" +Enter +Show +Type "bin/run --show-hvac-characteristics" +Enter +Sleep 10s