smahub icon indicating copy to clipboard operation
smahub copied to clipboard

support for ARM

Open ratio91 opened this issue 10 months ago • 4 comments
trafficstars

seems like a really useful project, thank you! I would love to run this next to my mqtt broker on my raspberry pi. However, there seems to be no support for ARM architecture. Is this planned in the future? thanks!

ratio91 avatar Dec 27 '24 09:12 ratio91

Hi @ratio91, I'm running smahub on raspberry since day 1 - there is an arm version of the container available on ghcr.

AnotherDaniel avatar Dec 27 '24 19:12 AnotherDaniel

thanks for pointing that out! unfortunately my raspi is still running arm/v7 - will swap it against a newer model soon.

ratio91 avatar Dec 27 '24 23:12 ratio91

Hi @ratio91, I re-enabled the arm/v7 build - can you have a go with this: https://github.com/AnotherDaniel/smahub/pkgs/container/smahub/328895028?tag=arm

AnotherDaniel avatar Dec 28 '24 21:12 AnotherDaniel

thank you!

when I start the container, I get this error however:

Attaching to smahub
smahub         | 2024-12-28 22:47:15 INFO     Starting smahub 1.6.3
smahub         | 2024-12-28 22:47:16 INFO     EV Charger plugin disabled
smahub         | 2024-12-28 22:47:16 INFO     Starting Tripower X source
smahub         | 2024-12-28 22:47:16 INFO     Starting SHM2 source
smahub         | 2024-12-28 22:47:16 INFO     demo source plugin disabled
smahub         | 2024-12-28 22:47:17 INFO     gen_ha_sensors sink plugin disabled
smahub         | 2024-12-28 22:47:17 INFO     HA-MQTT sink plugin disabled
smahub         | 2024-12-28 22:47:17 INFO     Starting MQTT sink
smahub         | 2024-12-28 22:47:17 INFO     demo sink plugin disabled
smahub         | 2024-12-28 22:47:17 INFO     Connected to MQTT Broker
smahub         | 2024-12-28 22:47:17 INFO     MQTT sink connected to localhost:1883
smahub         | 2024-12-28 22:47:17 ERROR    An unhandled error occurred in a worker thread, the application will exit: Expecting value: line 1 column 1 (char 0)
smahub         | 2024-12-28 22:47:17 INFO     Exiting...

the MQTT broker log seems fine:

mosquitto      | 1735426165: New client connected from 172.18.0.1:58404 as smahub (p2, c0, k60, u'admin').
mosquitto      | 1735426166: Client smahub disconnected.

no sure which steps is supposed to come after the MQTT handshake?

ratio91 avatar Dec 28 '24 22:12 ratio91