kopia lustrzana https://github.com/weetmuts/wmbusmeters
Added Dockerfile
rodzic
7fa9f1079a
commit
ff88bd4d35
|
@ -0,0 +1,15 @@
|
|||
FROM alpine:latest AS build
|
||||
RUN apk add --no-cache alpine-sdk
|
||||
RUN git clone https://github.com/weetmuts/wmbusmeters.git
|
||||
WORKDIR /wmbusmeters
|
||||
RUN make
|
||||
|
||||
FROM alpine:latest as scratch
|
||||
ENV QEMU_EXECVE=1
|
||||
RUN apk add --no-cache mosquitto-clients libstdc++
|
||||
WORKDIR /wmbusmeters
|
||||
COPY --from=build /wmbusmeters/build/wmbusmeters /wmbusmeters/wmbusmeters
|
||||
RUN mkdir -p /wmbusmeters_data/logs/meter_readings && mkdir -p /wmbusmeters_data/etc/wmbusmeters.d/ && echo -e "loglevel=normal\ndevice=auto\nlistento=t1\nlogtelegrams=false\nformat=json\nmeterfiles=/wmbusmeters_data/logs/meter_readings\nmeterfilesaction=overwrite\nlogfile=/wmbusmeters_data/logs/wmbusmeters.log" > /wmbusmeters_data/etc/wmbusmeters.conf
|
||||
VOLUME /wmbusmeters_data/
|
||||
ENTRYPOINT ["/wmbusmeters/wmbusmeters", "--useconfig=/wmbusmeters_data/"]
|
||||
|
|
@ -214,10 +214,7 @@ multiple meters as long as they all require the same radio mode C1 or
|
|||
T1.
|
||||
|
||||
However if you use amb8465 or rtlwmbus, then you can listen to both C1
|
||||
and T1 telegrams at the same time. Unfortunately the original version
|
||||
of rtl_wmbus (`https://github.com/xaelsouth/rtl-wmbus.git`) cannot
|
||||
reliably listen to C1 telegrams, but the fork
|
||||
`https://github.com/afflux/rtl-wmbus.git` can!
|
||||
and T1 telegrams at the same time.
|
||||
|
||||
# Usage examples
|
||||
|
||||
|
|
|
@ -475,7 +475,7 @@ Detected detectAuto(string devicefile,
|
|||
if (ac == AccessCheck::NotSameGroup)
|
||||
{
|
||||
// The device exists but we cannot read it!
|
||||
error("You are not in the same group as the device /dev/rtlsdr\n");
|
||||
error("You are not in the same group as the device /dev/amb8465\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue