RaspberryPi, Canique RadioHat; installation

Installation was running since 2y (?).
RasPi (3B+), Canique RadioHat collecting data from 4 Climat stations. Just like Canique Gateway, but with WLAN instead of wired IP.
SD card of Raspberry failed.

Set up new SD with latest OS (Pi OS, Legacy 32bit Debian Bullseye) dated 2024-10-22.

RadioHat no more listed on canique.de as product, therefore only old installation routine available that I had stored locally.
Installation.sh could be downloaded from respective source (wget).

Access to repository of InfluxDB is failing by timeout.

Would be great if someone could share a working install.sh or point out how to work around it.

Thank yoou so much, really love that stuff to always see various temp/humidity around the house
InstLog.txt (13,4 KB)

Hello Günter,

The Radio Hat is only documented on the canique.com site, that’s why you maybe did not find the product page.

I assume you followed this procedure: https://github.com/canique/gateway/tree/main/raspberry-pi-radio-hat

Let’s have a look at the first error from your log

Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate.

Meaning: the certificate date of packages.canique.com is in the future. I’ve just cross-checked this and the certificate is valid from 20.11.2024 to 18.02.2025 - so it is perfectly valid.
When your Raspberry thinks that this time span is in the future, this lets me conclude, that the system date of your raspberry must be in the past.
So first thing to check would be: your system date. It needs to be correct for HTTPS to work - this is valid on every computer and for every https connection.

Usually your raspberry should synchronize the system date automatically with NTP servers. If you wait a minute or two after boot, this should fix itself automatically. If it does not, this can be a hint to a problem with your network connection (e.g.: port blocked)

Next error message:

Cannot initiate the connection to repos.influxdata.com:443 (2600:9000:2304:9600:11:fe8d:7d40:93a1). - connect (101: Network is unreachable)

My DNS shows a different IPv6 address for repos.influxdata.com
Is your DNS setup correct?
Do you have IPv6 enabled in your network? Your Raspberry tries to connect via an IPv6 address. If your home network does not support IPv6, this won’t work.
You can check whether your Raspberry/Network supports IPv6 e.g. by running

curl -6 -s https://www.ipv6.balug.org/myip

on your raspberry.

Regarding the subsequent errors:
Problem with archive.raspberrypi.org also gives a hint to a wrong system date.
I tried a ping of 18.66.27.77 (repos.influxdata.com) - works flawlessly.
In your setup the connection times out.
I also tried

curl -s https://repos.influxdata.com

Works. In your setup it times out.

Recommendations:

  1. First run (this might update any root certificates):

sudo apt-get update
sudo apt-get upgrade

  1. Check / Fix systemdate
  2. Check network (did you do any changes to your network?)

I have done a test now:

  1. Used rpi-imager to install Raspberry Pi OS (Legacy, 32 Bit, 2024-10-22) on an SD card. I used the settings on the rpi-imager tool to set time zone and keyboard layout. I’m using a wired ethernet connection.
  2. Then I ran the instructions from gateway/raspberry-pi-radio-hat at main · canique/gateway · GitHub - the install.sh ran without troubles.

I ran no other commands than listed on the github page. I just did a copy&paste from there.

There were no errors. (My network does not support IPv6.)
The date/time was correct from the beginning.

This is what my network looks like on the Raspberry:

pi@raspi4:/tmp/cnq-gateway $ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether e4:5f:01:87:6c:39 brd ff:ff:ff:ff:ff:ff
inet 192.168.10.101/24 brd 192.168.10.255 scope global dynamic noprefixroute eth0
valid_lft 86050sec preferred_lft 75250sec
inet6 fd11:4edf:6c63:0:3bbb:8ec:720e:ed3c/64 scope global mngtmpaddr noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::424b:4e1:92c1:93d8/64 scope link
valid_lft forever preferred_lft forever

I suppose you have a problem with your network connection (DNS, DHCP, IPv6, port blocking etc…)
Try a different networking method (like wired ethernet).

Some things fixed:

  1. Got my NTP working to sync time. Setting time manually somewhat close to current date/time. Then enabling NTP again. works to synt time & survive reboot/poweroff.
  2. standard mirror provided in Raspi standard is not working. Changed to another mirror (ossplanet.net) to get apt to work properly.
  3. could not get repos.influxdata.com to work. Installed influxdb via standard repository. Don’t know if this will work…
  4. insatlled the rest with install.sh-script. looks ok, 4xactive at the end.
  5. power down, connect RadioHat, power up.
  6. canique-radio-bridge is active.
  7. Radio Hat does not receive. Got to track that down…

To be continued…

Update:
Needed just one more reboot. Now receiving sensors! :slight_smile:
Local cockpit shows measurement values, no graphs. Looks like the influx is not doing as it should

I think influxdb standard repository in bullseye uses version 1.6.7
You can check that with

dpkg -l | grep influxdb

The Influxdata Repository uses version 1.8.

pi@raspi4:~ $ dpkg -l | grep influxdb
ii  influxdb                             1.8.10-1                           armhf        Distributed time-series database.

That should be the main difference.

The graphs can take a couple of minutes to show up on the first run in a new system.
Apart from that the influxdb log can reveal more info.

journalctl -n100 -u canique-mqtt-2-influx-bridge

journalctl -n100 -u influxdb

Btw, there is a full raspberry image with Canique Packages installed.