Sytone's Ramblings

The occasional posts of a guy who plays with technology.

Extract tasks from Obsidian vault with Github actions

2021-08-11 3 min read Obsidian

I wanted to be able to pull my tasks out of my vault as a summary view, this can open up future automation options for me. However as I use multiple devices no single place was great and if I am on my phone it makes it harder.

As I am synchronizing my vault with git I decided to use a github workflow to help me out. I have it setup to run once a hour and extract all the tasks that are visible in the Obsidian Tasks plugin. These can be found as they always have the global task tag in them. In this example I use #task, update the regex as needed.

Continue reading

Cleanup Empty Azure Resource Groups

2021-06-23 1 min read Azure
I needed to cleanup empty groups on a test subscription I had, using the Azure Cloud shell the following script will do it for you. az group list -o tsv --query [].name | % {$resources = az resource list -g $_ -o table; if($resources) {"$_ has Resources"} else {"$_ has no resources"; az group delete -n $_ -y --no-wait}}

Import multiple calendars to Obsidian with Power Automate

2021-06-23 1 min read Obsidian
I have a family calendar in iCloud and my personal one in Outlook. I want to have a easy way to see them in Obsidian. To enable this scenario I have used Power Automate and the Template plugin with some javascript to generate the calendar for every day and then allow it to be imported. This model could be used for anything else you may want to import into Obsidian with the bonus of it working on mobile as well. Continue reading

Running Home Assistant on Windows in Docker

2021-03-21 6 min read Home Automation
I wanted to move HA to my home server, I can run Hyper-V images as needed but most service I run these days are in Docker, so looked up how to do this for Home Assistant. Introduction This was originally taken from [Guide] Hass.IO on Windows 10 WSL2 (No more VMs!) and updated as needed for how I run it on Windows. Basically this is HASS.IO running on Docker in Windows 10 WSL2 Continue reading

PowerShell Cron Script

2021-01-22 3 min read General
I was looking for a way to schedule jobs and yes windows has a task scheduler built in, however I wanted a bit more flexibility and less complexity. On the unix platform you can use cron. It is a scheduler that uses a simple format to define the time when the process should start and the process command. I was going to look at using it when I thought about the parsing that would be needed, I dod not want a system that much that I would write a cron parser. Continue reading
Older posts