blob: 34f29ee305fe7c01029854f6c721fde1bf80f76c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# MQTTv5 PERSONAL PUBLISHER
## TODO
- Migrate to taskfile
- Use protobufs as MQTTv5 payload
## 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
```
## 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
|