# @capevace/mission-control

> Beautiful smart home dashboard software built on Node.js

Latest version **1.1.2** (published 2021-02-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @capevace/mission-control
pnpm add @capevace/mission-control
yarn add @capevace/mission-control
bun add @capevace/mission-control
```

Provides the command `mission-control`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2021-02-02 |
| First published | 2020-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 23 |
| Unpacked size | 8.8 MB |
| Known vulnerabilities | 0 (+15 in 4 direct dependencies) |
| Install scripts | no |
| Author | Lukas Mateffy |
| Maintainers | capevace |

## Links

- npm: https://www.npmjs.com/package/@capevace/mission-control
- Repository: https://github.com/capevace/hal-6900-mission-control
- Homepage: https://github.com/capevace/hal-6900-mission-control#readme
- Issues: https://github.com/capevace/hal-6900-mission-control/issues
- npm.io page: https://npm.io/package/@capevace/mission-control

## Dependencies (23)

- [rc](https://npm.io/package/rc.md) ^1.2.8
- [uuid](https://npm.io/package/uuid.md) ^3.3.2
- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [express](https://npm.io/package/express.md) ^4.16.4
- [db-hafas](https://npm.io/package/db-hafas.md) ^5.0.2
- [passport](https://npm.io/package/passport.md) ^0.4.0
- [commander](https://npm.io/package/commander.md) ^6.1.0
- [public-ip](https://npm.io/package/public-ip.md) ^3.0.0
- [socket.io](https://npm.io/package/socket.io.md) ^2.2.0
- [superagent](https://npm.io/package/superagent.md) ^5.0.2
- [internal-ip](https://npm.io/package/internal-ip.md) ^6.1.0
- [object-diff](https://npm.io/package/object-diff.md) 0.0.4
- [on-finished](https://npm.io/package/on-finished.md) ^2.3.0
- [querystring](https://npm.io/package/querystring.md) ^0.2.0
- [module-alias](https://npm.io/package/module-alias.md) ^2.2.0
- [passport-jwt](https://npm.io/package/passport-jwt.md) ^4.0.0
- [eventemitter2](https://npm.io/package/eventemitter2.md) ^5.0.1
- [socketio-auth](https://npm.io/package/socketio-auth.md) ^0.1.1
- [express-session](https://npm.io/package/express-session.md) ^1.16.1
- [qrcode-terminal](https://npm.io/package/qrcode-terminal.md) ^0.12.0
- [@oznu/hap-client](https://npm.io/package/@oznu/hap-client.md) ^1.6.0
- [systeminformation](https://npm.io/package/systeminformation.md) ^4.27.3
- [http-proxy-middleware](https://npm.io/package/http-proxy-middleware.md) ^0.20.0

## Recent versions

- 1.1.2 (latest) — 2021-02-02
- 2.0.0-rc22 (next) — 2022-02-17
- 2.0.0-rc20 — 2022-02-17
- 2.0.0-rc16 — 2021-07-31
- 2.0.0-rc15 — 2021-07-31
- 2.0.0-rc14 — 2021-07-19
- 2.0.0-rc13 — 2021-07-19
- 2.0.0-rc12 — 2021-06-23
- 2.0.0-rc11 — 2021-06-15
- 2.0.0-rc10 — 2021-06-14
- 2.0.0-rc9 — 2021-06-13
- 2.0.0-rc8 — 2021-03-24
- 2.0.0-rc7 — 2021-03-24
- 2.0.0-rc6 — 2021-03-13
- 2.0.0-rc5 — 2021-03-13
- … 23 more at https://npm.io/package/@capevace/mission-control/versions

## README

<div align="center">
	<a href="https://mateffy.me/mission-control-project">
		<img src="resources/icon-web.png">
	</a>
	<h1>Mission Control</h1>
	<p>
		Beautiful home dashboard software built on Node.js 
	</p>
	<p>
		<a href="https://mateffy.me/mission-control-project">Project Homepage</a>
		<span>&nbsp;|&nbsp;</span>
		<a href="https://mateffy.me/mission-control">Docs</a>
	</p>
</div>

<br>

When you start setting up software for your home – be it home automation, a NAS system or something else – you’ll end up having a few different dashboards for control, that are all kind of ugly anyway. That’s where Mission Control comes in. It is a beatutiful and easy-to-configure dashboard system for your home!

## Features

- Control your HomeKit devices on the dashboard
- Embeddable file browser, youtube downloader and Spotify player
- Sleek, customizable UI

## Installation

**Install mission-control and the single-sign-on auth server.** Unless reconfigured, mission control will launch a single-sign-on server as a node subprocess.

```sh
$ npm install -g @capevace/mission-control @capevace/single-sign-on
```

## Usage

You can now start the server like you would any binary.

```sh
$ mission-control --version
v0.3.2
```

### Options

```
Usage: mission-control [options]

Options:
  -V, --version       output the version number
  -u, --url <url>     the url mission control is reachable at
  -p, --port <port>   the port to use for mission control
  -n, --no-sso        disable internal auth server process (to use own)
  --auth-url <url>    the url to use for the single-sign-on server
  --auth-port <port>  the port to use for the single-sign-on server
  -h, --help          display help for command
```

### Config

A config file for mission-control will be created at `$HOME_DIR/.mission-control/config`. This can also be used to configure mission-control. However, options passed as command line arguments override settings in this file.

## Screenshots

<img src="resources/screenshot.png">

## Changelog

### Version 0.5.4

- Rewrote logging system

### Version 0.5.3

- Added COVID widget to dashboard

### Version 0.5.2

- Fixed bahn algorithm skipping not displaying trains with SEV present

### Version 0.5.1

- Fixed dashboard layout now being loaded from database correctly

### Version 0.5.0

- New Dashboard is now customizeable

### Version 0.4.2

- Fixes error preventing the auth proxy from returning properly

### Version 0.4.1

- Fixes some minor security issues with dependencies

### Version 0.4.0

- The SSO server is now being proxied by default. This can be disabled with the `--no-proxy` option or by disabling it in the config file.
- Instead of localhost, the default url is now the local ip

## FAQ

### Running Mission Control on port 80

On Linux, running an http server on port 80 requires root priviliges. Generally this isn't a problem as you can simply `sudo mission-control -p 80` which works, but this approach falls apart when using systemd.

I found this workaround which seems to be the safest option to use instead:

```sh
sudo apt-get install libcap2-bin
sudo setcap 'cap_net_bind_service=+ep' /usr/bin/node # Replace path to node binary
```

## Authors

Lukas Mateffy – [@Capevace](https://twitter.com/capevace) – [mateffy.me](https://mateffy.me)

Distributed under the MIT license. See `LICENSE` for more information.

## Contributing

1. Fork it (<https://github.com/capevace/mission-control/fork>)
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request

---
_Source: https://npm.io/package/@capevace/mission-control · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
