Green Mountain Grills web app.
Well, I like to Grill, and I often utilize the grill overnight when cooking large portions. Unfortunately the GMG mobile app is not a dependable source for alerting me when critical grill events occur (like, the grill is out of fuel/pellets).
There are number of way to configure the server. You can set env variables in Docker to override any config that is provided in “custom-environment-variables” file located in the config directory. Alternatively, just override the default values set in default.json. The only option that you need to configure is the Slack web hook URL (GMG_ALERTS_SLACK_WEBHOOKURL
). If you want to set your own alert sounds, simply override the corresponding mp3 file in the public/alerts
directory.
cd
into the src
directorydocker build -t gmg .
docker run -it -p 80:80 -e "GMG_GRILL_HOST=xx.xx.xx.xx" -e "GMG_ALERTS_SLACK_WEBHOOKURL=https://your_slack_webhook_address" <GMG_IMAGE_NAME>
There is also now a Makefile
included that can help simplify some development tasks for the image and iterating on it.
Try make help
to get the targets availabile.
To use make run
you’ll need to set GMG_GRILL_HOST
and optionally GMG_ALERTS_SLACK_WEBHOOKURL
or GMG_EXTERNAL_PORT
. You can also just put those in a .env
file in the base of this project.
cd
into the src
directory./build.sh
cd gmg-server && npm run start:release
dotnet bin/Debug/netcoreapp3.1/gmg-emulator.dll
src/gmg-server/bin/www
with IDE of choice (VSCode, Atom, WebStorm, etc.)gmg.code-workspace
Debug (gmg-server)
(cd src/gmg-app && npm run start)
to start the development web server and webpack watchsrc/gmg-emulator/gmg-emulator.sln
with IDE of choice (Rider, VSCode, Visual Studio, etc.)gmg.code-workspace
Debug (gmg-emulator)
sudo apt-get update
wget https://nodejs.org/dist/v14.18.0/node-v14.18.0-linux-armv6l.tar.gz
tar -xzf node-v14.18.0-linux-armv6l.tar.gz
cd node-v14.18.0-linux-armv6l/
sudo cp -R * /usr/local/
node -v
npm -v
sudo npm i -g npm@latest
git clone https://github.com/Aenima4six2/gmg.git
cd /gmg/src
sudo ./build.sh
cd gmg-server && sudo npm run start:release