https://github.com/dgl/go-web-dashboard
A simple dashboard control system.
https://github.com/dgl/go-web-dashboard
dashboard golang websocket
Last synced: about 1 year ago
JSON representation
A simple dashboard control system.
- Host: GitHub
- URL: https://github.com/dgl/go-web-dashboard
- Owner: dgl
- License: mit
- Created: 2019-11-16T22:41:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-16T22:42:17.000Z (over 6 years ago)
- Last Synced: 2025-04-13T03:15:17.906Z (about 1 year ago)
- Topics: dashboard, golang, websocket
- Language: Go
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-web-dashboard
A simple dashboard control system.
## What?
Simply run this somewhere, visit the URL it runs on from a device, name the
device, then you can control the page shown on the device from elsewhere.
The idea is mostly to make old tablets display some webpages easily. Use that as
a display around the house. This could work for displays in an office, but the
code isn't really hardened for such uses.
## Security
This does no auth -- wrap the service in something that does like one of the
many oauth proxies. Or run on a private network.
There's no XSRF protection, see note under "What?".
Some pages can't be embedded because they set `X-Frame-Options`. You can proxy
them to remove that (todo: some way of doing this automatically, e.g. proxy with
go proxy tools, inject `` maybe...).
## Full usage
```
go run github.com/dgl/go-web-dashboard/cmd/go-web-dashboard
```
Then visit http://localhost:4000/show
Type in a name.
In a different tab visit http://localhost:4000/, hit send, put in URL.
That's it.
## How do I...
### ...refresh the page regularly?
Just put something like `curl http://localhost:4000/send?name=...&url=...` in cron.
todo: just do this in the JS code...