- Added a new KV store API with endpoints for querying namespaces and key-value pairs. - Introduced fingerprinting functionality to hash and manage data fingerprints, allowing for efficient change detection. - Enhanced existing scripts to utilize the new fingerprinting capabilities, enabling conditional execution based on data changes. - Updated the web interface to include a dedicated KV page for managing key-value entries and displaying their details. - Improved overall user experience with pagination and search capabilities in the KV management interface.
30 lines
770 B
YAML
30 lines
770 B
YAML
name: RSS - selfh.st first item to ntfy
|
|
scripts:
|
|
- script: fetch-rss-feed.js
|
|
config:
|
|
url: "https://selfh.st/rss/"
|
|
outputVar: item
|
|
jsonata: items[0]
|
|
- script: fingerprint.js
|
|
config:
|
|
key: selfhst-latest
|
|
jsonata: "data.item.guid ? data.item.guid : data.item.link"
|
|
- script: jsonata.js
|
|
config:
|
|
expression: |
|
|
{
|
|
"data": {
|
|
"title": item.title,
|
|
"message": item.contentSnippet & "\n" & item.link,
|
|
"attach": item.mediaContent.url ? item.mediaContent.url : (item.mediaContent.$ ? item.mediaContent.$.url : undefined)
|
|
}
|
|
}
|
|
- script: ntfy.js
|
|
config:
|
|
url: https://ntfy.sh/scrunner
|
|
|
|
triggers:
|
|
- type: HTTP
|
|
method: POST
|
|
path: /selfhst-rss
|