mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-24 16:02:18 +00:00
Compare commits
12 commits
8dfff8f099
...
f2f2c5aa9f
Author | SHA1 | Date | |
---|---|---|---|
f2f2c5aa9f | |||
|
841767dd66 | ||
3e7c2ddbe8 | |||
cdc261b82e | |||
9a8c130c63 | |||
b5475f0574 | |||
39079ebde1 | |||
cec57e09d1 | |||
7497882d94 | |||
f98628bfce | |||
9ad14f2092 | |||
094fa7ec1a |
5 changed files with 14 additions and 8 deletions
2
build.sh
2
build.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Quick script to run local builds
|
# Quick script to run local builds
|
||||||
source .env
|
source .env
|
||||||
hugo --minify --environment local -D
|
hugo --environment local -D
|
||||||
npx torchlight
|
npx torchlight
|
||||||
python3 -m http.server --directory public 1313
|
python3 -m http.server --directory public 1313
|
||||||
|
|
||||||
|
|
|
@ -60,3 +60,6 @@ enableInlineShortcodes = true
|
||||||
tag = "tags"
|
tag = "tags"
|
||||||
series = "series"
|
series = "series"
|
||||||
|
|
||||||
|
[minify]
|
||||||
|
disableXML = true
|
||||||
|
minifyOutput = true
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: "Automating Security Camera Notifications With Home Assistant and Ntfy"
|
title: "Automating Security Camera Notifications With Home Assistant and Ntfy"
|
||||||
date: 2023-11-25
|
date: 2023-11-25
|
||||||
lastmod: 2023-11-27
|
lastmod: 2024-01-15
|
||||||
description: "Using the power of Home Assistant automations and Ntfy push notifications to level-up security camera motion detections."
|
description: "Using the power of Home Assistant automations and Ntfy push notifications to level-up security camera motion detections."
|
||||||
featured: true
|
featured: true
|
||||||
alias: automating-security-camera-notifications-with-home-assistant-and-ntfy
|
alias: automating-security-camera-notifications-with-home-assistant-and-ntfy
|
||||||
|
@ -25,7 +25,7 @@ I figured I could combine the excellent [Reolink integration for Home Assistant]
|
||||||
|
|
||||||
### Alert on motion detection
|
### Alert on motion detection
|
||||||
{{% notice note "Ntfy Integration" %}}
|
{{% notice note "Ntfy Integration" %}}
|
||||||
Since manually configuring ntfy in Home Assistant via the [RESTful Notifications integration](easy-push-notifications-with-ntfy/#notify-configuration), I found that a [ntfy-specific integration](https://github.com/ivanmihov/homeassistant-ntfy.sh) was available through the [Home Assistant Community Store](https://hacs.xyz/) addon. That setup is a bit more flexible so I've switched my setup to use it instead:
|
Since manually configuring ntfy in Home Assistant via the [RESTful Notifications integration](/easy-push-notifications-with-ntfy#notify-configuration), I found that a [ntfy-specific integration](https://github.com/ivanmihov/homeassistant-ntfy.sh) was available through the [Home Assistant Community Store](https://hacs.xyz/) addon. That setup is a bit more flexible so I've switched my setup to use it instead:
|
||||||
```yaml
|
```yaml
|
||||||
# configuration.yaml
|
# configuration.yaml
|
||||||
notify:
|
notify:
|
||||||
|
|
|
@ -10,9 +10,10 @@
|
||||||
{{- if ge $limit 1 -}}
|
{{- if ge $limit 1 -}}
|
||||||
{{- $pages = $pages | first $limit -}}
|
{{- $pages = $pages | first $limit -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
<!-- {{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} -->
|
||||||
<rss version="2.0"
|
<rss version="2.0"
|
||||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||||
|
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<channel>
|
<channel>
|
||||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||||
|
@ -40,7 +41,9 @@
|
||||||
{{ range (.GetTerms "tags") }}
|
{{ range (.GetTerms "tags") }}
|
||||||
<category>{{ .LinkTitle }}</category>{{ end }}
|
<category>{{ .LinkTitle }}</category>{{ end }}
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>{{ .Summary | plainify }}</description>
|
{{- $content := replaceRE "a href=\"(#.*?)\"" (printf "%s%s%s" "a href=\"" .Permalink "$1\"") .Content -}}
|
||||||
|
{{- $content = replaceRE "img src=\"(.*?)\"" (printf "%s%s%s" "img src=\"" .Permalink "$1\"") $content -}}
|
||||||
|
<description>{{ $content | html }}</description>
|
||||||
</item>
|
</item>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</channel>
|
</channel>
|
||||||
|
|
|
@ -6,14 +6,14 @@
|
||||||
|
|
||||||
[context.production]
|
[context.production]
|
||||||
command = """
|
command = """
|
||||||
hugo --minify
|
hugo
|
||||||
npm i @torchlight-api/torchlight-cli
|
npm i @torchlight-api/torchlight-cli
|
||||||
npx torchlight
|
npx torchlight
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[context.preview]
|
[context.preview]
|
||||||
command = """
|
command = """
|
||||||
hugo --minify --environment preview
|
hugo --environment preview
|
||||||
npm i @torchlight-api/torchlight-cli
|
npm i @torchlight-api/torchlight-cli
|
||||||
npx torchlight
|
npx torchlight
|
||||||
"""
|
"""
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
[context.drafts]
|
[context.drafts]
|
||||||
command = """
|
command = """
|
||||||
hugo --minify --environment drafts -D
|
hugo --environment drafts -D
|
||||||
npm i @torchlight-api/torchlight-cli
|
npm i @torchlight-api/torchlight-cli
|
||||||
npx torchlight
|
npx torchlight
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue