Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pwntus/dust-webapp
A Vue.js app showing the dust levels (dustenivå) at our C.S. Dept.
https://github.com/pwntus/dust-webapp
Last synced: 2 months ago
JSON representation
A Vue.js app showing the dust levels (dustenivå) at our C.S. Dept.
- Host: GitHub
- URL: https://github.com/pwntus/dust-webapp
- Owner: Pwntus
- Created: 2018-02-05T17:31:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T18:16:37.000Z (about 2 years ago)
- Last Synced: 2024-10-07T15:41:45.232Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.13 MB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> Duster overalt.
>
> \- Fredrik H. Rasch![Example Screenshot](public/demo.png?raw=true "Example")
## Watch it live!
[http://startiot.cs.uit.no/info/](http://startiot.cs.uit.no/info/)## Build Setup
``` bash
# install dependencies
npm install# serve with hot reload at localhost:8080
npm run serve# build for production with minification
npm run build
```# NEW: Configure Your Own Modules!
Simply append a JSON-string at the end of the URL, like this: [http://startiot.cs.uit.no/info/[{"name":"bus-card","title":"UiT Southbound","from":"19021323:2"},{"name":"airport-card","title":"Helsinki-Vantaan lentoasema","center":"60.32,24.95","zoom":"9"}]](http://startiot.cs.uit.no/info/%5B%7B%22name%22%3A%22bus-card%22%2C%22title%22%3A%22UiT%20Southbound%22%2C%22from%22%3A%2219021323%3A2%22%7D%2C%7B%22name%22%3A%22airport-card%22%2C%22title%22%3A%22Helsinki-Vantaan%20Lentoasema%22%2C%22center%22%3A%2260.32%2C24.95%22%2C%22zoom%22%3A%229%22%7D%5D)
The JSON-string must be an array containing object representations of each module to add to the screen. The following module definitions are available:
**Dust-card**
```json
{
"name": "dust-card",
"thingId": "Managed IoT Cloud Thing ID"
}
```**Bus Card**
```json
{
"name": "bus-card",
"title": "The module title",
"from": "Travel magic from ID"
}
```**Airport Card**
```json
{
"name": "airport-card",
"title": "The module title",
"center": "lat,lng coordinates of the map center",
"zoom": "0-18 value of the starting zoom level of the map"
}
```**TD-card**
```json
{
"name": "td-card"
}
```**Example**
```json
[
{
"name": "bus-card",
"title": "UiT Southbound",
"from": "19021323:2"
},
{
"name": "airport-card",
"title": "Helsinki-Vantaan lentoasema",
"center": "60.32,24.95",
"zoom": "9"
},
{
"name": "dust-card",
"thingId": "00001337"
}
]
```