Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
herbetom committed Oct 14, 2024
0 parents commit 3f91642
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploy GitHub Pages

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download ZIP file
run: curl -L -o meshviewer-build.zip https://github.com/freifunk/meshviewer/releases/download/v12.4.0/meshviewer-build.zip

- name: Extract ZIP file
run: unzip meshviewer-build.zip -d output

- name: Add configuration file
run: cp config.json output/config.json

- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: output

deploy:
needs: build

permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
output/
66 changes: 66 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"dataPath": [
"https://yanic.batman15.ffffm.net/"
],
"siteName": "Freifunk Frankfurt",
"maxAge": 21,
"nodeZoom": 19,
"mapLayers": [
{
"name": "OpenStreetMap",
"url": "https://tiles.darmstadt.freifunk.net/{z}/{x}/{y}.png",
"config": {
"type": "osm",
"maxZoom": 19,
"attribution": "<a href='https://github.com/freifunk-ffm/meshviewer/issues' target='_blank'>Report Bug</a> | Map data (c) <a href\"http://openstreetmap.org\">OpenStreetMap</a> contributor"
}
}
],
"fixedCenter": [
[ 50.5099, 8.1393 ],
[ 49.9282, 9.3164 ]
],
"nodeInfos": [
{
"name": "Clientstatistik",
"href": "{{ salt['pillar.get']('grafana:grafana_url') }}/d/000000002/nodes-details?var-name={NODE_CUSTOM}&from=now-7d&to=now-1m",
"image": "{{ salt['pillar.get']('grafana:grafana_url') }}/render/d-solo/000000003/node-details-for-map?panelId=7&var-id={NODE_ID}&from=now-7d&to=now-1m&width=600&height=300&theme=light&tz=Europe%2FBerlin&_t={TIME}",
"title": "Knoten {NODE_ID} ({NODE_NAME})"
},
{
"name": "Traffic",
"href": "{{ salt['pillar.get']('grafana:grafana_url') }}/d/000000002/nodes-details?var-name={NODE_CUSTOM}&from=now-7d&to=now-1m",
"image": "{{ salt['pillar.get']('grafana:grafana_url') }}/render/d-solo/000000003/node-details-for-map?panelId=1&var-id={NODE_ID}&from=now-7d&to=now-1m&width=600&height=300&theme=light&tz=Europe%2FBerlin&_t={TIME}",
"title": "Knoten {NODE_ID} ({NODE_NAME})"
},
{
"name": "Uptime",
"href": "{{ salt['pillar.get']('grafana:grafana_url') }}/d/000000002/nodes-details?var-name={NODE_CUSTOM}&from=now-7d&to=now-1m",
"image": "{{ salt['pillar.get']('grafana:grafana_url') }}/render/d-solo/000000003/node-details-for-map?panelId=5&var-id={NODE_ID}&from=now-7d&to=now-1m&width=600&height=300&theme=light&tz=Europe%2FBerlin&_t={TIME}",
"title": "Knoten {NODE_ID} ({NODE_NAME})"
},
{
"name": "CPU Auslastung",
"href": "{{ salt['pillar.get']('grafana:grafana_url') }}/d/000000002/nodes-details?var-name={NODE_CUSTOM}&from=now-7d&to=now-1m",
"image": "{{ salt['pillar.get']('grafana:grafana_url') }}/render/d-solo/000000003/node-details-for-map?panelId=2&var-id={NODE_ID}&from=now-7d&to=now-1m&width=600&height=300&theme=light&tz=Europe%2FBerlin&_t={TIME}",
"title": "Knoten {NODE_ID} ({NODE_NAME})"
},
{
"name": "Neighbours",
"href": "{{ salt['pillar.get']('grafana:grafana_url') }}/d/000000002/nodes-details?var-name={NODE_CUSTOM}&from=now-7d&to=now-1m",
"image": "{{ salt['pillar.get']('grafana:grafana_url') }}/render/d-solo/000000003/node-details-for-map?panelId=4&var-id={NODE_ID}&from=now-7d&to=now-1m&width=600&height=300&theme=light&tz=Europe%2FBerlin&_t={TIME}",
"title": "Knoten {NODE_ID} ({NODE_NAME})"
}
],
"globalInfos": [
{
"name": "Wochenstatistik",
"href": "{{ salt['pillar.get']('grafana:grafana_url') }}/d/000000002/deck?from=now-7d&to=now-1m",
"image": "{{ salt['pillar.get']('grafana:grafana_url') }}/render/d-solo/000000003/deck?&panelId=11&from=now-7d&to=now-1m&width=600&height=300&theme=light&tz=Europe%2FBerlin&_t={TIME}",
"title": "Bild der Wochenstatistik"
}
],
"node_custom": "/[^.*]/ig",
"deprecation_enabled": true,
"deprecation_text": "Warnung: Dieser Knoten ist veraltet und wird seit dem 30. September 2020 nicht mehr unterstützt. Mehr Infos unter <a href='https://supportende.ffm.freifunk.net/'>supportende.ffm.freifunk.net</a>. Wenn du der Eigentümer des Gerätes bist, bitten wir dich, das Gerät dringend zu ersetzen, um weiterhin am Netz teilnehmen zu können."
}
Binary file added meshviewer-build.zip
Binary file not shown.

0 comments on commit 3f91642

Please sign in to comment.