• 0 Posts
  • 14 Comments
Joined 1 year ago
cake
Cake day: June 6th, 2023

help-circle
  • Dude, I have YouTube music and I literally am not able to change or upgrade to YouTube premium. They don’t let me, it links me to a useless empty page with no options. I don’t even know what the price is like. This whole subscription thing is a mess.

    I solved it by using YouTube revanced and have all premium functions and more. On desktop I wrote my own player. It’s so much better because their website is a mess. At this point do I really want to pay for features I know I won’t use?


  • Yep, the api in jellyfin is quite easy. Someone already sent the link to the docs. The specific endpoint you want is Sessions. You need to get yourself an api_key which you can get in the admin panel. Here is an example code in Python to give you an idea on how to use the api:

    #!/usr/bin/env python3
    
    import requests
    
    response = requests.get("http://your_jellyfin_server:8096/Sessions?api_key=your_api_key")
    json = response.json()
    
    currently_watching = []
    for session in json:
        if "NowPlayingItem" in session:
            currently_watching.append(session["UserName"])
    
    if currently_watching:
        print("Currently watching: " + ", ".join(currently_watching))
    else:
        print("Nobody is watching")
    

    If it is indeed Python that you want to use, you can adjust it to your needs depending on what you want it to output.

    Basically, it is as simple as looping through every current session and checking if they have a NowPlayingItem key which is only present when they have a video open (both playing and paused). It works very reliability, I am using it to automatically change my lights when I watch a long video or movie.



  • Ah, I am not familiar at all with Windows, so I honestly wouldn’t know. Does the Immich CLI even work on Windows?

    But going off by the comments and the parts I understand, I guess it could kinda work, assuming that the arguments are all correct. Although, it will try to upload all photos every time, regardless if Immich already has them or not. Which is not ideal but I believe Immich will filter out duplicated photos. But it’s worth checking if it’s indeed smart enough to do that.

    For the Immich command it will upload the files to an album called “Camera_Backup”. Not sure if that’s what you want. If not, then remove the -a flag. If you want to upload it to a specific album, then instead add ‘-A albumname’ (edit: I realize I might be wrong here. If you have multiple folders in Syncthing you’re backing up it will work differently)


  • I understand you. I also don’t use the auto upload feature as it’s creating more problems for me to solve than what it fixes. I already had Syncthing running anyway so I currently use that combo (except I manually sort through my photos on a semi-weekly basis before I upload it to Immich).

    If you want, I can cook up a little Python script you could stick into Cron to do all the tasks you described. I haven’t worked with the Immich CLI yet but I’m sure I can figure it out. Send me a message if you’re interested. I will probably use it myself as well.







  • I’m not the person you’re replying to but I have a fun answer for how I did it before I moved to password managers.

    I used to have just a single password, normal-ish password. Reasonable length, some numbers in there, random caps. But in order for me to have unique passwords on every site without losing track of all the unique password, I added the first and last letter of the name of the service at a specific point inside the password. My password was cryptic enough that if you would see it you wouldn’t immediately notice it. But for me it meant I had a single strong password that was easy to remember and unique for every service.

    I’m still kind of proud of that one, even though I don’t use that method anymore.


  • See my response a few comments down this thread. I found the counter and password-template too. I don’t have an iphone so I can’t test the app, but I very much think this app stores the ‘settings’ (counter, template) to generate the password. Based on what the api and CLI can do… it has to, surely. It also has the ability to retrieve a custom password.

    Of course the webapp in the link doesn’t do all of that. You’re stuck with 1 password in 1 format. Unless you change your secret and then all your passwords change.


  • In practice it can be anything though. It just gets thrown in one of the hashing functions. They way they describe it:

    user-key = SCRYPT( user-name, user-secret )

    site-key = HMAC-SHA-256( site-name . site-counter, user-key )

    site-password = PW( site-template, site-key )

    Which is kinda interesting, they mention site-counter and site-template. The counter indicates you can set it to a different value to get a different password for that site. But then obviously every time you want to recall that password, you have to set the site counter correctly. I guess the app will remember this, but the web version obviously doesn’t. But the gimmick is that it doesn’t store anything, but it seems for the app to work it does need to store the settings to generate your password.

    And also there is a site-template, which seems to hold various ways to generate passwords. Long, medium, short, pin, etc etc. With or without special symbols. It even mentions ‘saved personal password’ so I guess it can save custom passwords? Hopefully encrypted though.

    That sorta addresses the concerns I have. But obviously that means you need the app, the website doesn’t do all those extra things. And if you loose the app you loose your custom site counter and template.

    Also, the CLI version seems to happily store the username and secret on your pc? Or at least lets you read it from a file, so…

    (I haven’t actually used the app, just going through some docs and source code here)


  • So basically a fancy hashing algorithm to get the same password for the same information you give it. Neat idea but I am not convinced yet.

    If your Spectre secret gets somehow leaked (and your full name could easily be found), that’s immediately all your current and future passwords leaked. Now, this would in theory also be a problem with regular password managers that live in the cloud. Though smart ones hopefully add 2FA or similar before they let their users log in. For offline password managers the hacker would need your secret + database to get your password. That’s a lot harder. Spectre takes one of those items away, because the ‘database’ is their algorithm which literally runs on their webpage. All they need is a single password.

    What if a site you use leaks your password and you have to change your password for that site only? Spectre won’t help you with that, as it will still give you the (burned) password. So you manually have to remember which sites use Spectre for passwords and which ones don’t.

    Have any services that have been provided to you with a set password you can’t change (eg: some service your job uses), Spectre won’t help you with this as it won’t hold any custom passwords. Have any weird services that requires a specific length and/or forbidden characters Spectre does? Good luck, Spectre can’t help you here either. It’s not a password manager.