aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2026-01-04 11:52:47 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2026-01-04 11:52:47 +0200
commit59491201976316a30ffc475dd99b0af02b5e997d (patch)
treeecf395594d5d289d855eba16f786e0fb66c1d814 /README.md
parent4e0ca0509c6b314eea8a7b2df6d093f5d9b7e70f (diff)
downloadpub-59491201976316a30ffc475dd99b0af02b5e997d.tar.zst
Both publisher and subscriber
Diffstat (limited to 'README.md')
-rw-r--r--README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5979c0b..1c61a59 100644
--- a/README.md
+++ b/README.md
@@ -3,3 +3,33 @@
## Downloading source data
curl -G "https://opendata.fmi.fi/wfs" --data-urlencode "service=WFS" --data-urlencode "version=2.0.0" --data-urlencode "request=GetFeature" --data-urlencode "storedquery_id=fmi::observations::weather::timevaluepair" --data-urlencode "fmisid=100968" --data-urlencode "starttime=2025-12-28T00:00:00Z" --data-urlencode "endtime=2025-12-28T01:00:00Z" --data-urlencode "timestep=60" -o observation.xml
+
+### Instructions
+
+Build
+
+```bash
+go build -o bin/publisher ./cmd/publisher
+go build -o bin/subscriber ./cmd/subscriber
+```
+
+Run
+
+```bash
+go run ./cmd/publisher
+go run ./cmd/subscriber
+```
+
+Install
+
+```bash
+go install ./cmd/publisher
+go install ./cmd/subscriber
+```
+
+Then run from anywhere
+
+```bash
+publisher
+subscriber
+```