- Create
snowflakes.js
underconfig\www
folder. - Add content from the gist
- Choose to run always (remove all below line 4),
- Or by date (remove line 4, optionally editing the dates you want the snowflakes to trigger)
- and save.
- In HA, go to Configuration > Lovelace Dashboards > Resources.
- Click 'Add Resources' and enter
local/snowflakes.js
(it's a JavaScript module) - Save it
- Enjoy the holidays
This file contains 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
const string host = "domainna.me"; | |
const string username = "chucknorris"; | |
const string password = "norrischuck"; | |
const string workingdirectory = "/highway/hell"; | |
const string uploadfile = @"c:\yourfilegoeshere.txt"; | |
Console.WriteLine("Creating client and connecting"); | |
using (var client = new SftpClient(host, port, username, password)) | |
{ | |
client.Connect(); |
OlderNewer