Got the portainer working and into the console of the container. But now im a bit stuck on what to check next. Was hoping that the bluetoothctl would be available in there but it doesnt appear to be.
Not sure what you mean by the arcitecture that should be visible.
I reinstalled the test version but still no luck with sbfspof, exactly same 10 timeouts in 10 seconds.
When I go to the docker console, i can runn bluetoothctl and it works, it sees the bluetooth device and i can scan and see the inverter and other stuff dotted around the house.
So i guess that proves that the bluetooth is gettiing into docker, its just the SMAspot app that isnt able to connect to it.
I did check in the /dev/serial folder and all i can see there is the z-wave and zigbee adapters, i cant see it mapping the bluetooth device
dumb question… is it actually finding the configs files and are they being filled in.
Compiled for Linux (LE) 64 bit with MySQL support
Commandline Args: -v -ad0 -am0 -mqtt -finq
Reading config '/usr/bin/sbfspot/SBFspot.cfg'
try again in 20 mins(well actually the amd64 version only takes 3 mins to compile so you should be good to go). I hadn’t added the LocalBTAddress into the generateConfig.sh
SBFspot V3.9.5
Yet another tool to read power production of SMA solar inverters
(c) 2012-2022, SBF (https://github.com/SBFspot/SBFspot)
Compiled for Linux (LE) 64 bit with MySQL support
Commandline Args: -v -ad0 -am0 -mqtt -finq
Reading config ‘/usr/bin/sbfspot/SBFspot.cfg’
Thu Jul 28 23:45:55 2022: INFO: Starting…
I did try and add in dbus to the addon earlier. so a fresh install might be needed again…
did you say the nuc had builtin BT as well as using the BT dongle? I may have misunderstood your earlier post, perhaps it only the dongle.
I’m running out of ideas. You are adding the mac in with capitals? someone mentioned that earlier, although it works with either upper or lower case for me.
I suppose if you got really excited you could pair or trust the inverter… although that isn’t normally needed.
edit: I have been meaning to try and get apparmor to work… that might potentially help. When I have tried apparmor previously I get it stuck with being unable to unload the profile. which is ok if I have host os access, not so much if it’s on a remote pi3 without host access lol.
The NUC has built in BT and that is the mac in the last post. I also have a USB BT dongle that I tried plugging in to see if it would work, it was the one that I used on the pi when I sucessfully ran SBFspot on the pi.
When I plug the USB BT into the NUC it shows up in the docker container and Bluetoothctl shows both and I can switch wihich is the default, powere them on and off, scan etc…
The MAC of the inverter only has one letter and it is a capital. Did try changinig to lower at one point, just in case.
I did try pairing the NUC and Inverter from Bluetoothctl within the docker container. It paired but SBFspot still didnt pick it up.
I went ant looked at the bluetooth module in SBFspot last night and see that it uses RFComm but withing the container I cant find any reference. Not sure if that is relevant or not. We have proved that the bluetooth is working in the container. Its just how SBFspot is detecting the local bluetooth that isnt working.
I added in “devices”: ["/dev/ttyACM1"],
also added that alsa utils. So try a reinstall of test again.
I don’t think the BT breaking changes effect this addon. It wasn’t using bluepy or pybluez, uses bluez instead. I did see the bleak bit, I will have to dig around with that. The addon still works for me on a pi4-superviser64bit and pi3-haos64bit, and seems to be working for a few others(although I think they might all be pi users, no NUCs… So don’t think its a breaking changes problem.
although I have locked myself out of the pi3 due the apparmor thing atm. I will have to use a different addon on that lol.
That is what I get with ls -l /dev/serial/* and ls -l /dev/se* on pi4
bash-5.1# ls -l /dev/serial/*
ls: /dev/serial/*: No such file or directory
bash-5.1# ls -l /dev/se*
lrwxrwxrwx 1 root root 7 Mar 11 18:33 /dev/serial1 -> ttyAMA0