From 76dbe652e801bbf85f28b433e228754e30bcddf5 Mon Sep 17 00:00:00 2001 From: Neil Tonge Date: Thu, 12 Mar 2020 18:13:19 +0000 Subject: Add Unraid + Netatmo Energy recipes (#65) * Add Unraid plugin * Add Netatmo Energy plugin * Update plugins based on requests * Resolve issues --- uncompressed/unraid/README.md | 3 +++ uncompressed/unraid/icon.png | Bin 0 -> 101230 bytes uncompressed/unraid/icon.svg | 20 ++++++++++++++++++++ uncompressed/unraid/index.js | 6 ++++++ uncompressed/unraid/package.json | 16 ++++++++++++++++ uncompressed/unraid/webview.js | 11 +++++++++++ 6 files changed, 56 insertions(+) create mode 100644 uncompressed/unraid/README.md create mode 100644 uncompressed/unraid/icon.png create mode 100644 uncompressed/unraid/icon.svg create mode 100644 uncompressed/unraid/index.js create mode 100644 uncompressed/unraid/package.json create mode 100644 uncompressed/unraid/webview.js (limited to 'uncompressed/unraid') diff --git a/uncompressed/unraid/README.md b/uncompressed/unraid/README.md new file mode 100644 index 0000000..0900af3 --- /dev/null +++ b/uncompressed/unraid/README.md @@ -0,0 +1,3 @@ +# franz-recipe-unraid + +This is a recipe for [Unraid](unraid.com) that provides access to the dashboard. diff --git a/uncompressed/unraid/icon.png b/uncompressed/unraid/icon.png new file mode 100644 index 0000000..16023df Binary files /dev/null and b/uncompressed/unraid/icon.png differ diff --git a/uncompressed/unraid/icon.svg b/uncompressed/unraid/icon.svg new file mode 100644 index 0000000..b2bbebb --- /dev/null +++ b/uncompressed/unraid/icon.svg @@ -0,0 +1,20 @@ + + + + icon + Created with Sketch. + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/uncompressed/unraid/index.js b/uncompressed/unraid/index.js new file mode 100644 index 0000000..0c500c1 --- /dev/null +++ b/uncompressed/unraid/index.js @@ -0,0 +1,6 @@ +"use strict"; + +// just pass through Franz +module.exports = function (Franz) { + return Franz; +}; \ No newline at end of file diff --git a/uncompressed/unraid/package.json b/uncompressed/unraid/package.json new file mode 100644 index 0000000..df20561 --- /dev/null +++ b/uncompressed/unraid/package.json @@ -0,0 +1,16 @@ + +{ + "id": "unraid", + "name": "Unraid", + "version": "1.0.1", + "description": "Unraid dashboard", + "main": "index.js", + "author": "Neil Tonge ", + "license": "MIT", + "repository": "https://github.com/rctneil/franz-recipe-unraid", + "config": { + "serviceURL": "{teamId}", + "hasNotificationSound": false, + "hasTeamId": true + } +} \ No newline at end of file diff --git a/uncompressed/unraid/webview.js b/uncompressed/unraid/webview.js new file mode 100644 index 0000000..38695da --- /dev/null +++ b/uncompressed/unraid/webview.js @@ -0,0 +1,11 @@ +module.exports = (Franz) => { + + const getMessages = () => { + const messages = $('#jGrowl .jGrowl-notify').length; + + Franz.setBadge(messages - 1); + } + + Franz.loop(getMessages); + +}; \ No newline at end of file -- cgit v1.2.3-70-g09d2