lukassoo / ShellyExporters

All Shelly Exporters for Prometheus
MIT License
15 stars 2 forks source link

any plan for raspberry ? #1

Closed robbyleh closed 1 year ago

robbyleh commented 1 year ago

Hi Lukassoo,

great project, great exporter, Thank you very much :-D I'm so happy to run my shelly with your exporter via prometheus / grafana. :-) Now after testing successfully in my ESXi VM environment I face an issue replaying the same on my raspberry3. Writing the RPi 3 with Ubuntu 22.04 LTS 64bit with the standard PI imager I always fail at the step of sudo docker run ... Container is not coming up. I see raspberry is based on an other processor architecture "arm" which seems to be not common in our container x64-world. Is there any plan from your end to build ths shellyEM container for raspberry?

thanks in advance, Robby

lukassoo commented 1 year ago

Hi Robbyleh,

I'm glad the exporters are working for you too :)

I somehow completely forgot about the fact that many people host things on a Raspberry or other ARM based hardware. It should not take too long to make an image for ARM since I am using C# / .NET and they support ARM from a quick google search. Once I have a moment I'll make the image and try running it on a raspberry which i should have laying around here somewhere.

robbyleh commented 1 year ago

Hi Lukassoo, Thank you very much, but from my pov absolutelly, I don't have any hurry. It's your project and decision , take your time :-D. Robby

lukassoo commented 1 year ago

I have successfully built and published docker images for armv7 and arm64 for both exporters. Both appear to be working just fine: image

Tested on Raspberry Pi 3 B+ with Ubuntu 20.04.5 LTS: (From the Raspberry Pi Imager) image

Tested both armv7 and arm64 and both work - Since that Raspberry model already supports 64 bit i means it can handle v7 (32 bit) as well but in case you ever have to run this on an even older one - Pi 2 or Pi Zero - these do not support 64 bit and the v7 will be the only way.

I have updated the "readme" to show how to use the ARM images. Let me know if everything works :)

robbyleh commented 1 year ago

Hi Lukassoo,

great job !!! So quickly! IIt is working fine without any issue now on my Raspberry. Model: Raspberry 3b (V1.2) ( not the + Version ) OS: Ubuntu 22.04.1 LTS 64bit Thank you very much !