Skip to content

Commit

Permalink
Merge pull request #62 from dacarley/final-tweaks
Browse files Browse the repository at this point in the history
Final tweaks
  • Loading branch information
OneFinityCNC authored Dec 13, 2021
2 parents 9a0e905 + cadae46 commit 44d80a5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bbctrl",
"version": "1.0.9b3",
"version": "1.0.9",
"homepage": "https://onefinitycnc.com/",
"repository": "https://github.com/OneFinityCNC/onefinity",
"license": "GPL-3.0+",
Expand Down
7 changes: 7 additions & 0 deletions scripts/delete-cookies.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env python3
import sqlite3

db = sqlite3.connect('/home/pi/.config/chromium/Default/Cookies')
cur = db.cursor()
cur.execute("DELETE FROM cookies WHERE creation_utc < 13240000000000000")
db.commit()
17 changes: 5 additions & 12 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,12 @@ if [ ! -e /etc/cron.d/reboot ]; then
cp ./scripts/cron_reboot_logrotate /etc/cron.reboot/logrotate
fi

##########################################
# Begin one-time cleanup tasks for 1.0.7
##########################################
# Delete some cookies that were left behind in older images
chmod +x ./scripts/delete-cookies.py
./scripts/delete-cookies.py
pkill -HUP chromium # Force Chromium to restart, to see the cookie changes

# Delete cached login data
rm -rf "/home/pi/.config/chromium/Login Data"
rm -rf "/home/pi/.config/chromium/Login Data.journal"

# Get rid of some old files that were left behind
# Get rid of some old files that were left behind in older images
rm -rf /home/pi/hostinfo.txt
rm -rf /home/pi/ssidinfo.txt
rm -rf /home/Downloads/bbctrl-20200415.json
Expand All @@ -174,10 +171,6 @@ rm -rf /home/bbmc/favicon.ico
# Force a logrotate to get everything into a good state
logrotate -f /etc/logrotate.conf

##########################################
# End one-time cleanup tasks for 1.0.7
##########################################

sync

if $REBOOT; then
Expand Down
8 changes: 4 additions & 4 deletions src/resources/onefinity_defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"tool-enable-mode": "disabled",
"tool-direction-mode": "disabled",
"tool-type": "PWM Spindle",
"min-spin": 0,
"max-spin": 255
"min-spin": 6000,
"max-spin": 24000
},
"pwm-spindle": {
"pwm-min-duty": 1,
Expand Down Expand Up @@ -230,8 +230,8 @@
"tool-reversed": false,
"tool-enable-mode": "disabled",
"tool-direction-mode": "disabled",
"min-spin": 0,
"max-spin": 255
"min-spin": 6000,
"max-spin": 24000
},
"pwm-spindle": {
"pwm-min-duty": 1,
Expand Down

0 comments on commit 44d80a5

Please sign in to comment.