Haahka / JamixMealHooker

Fetches meal data from Jamix and sends the meal to a Webhook.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JamixMealHooker

Fetches meal data from Jamix and sends the meal to a Webhook.

Environment variables

KITCHEN_ID=integer
BOT_NAME=string
BOT_ICON=string
BOT_THUMBNAIL=string
DISCORD_WEBHOOK=string

Build

npm install dependencies
npm start

Usage

Setup a scheduler to run the app every day.

crontab -e
5 0 * * * /usr/local/bin/node /home/your_name/JamixMealHooker-main/app.js > /home/your_name/menu.log

Running without Wi-Fi

Use the Automate app to schedule your hotspot to start at a specific time. Your device, such as Raspberry Pi, should automatically connect to the hotspot and be able to send the menu if timed right.

You can download a flow for it here.

Note

Use the latest Node.js version to avoid errors.

About

Fetches meal data from Jamix and sends the meal to a Webhook.

License:MIT License


Languages

Language:JavaScript 100.0%