Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

MealWish is an extension for HomeAssistant. It gives you a tool to manage your family's meal wishes.

License

NotificationsYou must be signed in to change notification settings

0x7878/MealWish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning

This is in beta now and should not be used in production.

The idea behindMealWish is to provide a tool to manage your meal wishes and your meals.Each member can choose from a list of what he or she would like to eat for the next few weeks.The chef or the household can then decide which dishes he or she will cook in thefollowing days. Users can see the plan in the overview, and members who are responsible forshopping can also plan what they have to buy.

Meal Wish

Requirement

MealWish is a REACT application wrapped in a web component that seamlessly integrates withHomeAssistant and gets updates like the current user. The database (backend) needs to beinstalled separately. You can also install the backend as a HomeAssistant add-on.

Installation

Precondition

You need to clone the repository and install the dependencies:

git clone https://github.com/0x7878/MealWish.git

Change the api URL in frontend/src/config.tsx.

Now you can build the frontend and the backend:

cd MealWish/frontendnpm installnpm run buildcd ../backendnpm installnpm run build

HomeAssistant Add-on

The easiest way to install MealWish is to use the HomeAssistant add-on. You install theadd-on by adding the following files in your HomeAssistant installation:

Folder structure in HomeAssistant:

/  /addon_configs    /local_mealwish-api      /uploads      /db.json  /addons    /meal-wish-api      /config.yaml      /Dockerfile      /package.json      /package-lock.json      /src        /index.js

The content of theconfig.yaml file:

name:"MealWishAPI"description:"API for the MealWish Webcomponent"version:"1.0.0"slug:"mealwish-api"init:falsearch:  -aarch64  -amd64  -armhf  -armv7  -i386startup:servicesmap:  -addon_config:rwports:3000/tcp:3000

The content of theDockerfile file:

ARG BUILD_FROMFROM $BUILD_FROMRUN apk add --no-cache nodejs npmWORKDIR /usr/src/appCOPY package*.json ./RUN npm install --productionCOPY . .EXPOSE 3000CMD ["node","src/server.js"]

Please upload the db.json, package.json, package-lock.json, and src/index.js files accordingly.

Restart HomeAssistant and install the add-on from the Supervisor panel.

For more Infos see step2 in theInstallation Guide.

Frontend

copy the main[RANDOM].js file from the frontend/build/static/js folder to your HomeAssistant /config/www folder.

In your HomeAssistant configuration.yaml file add the following lines:

panel_custom:  -name:meal-wishsidebar_title:Meal Wishsidebar_icon:mdi:silverware-varianturl_path:mealwishmodule_url:/local/main.f50a203d.js

Restart HomeAssistant and you should see the MealWish web component in the sidebar.

About

MealWish is an extension for HomeAssistant. It gives you a tool to manage your family's meal wishes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp