mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 17:31:03 +01:00
Remove social_to_mealie binary assets
This commit is contained in:
3
social_to_mealie/CHANGELOG.md
Normal file
3
social_to_mealie/CHANGELOG.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## 0.1.0
|
||||
|
||||
- Initial release
|
||||
108
social_to_mealie/Dockerfile
Normal file
108
social_to_mealie/Dockerfile
Normal file
@@ -0,0 +1,108 @@
|
||||
#============================#
|
||||
# ALEXBELGIUM'S DOCKERFILE #
|
||||
#============================#
|
||||
# _.------.
|
||||
# _.-` ('>.-"""-.
|
||||
# '.--'` _'` _ .--.)
|
||||
# -' '-.-';` `
|
||||
# ' - _.' ``'--.
|
||||
# '---` .-'""`
|
||||
# /`
|
||||
#=== Home Assistant Addon ===#
|
||||
|
||||
#################
|
||||
# 1 Build Image #
|
||||
#################
|
||||
|
||||
ARG BUILD_FROM
|
||||
ARG BUILD_VERSION
|
||||
FROM ${BUILD_FROM}
|
||||
|
||||
##################
|
||||
# 2 Modify Image #
|
||||
##################
|
||||
|
||||
# Set S6 wait time
|
||||
ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
##################
|
||||
# 3 Install apps #
|
||||
##################
|
||||
|
||||
# Add rootfs
|
||||
COPY rootfs/ /
|
||||
|
||||
# Uses /bin for compatibility purposes
|
||||
# hadolint ignore=DL4005
|
||||
RUN if [ ! -f /bin/sh ] && [ -f /usr/bin/sh ]; then ln -s /usr/bin/sh /bin/sh; fi && \
|
||||
if [ ! -f /bin/bash ] && [ -f /usr/bin/bash ]; then ln -s /usr/bin/bash /bin/bash; fi
|
||||
|
||||
# Modules
|
||||
ARG MODULES="00-banner.sh 01-custom_script.sh"
|
||||
|
||||
# Automatic modules download
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automodules.sh" "/ha_automodules.sh"
|
||||
RUN chmod 744 /ha_automodules.sh && /ha_automodules.sh "$MODULES" && rm /ha_automodules.sh
|
||||
|
||||
# Manual apps
|
||||
ENV PACKAGES="jq"
|
||||
|
||||
# Automatic apps & bashio
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_autoapps.sh" "/ha_autoapps.sh"
|
||||
RUN chmod 744 /ha_autoapps.sh && /ha_autoapps.sh "$PACKAGES" && rm /ha_autoapps.sh
|
||||
|
||||
################
|
||||
# 4 Entrypoint #
|
||||
################
|
||||
|
||||
# Add entrypoint
|
||||
ENV S6_STAGE2_HOOK=/ha_entrypoint.sh
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh"
|
||||
|
||||
# Entrypoint modifications
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint_modif.sh" "/ha_entrypoint_modif.sh"
|
||||
RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh
|
||||
|
||||
# Standalone bashio command
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/bashio-standalone.sh" "/.bashio-standalone.sh"
|
||||
RUN chmod 777 /.bashio-standalone.sh
|
||||
|
||||
#ENTRYPOINT [ "/ha_entrypoint.sh" ]
|
||||
#CMD [ "/ha_entrypoint.sh" ]
|
||||
|
||||
############
|
||||
# 5 Labels #
|
||||
############
|
||||
|
||||
ARG BUILD_ARCH
|
||||
ARG BUILD_DATE
|
||||
ARG BUILD_DESCRIPTION
|
||||
ARG BUILD_NAME
|
||||
ARG BUILD_REF
|
||||
ARG BUILD_REPOSITORY
|
||||
ARG BUILD_VERSION
|
||||
ENV BUILD_VERSION="${BUILD_VERSION}"
|
||||
LABEL \
|
||||
io.hass.name="${BUILD_NAME}" \
|
||||
io.hass.description="${BUILD_DESCRIPTION}" \
|
||||
io.hass.arch="${BUILD_ARCH}" \
|
||||
io.hass.type="addon" \
|
||||
io.hass.version=${BUILD_VERSION} \
|
||||
maintainer="alexbelgium (https://github.com/alexbelgium)" \
|
||||
org.opencontainers.image.title="${BUILD_NAME}" \
|
||||
org.opencontainers.image.description="${BUILD_DESCRIPTION}" \
|
||||
org.opencontainers.image.vendor="Home Assistant Add-ons" \
|
||||
org.opencontainers.image.authors="alexbelgium (https://github.com/alexbelgium)" \
|
||||
org.opencontainers.image.licenses="MIT" \
|
||||
org.opencontainers.image.url="https://github.com/alexbelgium" \
|
||||
org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \
|
||||
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \
|
||||
org.opencontainers.image.created=${BUILD_DATE} \
|
||||
org.opencontainers.image.revision=${BUILD_REF} \
|
||||
org.opencontainers.image.version=${BUILD_VERSION}
|
||||
|
||||
####################
|
||||
# 6 HealthcheckNOT #
|
||||
####################
|
||||
75
social_to_mealie/README.md
Normal file
75
social_to_mealie/README.md
Normal file
@@ -0,0 +1,75 @@
|
||||
# Home assistant add-on: Social to Mealie
|
||||
|
||||
I maintain this and other Home Assistant add-ons in my free time: keeping up with upstream changes, HA changes, and testing on real hardware takes a lot of time (and some money). I use around 5-10 of my >110 addons so regularly I install test machines (and purchase some test services such as vpn) that I don't use myself to troubleshoot and improve the addons
|
||||
|
||||
If this add-on saves you time or makes your setup easier, I would be very grateful for your support!
|
||||
|
||||
[![Buy me a coffee][donation-badge]](https://www.buymeacoffee.com/alexbelgium)
|
||||
[![Donate via PayPal][paypal-badge]](https://www.paypal.com/donate/?hosted_button_id=DZFULJZTP3UQA)
|
||||
|
||||
## Addon informations
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
[](https://www.codacy.com/gh/alexbelgium/hassio-addons/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexbelgium/hassio-addons&utm_campaign=Badge_Grade)
|
||||
[](https://github.com/alexbelgium/hassio-addons/actions/workflows/weekly-supelinter.yaml)
|
||||
[](https://github.com/alexbelgium/hassio-addons/actions/workflows/onpush_builder.yaml)
|
||||
|
||||
[donation-badge]: https://img.shields.io/badge/Buy%20me%20a%20coffee-%23d32f2f?logo=buy-me-a-coffee&style=flat&logoColor=white
|
||||
[paypal-badge]: https://img.shields.io/badge/Donate%20via%20PayPal-0070BA?logo=paypal&style=flat&logoColor=white
|
||||
|
||||
_Thanks to everyone having starred my repo! To star it click on the image below, then it will be on top right. Thanks!_
|
||||
|
||||
[](https://github.com/alexbelgium/hassio-addons/stargazers)
|
||||
|
||||

|
||||
|
||||
## About
|
||||
|
||||
[Social to Mealie](https://github.com/GerardPolloRebozado/social-to-mealie) lets you import recipes from social media videos directly into your Mealie instance.
|
||||
|
||||
This addon is based on the docker image https://github.com/GerardPolloRebozado/social-to-mealie
|
||||
|
||||
## Configuration
|
||||
|
||||
Webui can be found at <http://homeassistant:3000>.
|
||||
|
||||
### Options
|
||||
|
||||
| Option | Type | Default | Description |
|
||||
|--------|------|---------|-------------|
|
||||
| `OPENAI_URL` | str | `https://api.openai.com/v1` | URL for the OpenAI-compatible endpoint |
|
||||
| `OPENAI_API_KEY` | str | `` | API key for the OpenAI-compatible provider |
|
||||
| `TRANSCRIPTION_MODEL` | str | `whisper-1` | Whisper model to use for transcription |
|
||||
| `TEXT_MODEL` | str | `gpt-4o-mini` | Text model used to build the recipe |
|
||||
| `MEALIE_URL` | str | `https://mealie.example.com` | URL of your Mealie instance |
|
||||
| `MEALIE_API_KEY` | str | `` | API key for Mealie |
|
||||
| `MEALIE_GROUP_NAME` | str | `home` | Optional Mealie group name |
|
||||
| `EXTRA_PROMPT` | str | `` | Additional instructions for the AI |
|
||||
| `YTDLP_VERSION` | str | `latest` | yt-dlp version to download at startup |
|
||||
| `COOKIES` | str | `` | Optional cookies string for yt-dlp |
|
||||
| `env_vars` | list | `[]` | Additional environment variables to export |
|
||||
|
||||
### Example Configuration
|
||||
|
||||
```yaml
|
||||
OPENAI_URL: https://api.openai.com/v1
|
||||
OPENAI_API_KEY: sk-...
|
||||
TRANSCRIPTION_MODEL: whisper-1
|
||||
TEXT_MODEL: gpt-4o-mini
|
||||
MEALIE_URL: https://mealie.example.com
|
||||
MEALIE_API_KEY: ey...
|
||||
MEALIE_GROUP_NAME: home
|
||||
EXTRA_PROMPT: ""
|
||||
YTDLP_VERSION: latest
|
||||
COOKIES: ""
|
||||
env_vars: []
|
||||
```
|
||||
|
||||
### Notes
|
||||
|
||||
- Mealie 1.9.0+ with an AI provider configured is required.
|
||||
- yt-dlp can be pre-downloaded by setting `YTDLP_VERSION` (for example `latest` or `2025.11.01`).
|
||||
- Provide the cookies string if you need to access protected social media content with yt-dlp.
|
||||
70
social_to_mealie/apparmor.txt
Normal file
70
social_to_mealie/apparmor.txt
Normal file
@@ -0,0 +1,70 @@
|
||||
#include <tunables/global>
|
||||
|
||||
profile social_to_mealie_addon flags=(attach_disconnected,mediate_deleted) {
|
||||
#include <abstractions/base>
|
||||
|
||||
capability,
|
||||
file,
|
||||
signal,
|
||||
mount,
|
||||
umount,
|
||||
remount,
|
||||
network udp,
|
||||
network tcp,
|
||||
network dgram,
|
||||
network stream,
|
||||
network inet,
|
||||
network inet6,
|
||||
network netlink raw,
|
||||
network unix dgram,
|
||||
|
||||
capability setgid,
|
||||
capability setuid,
|
||||
capability sys_admin,
|
||||
capability dac_read_search,
|
||||
capability dac_override,
|
||||
# capability sys_rawio,
|
||||
|
||||
# S6-Overlay
|
||||
/init ix,
|
||||
/run/{s6,s6-rc*,service}/** ix,
|
||||
/package/** ix,
|
||||
/command/** ix,
|
||||
/run/{,**} rwk,
|
||||
/dev/tty rw,
|
||||
/bin/** ix,
|
||||
/usr/bin/** ix,
|
||||
/usr/lib/bashio/** ix,
|
||||
/etc/s6/** rix,
|
||||
/run/s6/** rix,
|
||||
/etc/services.d/** rwix,
|
||||
/etc/cont-init.d/** rwix,
|
||||
/etc/cont-finish.d/** rwix,
|
||||
/init rix,
|
||||
/var/run/** mrwkl,
|
||||
/var/run/ mrwkl,
|
||||
/dev/i2c-1 mrwkl,
|
||||
# Files required
|
||||
/dev/fuse mrwkl,
|
||||
/dev/sda1 mrwkl,
|
||||
/dev/sdb1 mrwkl,
|
||||
/dev/nvme0 mrwkl,
|
||||
/dev/nvme1 mrwkl,
|
||||
/dev/mmcblk0p1 mrwkl,
|
||||
/dev/* mrwkl,
|
||||
/udev/* mrwkl,
|
||||
/tmp/** mrkwl,
|
||||
/dev/fuse/** mrkwl,
|
||||
/dev/** mrkwl,
|
||||
/sys/firmware/** mrkwl,
|
||||
|
||||
# Data access
|
||||
/data/** rw,
|
||||
|
||||
# suppress ptrace denials when using 'docker ps' or using 'ps' inside a container
|
||||
ptrace (trace,read) peer=docker-default,
|
||||
|
||||
# docker daemon confinement requires explict allow rule for signal
|
||||
signal (receive) set=(kill,term) peer=/usr/bin/docker,
|
||||
|
||||
}
|
||||
6
social_to_mealie/build.json
Normal file
6
social_to_mealie/build.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"build_from": {
|
||||
"aarch64": "ghcr.io/gerardpollorebozado/social-to-mealie:latest",
|
||||
"amd64": "ghcr.io/gerardpollorebozado/social-to-mealie:latest"
|
||||
}
|
||||
}
|
||||
115
social_to_mealie/config.yaml
Normal file
115
social_to_mealie/config.yaml
Normal file
@@ -0,0 +1,115 @@
|
||||
name: Social to Mealie
|
||||
version: "0.1.0"
|
||||
slug: social_to_mealie
|
||||
description: Import recipes from social media directly into Mealie
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
arch:
|
||||
- aarch64
|
||||
- amd64
|
||||
startup: services
|
||||
boot: auto
|
||||
host_network: false
|
||||
auth_api: false
|
||||
audio: false
|
||||
panel_admin: false
|
||||
map:
|
||||
- config:rw
|
||||
- share:rw
|
||||
devices:
|
||||
- /dev/dri
|
||||
- /dev/dri/card0
|
||||
- /dev/dri/card1
|
||||
- /dev/dri/renderD128
|
||||
- /dev/vchiq
|
||||
- /dev/video10
|
||||
- /dev/video11
|
||||
- /dev/video12
|
||||
- /dev/video13
|
||||
- /dev/video14
|
||||
- /dev/video15
|
||||
- /dev/video16
|
||||
- /dev/ttyUSB0
|
||||
- /dev/sda
|
||||
- /dev/sdb
|
||||
- /dev/sdc
|
||||
- /dev/sdd
|
||||
- /dev/sde
|
||||
- /dev/sdf
|
||||
- /dev/sdg
|
||||
- /dev/nvme
|
||||
- /dev/nvme0
|
||||
- /dev/nvme0n1
|
||||
- /dev/nvme0n1p1
|
||||
- /dev/nvme0n1p2
|
||||
- /dev/nvme0n1p3
|
||||
- /dev/nvme1n1
|
||||
- /dev/nvme1n1p1
|
||||
- /dev/nvme1n1p2
|
||||
- /dev/nvme1n1p3
|
||||
- /dev/nvme2n1
|
||||
- /dev/nvme2n1p1
|
||||
- /dev/nvme2n1p2
|
||||
- /dev/nvme2n3p3
|
||||
- /dev/mmcblk
|
||||
- /dev/fuse
|
||||
- /dev/sda1
|
||||
- /dev/sdb1
|
||||
- /dev/sdc1
|
||||
- /dev/sdd1
|
||||
- /dev/sde1
|
||||
- /dev/sdf1
|
||||
- /dev/sdg1
|
||||
- /dev/sda2
|
||||
- /dev/sdb2
|
||||
- /dev/sdc2
|
||||
- /dev/sdd2
|
||||
- /dev/sde2
|
||||
- /dev/sdf2
|
||||
- /dev/sdg2
|
||||
- /dev/sda3
|
||||
- /dev/sdb3
|
||||
- /dev/sda4
|
||||
- /dev/sdb4
|
||||
- /dev/sda5
|
||||
- /dev/sda6
|
||||
- /dev/sda7
|
||||
- /dev/sda8
|
||||
- /dev/nvme0
|
||||
- /dev/nvme1
|
||||
- /dev/nvme2
|
||||
environment:
|
||||
PORT: "3000"
|
||||
image: ghcr.io/alexbelgium/social_to_mealie-{arch}
|
||||
init: false
|
||||
ports:
|
||||
3000/tcp: 3000
|
||||
ports_description:
|
||||
3000/tcp: Web interface
|
||||
options:
|
||||
OPENAI_URL: https://api.openai.com/v1
|
||||
OPENAI_API_KEY: ""
|
||||
TRANSCRIPTION_MODEL: whisper-1
|
||||
TEXT_MODEL: gpt-4o-mini
|
||||
MEALIE_URL: https://mealie.example.com
|
||||
MEALIE_API_KEY: ""
|
||||
MEALIE_GROUP_NAME: home
|
||||
EXTRA_PROMPT: ""
|
||||
YTDLP_VERSION: latest
|
||||
COOKIES: ""
|
||||
env_vars: []
|
||||
schema:
|
||||
OPENAI_URL: str
|
||||
OPENAI_API_KEY: str
|
||||
TRANSCRIPTION_MODEL: str
|
||||
TEXT_MODEL: str
|
||||
MEALIE_URL: str
|
||||
MEALIE_API_KEY: str
|
||||
MEALIE_GROUP_NAME: str?
|
||||
EXTRA_PROMPT: str?
|
||||
YTDLP_VERSION: str?
|
||||
COOKIES: str?
|
||||
env_vars:
|
||||
- name: match(^[A-Za-z0-9_]+$)
|
||||
value: str?
|
||||
udev: true
|
||||
webui: "[PROTO:ssl]://[HOST]:[PORT:3000]"
|
||||
50
social_to_mealie/rootfs/etc/cont-init.d/99-run.sh
Executable file
50
social_to_mealie/rootfs/etc/cont-init.d/99-run.sh
Executable file
@@ -0,0 +1,50 @@
|
||||
#!/command/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
required_vars=(
|
||||
OPENAI_URL
|
||||
OPENAI_API_KEY
|
||||
TRANSCRIPTION_MODEL
|
||||
TEXT_MODEL
|
||||
MEALIE_URL
|
||||
MEALIE_API_KEY
|
||||
)
|
||||
|
||||
for var in "${required_vars[@]}"; do
|
||||
if ! bashio::config.has_value "$var"; then
|
||||
bashio::exit.nok "Configuration option $var is required"
|
||||
fi
|
||||
export "$var"="$(bashio::config "$var")"
|
||||
bashio::log.info "$var configured"
|
||||
done
|
||||
|
||||
optional_vars=(
|
||||
MEALIE_GROUP_NAME
|
||||
EXTRA_PROMPT
|
||||
YTDLP_VERSION
|
||||
COOKIES
|
||||
)
|
||||
|
||||
for var in "${optional_vars[@]}"; do
|
||||
if bashio::config.has_value "$var"; then
|
||||
export "$var"="$(bashio::config "$var")"
|
||||
bashio::log.info "$var configured"
|
||||
fi
|
||||
done
|
||||
|
||||
if bashio::config.has_value "env_vars"; then
|
||||
for entry in $(bashio::config 'env_vars | map(@base64) | .[]'); do
|
||||
item=$(echo "$entry" | base64 -d)
|
||||
name=$(echo "$item" | jq -r '.name // empty')
|
||||
value=$(echo "$item" | jq -r '.value // empty')
|
||||
if [ -n "$name" ]; then
|
||||
export "$name"="$value"
|
||||
bashio::log.info "Custom env $name configured"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
bashio::log.info "Starting Social to Mealie"
|
||||
cd /app || bashio::exit.nok "App directory not found"
|
||||
exec /bin/sh /app/entrypoint.sh node --run start
|
||||
10
social_to_mealie/updater.json
Normal file
10
social_to_mealie/updater.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"dockerhub_by_date": true,
|
||||
"dockerhub_list_size": 2,
|
||||
"last_update": "17-05-2025",
|
||||
"repository": "alexbelgium/hassio-addons",
|
||||
"slug": "social_to_mealie",
|
||||
"source": "github",
|
||||
"upstream_repo": "GerardPolloRebozado/social-to-mealie",
|
||||
"upstream_version": "0.1.0"
|
||||
}
|
||||
Reference in New Issue
Block a user