-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
1 parent
1ef5087
commit 3c57884
Showing
6 changed files
with
86 additions
and
98 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 |
---|---|---|
@@ -1,23 +1,51 @@ | ||
{ | ||
"config": { | ||
"octoprint": { | ||
"url": "http://localhost:5000/api/", | ||
"accessToken": "INSERT API KEY HERE", | ||
"apiInterval": 1500 | ||
}, | ||
"printer": { | ||
"name": "NAME HERE" | ||
}, | ||
"filament": { | ||
"thickness": 0, | ||
"density": 0 | ||
}, | ||
"octodash": { | ||
"touchscreen": true, | ||
"temperatureSensor": { | ||
"type": 22, | ||
"gpio": 0 | ||
"octoprint": { | ||
"url": "http://localhost:5000/api/", | ||
"accessToken": "INSERT API KEY HERE", | ||
"apiInterval": 15000 | ||
}, | ||
"printer": { | ||
"name": "NAME HERE", | ||
"xySpeed": 100, | ||
"zSpeed": 5 | ||
}, | ||
"filament": { | ||
"thickness": 0, | ||
"density": 0 | ||
}, | ||
"octodash": { | ||
"touchscreen": true, | ||
"temperatureSensor": null, | ||
"customActions": [{ | ||
"icon": "home", | ||
"command": "G28", | ||
"color": "#dcdde1" | ||
}, | ||
{ | ||
"icon": "ruler-vertical", | ||
"command": "G29", | ||
"color": "#44bd32" | ||
}, | ||
{ | ||
"icon": "fire-alt", | ||
"command": "M140 S50; M104 S185", | ||
"color": "#e1b12c" | ||
}, | ||
{ | ||
"icon": "snowflake", | ||
"command": "M140 S0; M104 S0", | ||
"color": "#0097e6" | ||
}, | ||
{ | ||
"icon": "redo-alt", | ||
"command": "[!RELOAD]", | ||
"color": "#7f8fa6" | ||
}, | ||
{ | ||
"icon": "skull", | ||
"command": "[!KILL]", | ||
"color": "#e84118" | ||
} | ||
} | ||
] | ||
} | ||
} |
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,23 +1,23 @@ | ||
#!/bin/bash | ||
|
||
release = curl --silent "https://api.github.com/repos/UnchartedBull/OctoDash/releases/latest" | jq -r '.assets[] | select(.name | endswith("armv7l.deb")).browser_download_url' | ||
dependencies="libsecret-common libgnome-keyring-common libgnome-keyring0 libnotify4 libindicator3-7 libappindicator3-1 libdbusmenu-gtk3-4 libdbusmenu-glib4 libsecret-1-0 indicator-application indicator-common gir1.2-gnomekeyring-1.0" | ||
release=$(curl -s "https://api.github.com/repos/UnchartedBull/OctoDash/releases/latest" | grep "browser_download_url.*armv7l.deb" | cut -d '"' -f 4) | ||
dependencies="libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 xdg-utils libatspi2.0-0 libuuid1 libappindicator3-1 libsecret-1-0 gir1.2-gnomekeyring-1.0" | ||
|
||
echo "Installing OctoPrint Plugins" | ||
~/OctoPrint/venv/bin/pip install "https://github.com/UnchartedBull/OctoPrint-DisplayLayerProgress/archive/master.zip" | ||
~/OctoPrint/venv/bin/pip install "https://github.com/eyal0/OctoPrint-PrintTimeGenius/archive/master.zip" | ||
~/OctoPrint/venv/bin/pip install -q "https://github.com/UnchartedBull/OctoPrint-DisplayLayerProgress/archive/master.zip" | ||
if [[ $* == *--ptg* ]] | ||
then | ||
~/OctoPrint/venv/bin/pip install -q "https://github.com/eyal0/OctoPrint-PrintTimeGenius/archive/master.zip" | ||
fi | ||
|
||
echo "Installing Dependencies" | ||
apt update | ||
apt install $dependencies -y | ||
|
||
cd ~ | ||
sudo apt -qq update | ||
sudo apt -qq install $dependencies -y | ||
|
||
echo "Installing OctoDash" | ||
wget -O octodash.deb $release | ||
cd ~ | ||
wget -O octodash.deb $release -q --show-progress | ||
|
||
sudo dpkg -i octodash.deb | ||
|
||
rm octodash.deb | ||
|
||
echo "Done. You can now start OctoDash via the command octodash." |
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 was deleted.
Oops, something went wrong.