cereals

joined 2 years ago
MODERATOR OF
[–] cereals@discuss.tchncs.de 30 points 2 months ago* (last edited 2 months ago) (1 children)

On android, urlcheck is a great app to modify URLs before sharing or opening. For this problem, you can use the json editor, and add the following two entries with small a regex I wrote:

  "shorten Youtube": {
    "regex": "^https?:\/\/(?:[a-z0-9-]+\\.)*?youtube\\.com\/(.*)&.*",
    "replacement": [
      "https:\/\/youtube.com\/$1"
    ],
    "enabled": true
  },
  "shorten Youtu.be": {
    "regex": "^https?:\/\/(?:[a-z0-9-]+\\.)*?youtu\\.be\/([^?]*)?.*",
    "replacement": [
      "https:\/\/youtube.com\/watch?v=$1"
    ],
    "enabled": true
  },

A button to shorten the link appears in urkcheck when the pattern matches. You can all auto shorten them by replacing "enabled": true
With
"automatic": true

[–] cereals@discuss.tchncs.de 3 points 1 year ago* (last edited 1 year ago) (1 children)

Check your DHCP Server and disable DHCPv6. The raspi shouldn't get a ipv6 then and you won't have this problem in the future with other devices.

edit: and restart the pi after disabling DHCPv6

[–] cereals@discuss.tchncs.de 2 points 1 year ago (1 children)

You can also just block YouTube in your unifi firewall/router for that one client.

[–] cereals@discuss.tchncs.de 2 points 1 year ago

Go to android settings > apps > special app permissions (the last option) > alarms and reminders

The app causing the issue should be there, among others

[–] cereals@discuss.tchncs.de 3 points 1 year ago (2 children)

Some apps that do some kind of scheduling display the alarm clock icon.

Do you have any app set to do something at a given time? Maybe an automated backup or some kind of automation?

[–] cereals@discuss.tchncs.de 0 points 1 year ago* (last edited 1 year ago) (2 children)

Even the version number looks like an IP address

[–] cereals@discuss.tchncs.de 1 points 2 years ago

For your usecase a pi should be sufficient. You can go with a pi 5 8GB and a docker install, so you can host more stuff later. I would recommend an m.2 head with an SSD instead of an SD card though. Much faster and more reliable.