-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
90 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Desktop Entry] | ||
Type=Application | ||
Name=Makerverse | ||
Comment=Makerverse UI (web browser) | ||
Icon=/home/pi/makerverse/logo.png | ||
Exec=/home/pi/makerverse/bin/kiosk | ||
Terminal=false | ||
Categories=Internet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,39 @@ | ||
#!/bin/bash | ||
path=${1:-/} | ||
|
||
# Figure out where the git checkout directory lives, if any: | ||
if [[ -z "$MAKERVERSE_SRC_DIR" ]]; then | ||
# Otherwise, the parent directory of this script should (hopefully) work. | ||
MAKERVERSE_SRC_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../" && pwd)" | ||
fi | ||
|
||
fn="${MAKERVERSE_SRC_DIR}/kiosk.log" | ||
echo "Launching Makerverse kiosk..." > $fn | ||
printenv | grep "MAKERVERSE" >> $fn | ||
|
||
MAKERVERSE_PROTOCOL="${MAKERVERSE_PROTOCOL:-http}" | ||
MAKERVERSE_HOST="${MAKERVERSE_HOST:-localhost}" | ||
MAKERVERSE_PORT="${MAKERVERSE_PORT:-8000}" | ||
MAKERVERSE_KIOSK_SCALE="${MAKERVERSE_KIOSK_SCALE:-1.0}" | ||
url="${MAKERVERSE_PROTOCOL}://${MAKERVERSE_HOST}:${MAKERVERSE_PORT}${path}" | ||
MAKERVERSE_PATH="${MAKERVERSE_PATH:-/}" | ||
url="${MAKERVERSE_PROTOCOL}://${MAKERVERSE_HOST}:${MAKERVERSE_PORT}${MAKERVERSE_PATH}" | ||
flags="" | ||
|
||
if [[ ! -z "$MAKERVERSE_SCALE" ]]; then | ||
flags="${flags} --force-device-scale-factor=${MAKERVERSE_SCALE}" | ||
fi | ||
|
||
if [[ ! -z "$MAKERVERSE_KIOSK" ]]; then | ||
flags="${flags} --noerrdialogs --disable-infobars --kiosk" | ||
fi | ||
|
||
while [[ ! $(curl -s $url) ]]; do | ||
echo "Waiting for $url" | ||
echo "Waiting for $url" >> $fn | ||
sleep 1; | ||
done | ||
|
||
bash ${MAKERVERSE_SRC_DIR}/scripts/kiosk.sh "$url" \ | ||
-f "--noerrdialogs --disable-infobars --ignore-certificate-errors --force-device-scale-factor=${MAKERVERSE_KIOSK_SCALE}" | ||
echo "Ready to launch: ${flags}" >> $fn | ||
|
||
if [[ ! -z "${flags}" ]]; then | ||
bash ${MAKERVERSE_SRC_DIR}/scripts/kiosk.sh "$url" -f "${flags}" | ||
else | ||
bash ${MAKERVERSE_SRC_DIR}/scripts/kiosk.sh "$url" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
layout: default | ||
title: Grbl | ||
grand_parent: Machines | ||
parent: CNC | ||
nav_order: 1 | ||
--- | ||
|
||
# Grbl | ||
|
||
Grbl is an extremely common firmware/protocol option for CNC machines. | ||
|
||
Many manufacturers simply ship their CNC machines with Grbl, as it is such a well-known open-source (free) piece of Arduino code. If you're not sure what controller your CNC machine uses, chances are pretty good it uses Grbl. | ||
|
||
## Grbl Versions | ||
|
||
Find all versions on the [Grbl releases page](https://github.com/gnea/grbl/releases). | ||
|
||
- Major versions of Grbl are `1.1h`, `1.1g`, etc. | ||
- Minor versions are designated by the date of the release (`20190825` was released on August 25th, 2019). | ||
|
||
## Updating Grbl | ||
|
||
Please see [the Github README for Grbl](https://github.com/gnea/grbl). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ import machines from './machines'; | |
export default { | ||
api, | ||
machines, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters