File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[ ![ dev Build] ( https://github.com/Inrixia/Floatplane-Downloader/actions/workflows/autoDev.yml/badge.svg?branch=dev )] ( https://github.com/Inrixia/Floatplane-Downloader/actions/workflows/autoDev.yml ) <br >
22
3- ### ** [ Live Downloader Metrics Dashboard] ( https://monitor.spookelton.net /public-dashboards/db0aec66747b4950b01b128916eb737e ) **
3+ ### ** [ Live Downloader Metrics Dashboard] ( https://monitor.hug.rip /public-dashboards/db0aec66747b4950b01b128916eb737e ) **
44
5- ![ Active Downloaders] ( < https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fprometheus.spookelton.net %2Fapi%2Fv1%2Fquery%3Fquery%3Dcount(instance)&query=data.result%5B0%5D.value%5B1%5D&label=Active%20Downloaders&color=rgb(115%2C%20191%2C%20105) > ) ![ Queued Videos] ( < https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fprometheus.spookelton.net %2Fapi%2Fv1%2Fquery%3Fquery%3Dsum(queued)&query=data.result%5B0%5D.value%5B1%5D&label=Queued%20Videos&color=rgb(255%2C%20152%2C%2048) > ) ![ Speed ] ( < https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftinyurl.com%2Fy2xksyyu&query=data.result%5B0%5D.value%5B1%5D&suffix=%20mb%2Fs&label=Current%20Speed&color=rgb(242%2C%2073%2C%2092 )> )
5+ ![ Active Downloaders] ( < https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fprometheus.hug.rip %2Fapi%2Fv1%2Fquery%3Fquery%3Dcount(instance)&query=data.result%5B0%5D.value%5B1%5D&label=Active%20Downloaders&color=rgb(115%2C%20191%2C%20105) > ) ![ Queued Videos] ( < https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fprometheus.hug.rip %2Fapi%2Fv1%2Fquery%3Fquery%3Dsum(queued)&query=data.result%5B0%5D.value%5B1%5D&label=Queued%20Videos&color=rgb(255%2C%20152%2C%2048) > )
66
77![ image] ( https://user-images.githubusercontent.com/6373693/115112327-2b69b680-9fd9-11eb-8239-45b30219f705.png ) <br >
88** This project is unofficial and not in any way affiliated with LMG** <br >
@@ -56,7 +56,7 @@ If you want to setup plex please follow the guide in the Wikis:
5656
5757## Images:
5858
59- ### ** [ Grafana Dashboard] ( https://monitor.spookelton.net /public-dashboards/db0aec66747b4950b01b128916eb737e ) ([ Template] ( https://github.com/Inrixia/Floatplane-Downloader/blob/dev/wiki/grafana.json ) )**
59+ ### ** [ Grafana Dashboard] ( https://monitor.hug.rip /public-dashboards/db0aec66747b4950b01b128916eb737e ) ([ Template] ( https://github.com/Inrixia/Floatplane-Downloader/blob/dev/wiki/grafana.json ) )**
6060
6161![ image] ( https://github.com/Inrixia/Floatplane-Downloader/assets/6373693/825038d9-ecd4-437a-bd54-74476415c430 )
6262
Original file line number Diff line number Diff line change 11{
22 "name" : " floatplane-plex-downloader" ,
3- "version" : " 5.17.0 " ,
3+ "version" : " 5.17.1 " ,
44 "private" : true ,
55 "type" : " module" ,
66 "scripts" : {
1414 "@inrixia/db" : " 2.0.2" ,
1515 "@inrixia/helpers" : " ^3.20.3" ,
1616 "@npmcli/package-json" : " ^7.0.4" ,
17- "@types/tough-cookie" : " ^4.0.5" ,
1817 "chalk-template" : " ^1.1.2" ,
1918 "default-import" : " ^2.0.8" ,
2019 "dotenv" : " ^17.2.3" ,
2120 "ffbinaries" : " ^1.1.6" ,
22- "floatplane" : " ^5.1.0 " ,
21+ "floatplane" : " ^5.1.1 " ,
2322 "html-to-text" : " ^9.0.5" ,
2423 "json5" : " ^2.2.3" ,
2524 "mime-types" : " ^3.0.2" ,
3130 "sanitize-filename" : " ^1.6.3" ,
3231 "semver" : " ^7.7.3" ,
3332 "stream-throttle" : " ^0.1.3" ,
34- "tough-cookie" : " 6.0.0" ,
35- "tough-cookie-file-store" : " ^3.2.1" ,
3633 "ws" : " ^8.18.3" ,
3734 "xmlbuilder2" : " ^4.0.3"
3835 },
Original file line number Diff line number Diff line change @@ -16,22 +16,24 @@ new Gauge({
1616
1717let socket : WebSocket | undefined ;
1818let reconnectTimeout : NodeJS . Timeout ;
19+ const targetsWs = "ws://targets.fpd.hug.rip" ;
1920export const initProm = ( instance : string ) => {
2021 if ( settings . metrics . contributeMetrics ) {
2122 const connect = ( ) => {
22- const onError = ( ) => {
23+ const onError = ( err : unknown ) => {
24+ console . warn ( `[${ targetsWs } ]` , err ) ;
2325 socket ?. terminate ( ) ;
2426 clearTimeout ( reconnectTimeout ) ;
2527 reconnectTimeout = setTimeout ( connect , 1000 ) ;
2628 } ;
2729 socket ?. terminate ( ) ;
28- socket = new WebSocket ( "ws://targets.monitor.spookelton.net" ) ;
30+ socket = new WebSocket ( targetsWs ) ;
2931 socket . on ( "open" , ( ) => socket ?. send ( instance ) ) ;
3032 socket . on ( "ping" , async ( ) => {
3133 try {
3234 socket ?. send ( await register . metrics ( ) ) ;
33- } catch {
34- onError ( ) ;
35+ } catch ( err : unknown ) {
36+ onError ( err ) ;
3537 }
3638 } ) ;
3739 socket . on ( "error" , onError ) ;
You can’t perform that action at this time.
0 commit comments