submitted 2 years ago* (last edited 2 years ago) by to c/linux@lemmy.world
 

I make a lot of OC videos to post here on Lemmy. I'm on Nobara, which is currently on Fedora 39. I'm like an intermediate Linux user and mostly have experience with Debian. All of that being said, I'm up at odd hours.

If someone can help me figure out how to make a script to post a video to Lemmy when people are actually awake, that would be fantastic. It could be a lot, I know. I have no idea how to start here. It'd likely need a giant script, and API access along with possible sudo permissions.

I haven't been a developer since ~2002 and even then it was only Java web stuff. So, while I might understand things with some guidance I can no longer really get things like this running by myself.

If anyone has info or guidance on how to get this done, I would greatly appreciate it. I'm trying to get automatic uploads to at least catbox.moe, and if possible YouTube (though I know that is unlikely).

I know this is an odd one, but I know you all (if anyone) have the technical set to help me out here. I'll answer any questions I can!

all 22 comments

sorted by: hot top controversial new old
[+] 4 points 2 years ago* (last edited 1 year ago) (1 child)
  • [+] 2 points 2 years ago* (last edited 1 year ago) (2 children)
  • [–] [S] 2 points 2 years ago (1 child)

    I got this script to work! Yeah, I apologize for the lack of FOSS hosting for videos specifically, but there really aren't great options out there unless I run and maintain my own PeerTube instance, which I'm not prepared to do technically or financially. I managed to get it working, so I really thank you for the hours of work you put in! I was able to do two test posts that worked well once I had oauth stuff sorted.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago (1 child)

    I could possibly help you with all this. If you wanna DM me, we can set up time to work on this.

  • source
  • hideshow 2 child comments
  • [–] 3 points 2 years ago (2 children)

    Out of interest, why do the videos need to be posted at a specific time? As the world rotates, different people are awake all the time. Are they specific to your local area?

  • source
  • hideshow 4 child comments
  • [–] 5 points 2 years ago (1 child)

    The land, and thus the population of the earth aren't distrubuted equally across the globe. This causes a day-night cycle for online communities, despite being international, just due to the fact that the majority of humans live somewhat close together on a global scale.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago* (1 child)

    That's true, I hadn't thought of that. So the optimal time to get the most people waking up to your content is about 01:30 UTC for India waking up from 7am (UTC+5:30), or 23:00 UTC for China at UTC+8!

    https://distributionofthings.com/world-population-by-time-zone/

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago (1 child)

    If there really is an equal distribution of users across the globe, yes. But you also need to consider that most users here are probably from Europe or north america, but I'm not sure about that.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 years ago

    I've actually fully automated my uploads to youtube. It's been over 10 years since I set it up, but I can tell you I use youtube_upload from pip and I'm pretty sure I had to make an app password. I wrote a little bash script to make sure it's only done in the middle of the night. I'm not a dev either so if my dumb ass can figure it out, I'm sure you can too :)

  • source
  • [–] 2 points 2 years ago

    If you can figure out some way to upload it to your desired destination and get a link to it, maybe this bot can help you post on lemmy at a specific time of the week/day.

  • source
  • [–] 2 points 2 years ago (1 child)

    This Lemmy community has a great set of intro Linux lessons to get you started:

    https://programming.dev/c/linuxupskillchallenge

    The scheduling command for a one-time future run is the "at" command.

  • source
  • hideshow 2 child comments
  • [–] 2 points 2 years ago

    There's probably something than can be done with a curl command through the API.

  • source
  • [–] 0 points 2 years ago (1 child)

    Have you tried leveraging a LLM ai with prompts matching your needs? I've heard it can be quite effective, especially for someone with some programming background. E.g. "write me a python script that..."

  • source
  • hideshow 2 child comments