VCU Pro Web UI


License
MIT
Install
pip install vcu-ui==0.2.3

Documentation

VCU Pro User Interface

System PyPI - Python Version PyPI Build Status

Introduction

A minimal Web user interface for the VCU Pro automotive gateway. It displays important status information and allows basic maintenance actions. Written in python, based on bottle webserver.

Features

  • Display of most important system information
    • System date/time, load, temperature
    • Mobile link information (registration state, signal strength, bearer information)
  • Determine GSM cell location, including geographic position (uses OpenCellId and OpenStreetMap)
  • Execute test ping over mobile network
  • Create TCP service for u-Center GNSS tool
  • Restart GSM modem
  • Restart system (not yet implemented)

Preview

Info

Requirements

  • VCU Pro Hardware with developer image installed
  • Python 3.7+

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/vcu-ui.service. The service file is also available on Github

[Unit]
Description=VCU Pro Minimal WebUI
 
[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