Fetches meal data from Jamix and sends the meal to a Webhook.
KITCHEN_ID=integer
BOT_NAME=string
BOT_ICON=string
BOT_THUMBNAIL=string
DISCORD_WEBHOOK=string
npm install dependencies
npm start
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
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.
Use the latest Node.js version to avoid errors.