This commit is contained in:
parent
b8cfb9f535
commit
83fe748567
@ -6,7 +6,7 @@ steps:
|
|||||||
- name: build go
|
- name: build go
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go build
|
- go build .
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
FROM Alpine:latest
|
FROM alpine:latest
|
||||||
COPY ubnt-freifunk-map-api /bin/ubnt-freifunk-map-api
|
WORKDIR /opt/
|
||||||
|
|
||||||
|
ADD ./ubnt-freifunk-map-api /opt/ubnt-freifunk-map-api
|
||||||
|
ADD ./devices.json /opt/devices.json
|
||||||
|
RUN chmod +x /opt/ubnt-freifunk-map-api
|
||||||
|
|
||||||
CMD /bin/ubnt-freifunk-map-api
|
ENTRYPOINT [ "/opt/ubnt-freifunk-map-api" ]
|
20
example.json
20
example.json
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"timestamp": "2020-12-31T12:19:04+0100",
|
"timestamp": "2021-01-01T21:16:19+0100",
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"firstseen": "2020-01-20T17:38:03+0000",
|
"firstseen": "2020-01-20T17:38:03+0000",
|
||||||
"lastseen": "2020-12-31T11:18:07+0000",
|
"lastseen": "2021-01-01T20:16:07+0000",
|
||||||
"is_online": true,
|
"is_online": true,
|
||||||
"is_gateway": false,
|
"is_gateway": false,
|
||||||
"clients": 0,
|
"clients": 0,
|
||||||
@ -11,9 +11,9 @@
|
|||||||
"clients_wifi5": 0,
|
"clients_wifi5": 0,
|
||||||
"clients_other": 0,
|
"clients_other": 0,
|
||||||
"rootfs_usage": 0,
|
"rootfs_usage": 0,
|
||||||
"loadavg": 0.26,
|
"loadavg": 0.02,
|
||||||
"memory_usage": 0.67,
|
"memory_usage": 0.66,
|
||||||
"uptime": "2020-11-22T14:02:12+0000",
|
"uptime": "2020-11-22T14:02:13+0000",
|
||||||
"gateway_nexthop": "18e8292f7de6",
|
"gateway_nexthop": "18e8292f7de6",
|
||||||
"gateway": "a28cae6ff604",
|
"gateway": "a28cae6ff604",
|
||||||
"location": {
|
"location": {
|
||||||
@ -41,7 +41,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"firstseen": "2020-05-05T20:08:20+0000",
|
"firstseen": "2020-05-05T20:08:20+0000",
|
||||||
"lastseen": "2020-12-31T11:18:26+0000",
|
"lastseen": "2021-01-01T20:15:52+0000",
|
||||||
"is_online": true,
|
"is_online": true,
|
||||||
"is_gateway": false,
|
"is_gateway": false,
|
||||||
"clients": 0,
|
"clients": 0,
|
||||||
@ -49,9 +49,9 @@
|
|||||||
"clients_wifi5": 0,
|
"clients_wifi5": 0,
|
||||||
"clients_other": 0,
|
"clients_other": 0,
|
||||||
"rootfs_usage": 0,
|
"rootfs_usage": 0,
|
||||||
"loadavg": 0.25,
|
"loadavg": 0.27,
|
||||||
"memory_usage": 0.68,
|
"memory_usage": 0.68,
|
||||||
"uptime": "2020-10-24T21:47:32+0000",
|
"uptime": "2020-10-24T21:47:33+0000",
|
||||||
"gateway_nexthop": "18e8292f7de6",
|
"gateway_nexthop": "18e8292f7de6",
|
||||||
"gateway": "a28cae6ff604",
|
"gateway": "a28cae6ff604",
|
||||||
"location": {
|
"location": {
|
||||||
@ -83,8 +83,8 @@
|
|||||||
"type": "wifi",
|
"type": "wifi",
|
||||||
"source": "18e8298ec64d",
|
"source": "18e8298ec64d",
|
||||||
"target": "18e829dcc37e",
|
"target": "18e829dcc37e",
|
||||||
"source_tq": 0.345,
|
"source_tq": 0.315,
|
||||||
"target_tq": 0.345,
|
"target_tq": 0.315,
|
||||||
"source_addr": "18:e8:29:8e:c6:4d",
|
"source_addr": "18:e8:29:8e:c6:4d",
|
||||||
"target_addr": "18:e8:29:dc:c3:7e"
|
"target_addr": "18:e8:29:dc:c3:7e"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user