renestraub / vcu-ui

VCU Pro minimal Web UI
MIT License
0 stars 1 forks source link

NG800/VCU Pro User Interface

System System

Introduction

A Web user interface for the NG800/VCU Pro automotive gateway. It displays important status information and allows basic maintenance actions. Written in Python, based on Tornado webserver.

Features

Short Description

Main Page

The following is the main page, showing most information. To refresh information, reload the page. The slider, next to the Refresh Page button, can be enabled for automatic page refresh.

Info

GNSS Status

The GNSS Status page displays information about the GNSS module and especially UDR settings. Since the page has to load a lot of GNSS modem information, it takes 1..2 seconds to load. Refresh page manually to update live data or after a configuration change.

Gnss

GNSS Config

The GNSS Config page displays the configuration file of the GNSS manager for edit. Changes can be saved and the GNSS manager restarted to apply the changes.

GnssConfig

Realtime Display

For drive tests the realtime page is most suitable. It display drive related information in realtime. The page is updated via a Websocket connection once a second. Check the green dot to see whether the connection to the VCU UI webserver is active. The dot blinks once a seconds to signal activity.

Realtime

WWAN Traffic Page

The mobile traffic on wwan0 interface is summarized on this page in tabular and graphical form. Use this page to check the accumulated traffic and compare against your mobile plan.

Traffic

Requirements

Quickstart

  1. Install the module with pip install vcu-ui
  2. Start webserver from shell vcu-ui-start
  3. Open the website with your browser 10.42.0.1

Run from Python

from vcuui.server import run_server

run_server(port=80)

Installation as systemd service

Create the following service file vcu-ui.service in /usr/lib/systemd/system/. You can use the following command to invoke the system editor.

systemctl edit --full --force vcu-ui

The service file is also available on Github

[Unit]
Description=VCU Pro Minimal WebUI
After=gnss-mgr.service

[Service]
Type=simple
ExecStart=/usr/bin/vcu-ui-start
PIDFile=/run/vcu-ui.pid

ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

Manage the service with the following systemd commands.

systemctl daemon-reload     # Tell systemd to search for new services
systemctl enable vcu-ui     # Enable service for next startup

systemctl start vcu-ui      # Start service right now

Revision History

v0.9.5 (20230923)

v0.9.4 (20230917)

v0.9.3 (20230217)

v0.9.2 (20230122)

v0.9.1 (20230108)

v0.9.0 (20221230)

v0.8.2 (20221007)

v0.8.0 (20211218)

v0.7.10 (20210822)

v0.7.0 (20210516)

v0.6.0 (20210420)

Feature release for environmental tests

v0.5.4 (20210411)

v0.5.3 (20210109)

v0.5.2 (20200904)

v0.5.0 (20200718)

v0.4.4 (20200716)

v0.4.2 (20200612)

Known Bugs & Limitations