Skip to content

Instantly share code, notes, and snippets.

View cameri's full-sized avatar
∞/21M

Ricardo Cabral cameri

∞/21M
View GitHub Profile
diff --git a/webv2/damus.js b/webv2/damus.js
index 57e19dd..aae01ec 100644
--- a/webv2/damus.js
+++ b/webv2/damus.js
@@ -225,7 +225,7 @@ function was_pubkey_notified(pubkey, ev)
function should_add_to_home(ev)
{
- return ev.kind === 1 || ev.kind === 42 || ev.kind === 6
+ return ev.kind === 1 || ev.kind === 2 || ev.kind === 42 || ev.kind === 6
Dec 15 21:29:07.422  INFO nostr_rs_relay: Starting up from main
Dec 15 21:29:07.434  INFO nostr_rs_relay::server: listening on: 0.0.0.0:8080
Dec 15 21:29:07.436  INFO nostr_rs_relay::server: db writer created
Dec 15 21:29:07.437  INFO nostr_rs_relay::server: control message listener started
Dec 15 21:29:07.441  INFO nostr_rs_relay::db: Built a connection pool "client query" (min=4, max=128)
Dec 15 21:29:07.441  INFO nostr_rs_relay::db: Built a connection pool "event writer" (min=1, max=4)
Dec 15 21:29:07.441  INFO nostr_rs_relay::db: opened database "/usr/src/app/db/nostr.db" for writing
Dec 15 21:29:07.441  INFO nostr_rs_relay::schema: DB version = 8
Dec 15 21:29:07.441  INFO nostr_rs_relay::db: Enabling rate limits for event creation (50/sec)
Dec 15 21:29:12.261  INFO nostr_rs_relay::db: Could not parse hex range from author "tungstenite?"
@cameri
cameri / stale-sensor-detection-for-sensors.yaml
Last active January 3, 2026 22:12
Home Assistant Blueprint: Stale sensor detection
blueprint:
name: Stale "Last seen" Sensor Report
description: >
Checks timestamp sensors ending in " Last seen". Lists those older than the threshold
or marked as "unavailable", stripping the suffix and adding the days ago.
domain: automation
input:
days_threshold:
name: Days Offline Threshold
description: Sensors older than this many days will be reported.