Merge pull request #62 from dacarley/final-tweaks

Final tweaks
This commit is contained in:
OneFinityCNC
2021-12-13 16:06:55 -05:00
committed by GitHub
4 changed files with 17 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "bbctrl", "name": "bbctrl",
"version": "1.0.9b3", "version": "1.0.9",
"homepage": "https://onefinitycnc.com/", "homepage": "https://onefinitycnc.com/",
"repository": "https://github.com/OneFinityCNC/onefinity", "repository": "https://github.com/OneFinityCNC/onefinity",
"license": "GPL-3.0+", "license": "GPL-3.0+",

View File

@@ -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()

View File

@@ -154,15 +154,12 @@ if [ ! -e /etc/cron.d/reboot ]; then
cp ./scripts/cron_reboot_logrotate /etc/cron.reboot/logrotate cp ./scripts/cron_reboot_logrotate /etc/cron.reboot/logrotate
fi fi
########################################## # Delete some cookies that were left behind in older images
# Begin one-time cleanup tasks for 1.0.7 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 # Get rid of some old files that were left behind in older images
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
rm -rf /home/pi/hostinfo.txt rm -rf /home/pi/hostinfo.txt
rm -rf /home/pi/ssidinfo.txt rm -rf /home/pi/ssidinfo.txt
rm -rf /home/Downloads/bbctrl-20200415.json rm -rf /home/Downloads/bbctrl-20200415.json
@@ -174,10 +171,6 @@ rm -rf /home/bbmc/favicon.ico
# Force a logrotate to get everything into a good state # Force a logrotate to get everything into a good state
logrotate -f /etc/logrotate.conf logrotate -f /etc/logrotate.conf
##########################################
# End one-time cleanup tasks for 1.0.7
##########################################
sync sync
if $REBOOT; then if $REBOOT; then

View File

@@ -11,8 +11,8 @@
"tool-enable-mode": "disabled", "tool-enable-mode": "disabled",
"tool-direction-mode": "disabled", "tool-direction-mode": "disabled",
"tool-type": "PWM Spindle", "tool-type": "PWM Spindle",
"min-spin": 0, "min-spin": 6000,
"max-spin": 255 "max-spin": 24000
}, },
"pwm-spindle": { "pwm-spindle": {
"pwm-min-duty": 1, "pwm-min-duty": 1,
@@ -230,8 +230,8 @@
"tool-reversed": false, "tool-reversed": false,
"tool-enable-mode": "disabled", "tool-enable-mode": "disabled",
"tool-direction-mode": "disabled", "tool-direction-mode": "disabled",
"min-spin": 0, "min-spin": 6000,
"max-spin": 255 "max-spin": 24000
}, },
"pwm-spindle": { "pwm-spindle": {
"pwm-min-duty": 1, "pwm-min-duty": 1,