[READ-ONLY] Mirror of https://github.com/FoxxMD/tautulli-notification-digest. Consolidate Tautuilli Notification agent events for discord
digest discord newsletter notification plex tautulli tautulli-api webhook
0

Configure Feed

Select the types of activity you want to include in your feed.

End hint for webhook url with external

FoxxMD (Aug 14, 2023, 5:14 PM EDT) 88b335a2 57eee535

+17
+1
package.json
··· 45 45 "express": "^4.17.1", 46 46 "formidable": "^2.1", 47 47 "got": "^11.8.2", 48 + "ip": "^1.1.8", 48 49 "pony-cause": "^1.1.1", 49 50 "sequelize": "^6.32.1", 50 51 "sqlite3": "^5.1.6",
+11
src/api/server.ts
··· 10 10 import {APIEmbed} from "discord.js"; 11 11 import dayjs from "dayjs"; 12 12 import {processPendingDigests} from "../common/funcs/processPendingDigests.js"; 13 + import IP from 'ip'; 13 14 14 15 const app = addAsync(express()); 15 16 const router = Router(); ··· 123 124 }); 124 125 125 126 apiLogger.info(`API listening on port ${port}`); 127 + 128 + 129 + try { 130 + const ipAddress = IP.address(); 131 + for (const digest of config.digests) { 132 + apiLogger.info(`HINT: Listening for Tautulli Webook URL to: http://${ipAddress}/${digest.slug}`); 133 + } 134 + } catch (e) { 135 + apiLogger.warn(new ErrorWithCause('Could not determine IP for logging hint!', {cause: e})); 136 + } 126 137 127 138 } catch (e) { 128 139 apiLogger.error('Server stopped with uncaught error');
+5
yarn.lock
··· 2114 2114 resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" 2115 2115 integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== 2116 2116 2117 + ip@^1.1.8: 2118 + version "1.1.8" 2119 + resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.8.tgz#ae05948f6b075435ed3307acce04629da8cdbf48" 2120 + integrity sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg== 2121 + 2117 2122 ip@^2.0.0: 2118 2123 version "2.0.0" 2119 2124 resolved "https://registry.yarnpkg.com/ip/-/ip-2.0.0.tgz#4cf4ab182fee2314c75ede1276f8c80b479936da"