This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Host "AI-platform sparse checkout setup" | |
Write-Host "This will configure a new subfolder under the current folder to only contain a single application from the AI-platform repository." | |
Write-Host "This will also configure the folder to only pull the files for that application." | |
Write-Host "Folder willl be created in the current directory. If you want to create it elsewhere, please navigate to the desired location before running this script." | |
Write-Host "" | |
$folder = Read-Host -Prompt "Enter the name of the application you want to this repo for(case-sensitive)" | |
# Create folder and navigate to it | |
md $folder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- square: false | |
columns: 3 | |
type: grid | |
cards: | |
- type: custom:button-card | |
entity: input_text.husmodus | |
icon: mdi:sun-clock | |
color_type: card | |
aspect_ratio: 1/0.5 | |
color: var(--card-background-color) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: "Duggpunkt bad oppe" | |
icon: "mdi:thermometer" | |
unit_of_measurement: "°C" | |
state: > | |
{%set fuktighet = states('sensor.temperatur_bad_oppe_humidity') | float(0) %} | |
{%set temp = states('sensor.temperatur_bad_oppe_temperature') | float(0) %} | |
{%set x = (log(fuktighet/100) + (17.625 * temp)) / (243.04 + temp)%} | |
{{ ((243.04 * x) / (17.625 - x)) | round(2)}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "b89fb45572d6615c", | |
"type": "link in", | |
"z": "c47a770c26e3be71", | |
"name": "ChatGPTRandom", | |
"links": [], | |
"x": 85, | |
"y": 580, | |
"wires": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "3c403b0fd8ac9f67", | |
"type": "api-current-state", | |
"z": "c47a770c26e3be71", | |
"name": "Get price from Nordpool", | |
"server": "72b5aa9aa9eb914e", | |
"version": 3, | |
"outputs": 1, | |
"halt_if": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
binary_sensor: | |
- platform: template | |
sensors: | |
heating_status: | |
friendly_name: "Heating Status YOUR CLIMATE ENTITY" | |
value_template: > | |
{% if state_attr('climate.YOUR_CLIMATE_ENTITY_HERE','hvac_action') == 'heating' %} | |
on | |
{% else %} | |
off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary>Gets a <see cref="T:System.DateTime" /> object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).</summary> | |
/// <returns>An object whose value is the current UTC date and time.</returns> | |
[__DynamicallyInvokable] | |
public static DateTime UtcNow | |
{ | |
[SecuritySafeCritical, __DynamicallyInvokable] get | |
{ | |
if (!DateTime.s_isLeapSecondsSupportedSystem) | |
return new DateTime((ulong) (DateTime.GetSystemTimeAsFileTime() + 504911232000000000L | 4611686018427387904L)); | |
DateTime.FullSystemTime time = new DateTime.FullSystemTime(); |