Docker image with interceptor driver and neowx skin

360 views
Skip to first unread message

Bruno BORDAS

unread,
Nov 10, 2019, 1:09:15 PM11/10/19
to weewx-user
Dear weewx users.

After dozens hours of researches and tries, I'm proud to provide my own docker image of weewx.

It runs on Debian stretch, build from sources, with the interceptor driver and neowx skin.

I use it with Pihole to grab the data.
Everything (I hope) is written in the repo you can find here: https://github.com/MrNonoss/WeewX-Docker

Feel free to review and comment it.

Zsolt Máté

unread,
Apr 13, 2020, 7:13:41 PM4/13/20
to weewx-user
Hi Bruno.
I'm getting an error while setting up my network.

WARNING: Some networks were defined but are not used by any service: macvlan_network
Attaching to

My docker compose looks like this:
version: '2'
networks:
  macvlan_network:
    driver: macvlan
    driver_opts:
      parent: ens18
    ipam:
      config:
        - subnet: 192.168.2.0/24
          gateway: 192.168.2.1
          ip_range: 192.168.2.240/28

my network interfaces are:
docker@docker:~/weewx/network$ ifconfig -s -a
Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
docker0   1500    10611      0      0 0         18836      0      0      0 BMRU
ens18     1500   434686      0     67 0         24242      0      0      0 BMRU
lo       65536      190      0      0 0           190      0      0      0 LRU
veth1a31  1500     1299      0      0 0          1680      0      0      0 BMRU

Do you have an idea what am I doing wrong?

Bruno BORDAS

unread,
Apr 13, 2020, 8:00:04 PM4/13/20
to weewx...@googlegroups.com
Hi, 

Did you specify the network at the end of the docker-compose?

networks:
macvlan_macvlan_network:
external: true

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/Rr_XyWLONZ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/2f63f6cb-5116-4f5c-98c2-d85bf7dc9892%40googlegroups.com.

Zsolt Máté

unread,
Apr 13, 2020, 8:05:05 PM4/13/20
to weewx-user
Yes, I did.
networks:
  macvlan_macvlan_network:
    external: true
I renamed the file to docker-compose.yml, as well

To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.

Zsolt Máté

unread,
Apr 13, 2020, 8:26:54 PM4/13/20
to weewx-user
If I'm trying to run docker-compose in the weewx folder, I get this:
ERROR: Network macvlan_macvlan_network declared as external, but could not be found. Please create the network manually using `docker network create macvlan_macvlan_network` and try again.
Should I run "docker network create macvlan_macvlan_network" manually?

On Tuesday, April 14, 2020 at 12:00:04 PM UTC+12, Bruno BORDAS wrote:

To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.

Bruno BORDAS

unread,
Apr 13, 2020, 8:32:04 PM4/13/20
to weewx...@googlegroups.com
You have to run two "docker-compose up -d":
- One in the network directory
- One in the weewx directory

Can you check you networks with "docker network ls"?
Then maybe you shall adapt the weewx docker-compose with the given name of the network

To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/ae038e0b-2e57-4130-9bb0-8bc1314bcf12%40googlegroups.com.

Zsolt Máté

unread,
Apr 13, 2020, 8:39:05 PM4/13/20
to weewx-user
docker network ls returns:
Enter code here...NETWORK ID          NAME                DRIVER              SCOPE
416109297adb        bridge              bridge              local
6bad4fea28c7        host                host                local
05ffebe199bc        none                null                local

First, "docker-compose d" has to be run in /weewx/network, then in /weewx.
The one in /network returns
docker@docker:~/weewx/network$ docker-compose up -d
WARNING: Some networks were defined but are not used by any service: macvlan_network

the one in weewx is complaining that the network is not there, which is correct.
docker@docker:~/weewx$ docker-compose up -d
ERROR: Network macvlan_macvlan_network declared as external, but could not be found. Please create the network manually using `docker network create macvlan_macvlan_network` and try again.

Bruno BORDAS

unread,
Apr 13, 2020, 8:45:09 PM4/13/20
to weewx...@googlegroups.com
Well, that's weird...
I would try to manually create the network.

But it's what I used on my setup, so...
Please let me know if it works

To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/96c7213f-baf8-4cc1-a968-054292e59a74%40googlegroups.com.

Zsolt Máté

unread,
Apr 13, 2020, 8:59:08 PM4/13/20
to weewx-user
I ran docker create network manually
docker@docker:~/weewx$ docker network create macvlan_macvlan_network
e3550d13e1334022c28620d71a6aaf8182b6ef1cea33ac279456c16b55267832
Now running docker-compose -d in /weewx returns:
docker@docker:~/weewx$ docker-compose up -d
Starting weewx-core ...
Starting weewx-core ... error

ERROR: for weewx-core  user specified IP address is supported only when connecting to networks with user configured subnets

ERROR: for weewx-core  user specified IP address is supported only when connecting to networks with user configured subnets
ERROR: Encountered errors while bringing up the project.

Bruno BORDAS

unread,
Apr 13, 2020, 9:03:03 PM4/13/20
to weewx...@googlegroups.com
Yeah, probably because you didn't specify networks options, like iface, etc...

