Skip to content

Commit

Permalink
Merge pull request #1303 from sdr-enthusiasts/updates
Browse files Browse the repository at this point in the history
Update deps and move to event
  • Loading branch information
fredclausen authored Oct 24, 2024
2 parents d0d7608 + 7280bd1 commit 49e27aa
Show file tree
Hide file tree
Showing 7 changed files with 521 additions and 531 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/[email protected]
Expand Down
1,001 changes: 496 additions & 505 deletions acarshub-typescript/package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions acarshub-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "acarshub-typescript",
"version": "3.6.0",
"version": "3.7.0",
"description": "Web front end for the docker-acarshub project",
"main": "index.js",
"repository": "https://github.com/sdr-enthusiasts/docker-acarshub",
Expand All @@ -13,19 +13,19 @@
"author": "Fred Clausen",
"license": "GPL-3.0-only",
"devDependencies": {
"@babel/core": "7.25.8",
"@babel/preset-env": "7.25.8",
"@types/jquery": "3.5.31",
"@babel/core": "7.25.9",
"@babel/preset-env": "7.25.9",
"@types/jquery": "3.5.32",
"@types/js-cookie": "3.0.6",
"@types/leaflet": "1.9.13",
"@types/node": "22.7.7",
"@types/leaflet": "1.9.14",
"@types/node": "22.7.9",
"@types/showdown": "2.0.6",
"autoprefixer": "10.4.20",
"babel-loader": "9.2.1",
"css-loader": "7.1.2",
"favicons": "7.2.0",
"favicons-webpack-plugin": "6.0.1",
"html-webpack-plugin": "5.6.2",
"html-webpack-plugin": "5.6.3",
"inject-body-webpack-plugin": "1.3.0",
"path": "0.12.7",
"postcss-loader": "8.1.1",
Expand All @@ -40,7 +40,7 @@
"webpack-image-loader": "0.1.2"
},
"dependencies": {
"@airframes/acars-decoder": "1.6.11",
"@airframes/acars-decoder": "1.6.12",
"@fortawesome/fontawesome-free": "6.6.0",
"@fortawesome/fontawesome-svg-core": "6.6.0",
"@fortawesome/free-regular-svg-icons": "6.6.0",
Expand Down
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/scripts/webapp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [[ ${ENABLE_WEB,,} =~ true ]]; then
-b "0.0.0.0:8888" \
-w 1 \
--no-sendfile \
-k eventlet \
-k gevent \
acarshub:app \
--timeout 120 \
2>&1 | stdbuf -oL sed --unbuffered '/^$/d' | \
Expand Down
23 changes: 11 additions & 12 deletions rootfs/webapp/acarshub.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
# You should have received a copy of the GNU General Public License
# along with acarshub. If not, see <http://www.gnu.org/licenses/>.

import eventlet

eventlet.monkey_patch()
import acarshub_helpers # noqa: E402
import acarshub_configuration # noqa: E402
import acarshub_logging # noqa: E402
Expand Down Expand Up @@ -362,14 +359,14 @@ def message_listener(message_type=None, ip="127.0.0.1", port=None):
acarshub_logging.log(
"Reassembly successful, message not skipped after all!",
f"{message_type.lower()}Generator",
level=LOG_LEVEL["DEBUG"]
level=LOG_LEVEL["DEBUG"],
)
except Exception as e:
# reassembly didn't work, don't do anything but print an error when debug is enabled
acarshub_logging.log(
f"Reassembly failed {e}: {combined}",
f"{message_type.lower()}Generator",
level=LOG_LEVEL["WARNING"]
level=LOG_LEVEL["WARNING"],
)

# forget the partial message, it can't be useful anymore
Expand All @@ -389,7 +386,9 @@ def message_listener(message_type=None, ip="127.0.0.1", port=None):
# last element in the list, could be a partial json object
partial_message = part
acarshub_logging.log(
f"Skipping Message: {part}", f"{message_type.lower()}Generator", LOG_LEVEL["DEBUG"]
f"Skipping Message: {part}",
f"{message_type.lower()}Generator",
LOG_LEVEL["DEBUG"],
)
continue
except Exception as e:
Expand Down Expand Up @@ -432,9 +431,7 @@ def message_listener(message_type=None, ip="127.0.0.1", port=None):
if not acarshub_configuration.QUIET_MESSAGES:
print(f"MESSAGE:{message_type.lower()}Generator: {msg}")

client_message = generateClientMessage(
que_type, formatted_message
)
client_message = generateClientMessage(que_type, formatted_message)

# add to recent message que for anyone fresh loading the page
list_of_recent_messages.append(client_message)
Expand All @@ -460,9 +457,11 @@ def init_listeners(special_message=""):

# show log message if this is container startup
acarshub_logging.log(
"Starting Data Listeners"
if special_message == ""
else "Checking Data Listeners",
(
"Starting Data Listeners"
if special_message == ""
else "Checking Data Listeners"
),
"init",
level=LOG_LEVEL["INFO"] if special_message == "" else LOG_LEVEL["DEBUG"],
)
Expand Down
6 changes: 3 additions & 3 deletions rootfs/webapp/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
eventlet==0.37.0
Flask==3.0.3
Flask-SocketIO==5.3.7
gunicorn[eventlet]==23.0.0
Flask-SocketIO==5.4.1
gevent==24.10.3
gunicorn[gevent]==23.0.0
requests==2.32.3
rrdtool==0.1.16
schedule==1.2.2
Expand Down
2 changes: 1 addition & 1 deletion version-nextgen
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.6.0
v3.7.0

0 comments on commit 49e27aa

Please sign in to comment.