To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7dce730c-f537-4970-96cf-77590f3694d4%40googlegroups.com.

Zsolt Máté

unread,
Apr 13, 2020, 9:07:21 PM4/13/20
to weewx-user
Well, I just ran that command, I have no docker knowledge.
What can I do next?

Bruno BORDAS

unread,
Apr 13, 2020, 9:12:01 PM4/13/20
to weewx...@googlegroups.com
I do use portainer to have a better view of my containers, images and networks:

The install il very straigtforward:

docker volume create portainer_data && docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer tf

With this, you have a web page at localhost:9000 allowing you to monitor and configure networks.

I'm still trying to understant why you can't create network with compose

To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6b08d290-592a-44e3-9975-e2186c38ef20%40googlegroups.com.

Zsolt Máté

unread,
Apr 13, 2020, 9:18:30 PM4/13/20
to weewx-user
I have portainer installed.
If you think It's faster, and you've got time, I can give you access to my system via SSH.

2020-04-14 13_17_06-Window.png

Bruno BORDAS

unread,
Apr 13, 2020, 9:20:50 PM4/13/20
to weewx...@googlegroups.com
I won't have access to the portainer ui.
However, as you can notice, this network does not use the macvlan driver, but the bridge one.
This is probably why it does not work

To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e84d6760-3e9c-4bd1-9d94-c690aefdf3ab%40googlegroups.com.

2020-04-14 13_17_06-Window.png

Zsolt Máté

unread,
Apr 13, 2020, 9:22:56 PM4/13/20
to weewx-user
I can open a port to my portainer as well, that's not an issue. Just tell me what you need.

Bruno BORDAS

unread,
Apr 13, 2020, 9:24:32 PM4/13/20
to weewx...@googlegroups.com
Well, maybe we can try first the ssh so that i will try to create with docker-compose

To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/bc306325-f545-403e-ba50-c15164be8537%40googlegroups.com.

Bruno BORDAS

unread,
Apr 13, 2020, 9:24:52 PM4/13/20
to weewx...@googlegroups.com
But tell me where is your work directory

To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/bc306325-f545-403e-ba50-c15164be8537%40googlegroups.com.

Zsolt Máté

unread,
Apr 13, 2020, 9:28:28 PM4/13/20
to weewx-user
I've cloned your git into my home directory.
so it is /home/docker/weewx

Can I send you an email to this address with the ssh credentials?

Bruno BORDAS

unread,
Apr 13, 2020, 9:29:41 PM4/13/20
to weewx...@googlegroups.com
Sure, no problem
I do not make promises to make it work ^^

To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/5950560f-3f71-47ec-a8d9-93690e1e1382%40googlegroups.com.

Message has been deleted

Mark Sanchez

unread,
Dec 4, 2023, 12:30:52 PM12/4/23
to weewx-user
This is great! Thanks for making this. I am still stumbling when trying to get the docker image up and running. I'm not Docker savvy though so it's been a struggle. Right now, the docker compose command can't seem to get past weewx-core being an undefined volume. Is this a directory I need to create? Thanks.

Bruno BORDAS

unread,
Dec 4, 2023, 1:01:49 PM12/4/23
to weewx...@googlegroups.com
Woo this was a long time ago 😅
Let me try to remember.

No ${PWD} (Print Working Directory) is not for a password , but it is the location of your source code AKA where is you docker-compose file.

Without knowing much your errors, difficult to help.

Le lun. 4 déc. 2023, 18:17, Mark Sanchez <chez...@gmail.com> a écrit :
This is super cool as I have now purchased the same weather station. However, I'm terrible with Docker. I can't seem to get this running. It seems to keep tripping at steps. Right now I'm stuck because something needs to happen with the ${PWD} variable. Do I need to change that to just my password in the docker-compose.yaml file? I appreciate you setting all of this up though!

On Sunday, November 10, 2019 at 10:09:15 AM UTC-8 Bruno BORDAS wrote:

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/Rr_XyWLONZ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Mark Sanchez

unread,
Dec 4, 2023, 2:22:43 PM12/4/23
to weewx-user
Okay. I'll start with the network connection. I have it in the network folder and have edited the addresses. Do I need to have NGINX installed already? When I run docker compose up -d it just says "No Service Selected". I am assuming it doesn't realize it's supposed to run a MACVLAN network option?

When I run docker network ls I see:
sudo docker network ls
NETWORK ID     NAME            DRIVER    SCOPE
57223ea2cf02   bridge          bridge    local
49360022eadb   host            host      local
dab0c8fc1570   none            null      local
00f80f463ca4   weewx_default   bridge    local

Bruno BORDAS

unread,
Dec 4, 2023, 11:16:57 PM12/4/23
to weewx...@googlegroups.com
I'm not in a position to test right now.
I would try to merge the compose file from network with the main one. Try to define the MacVLan in the main compose.

If I remember correctly, I separated both because I needed this second network with other containers too.

Sorry, I'm moving home at the moment and not setup yet 😅

Mark Sanchez

unread,
Dec 13, 2023, 12:59:16 PM12/13/23
to weewx-user
No worries. I'm going in another direction with the ambientweatherapi instead. Cheers.
Reply all
Reply to author
Forward
0 new messages