BPi-F3 openwrt running frigate, immich and ollama with openwebui

hi there for those who might be interested . you can download openwrt from archive.spacemit.com and have npu accelerated programs operating within openwrt.

immich AI acceleration works on it for sorting your media and catigorizing them , it also works on frigate for object recongnition. plus ollama large language models. but you are limited to <2b models.

the ollama docker-compose-yaml is found on archive.spacemit site. the frigate andothers docker-compose are found at bianbu.spacemit.com/en/ in the NAS section. you have your choice of nextcloud, kodbox,immich and frigate. they all work fine within openwrt. and all accelerated

if you are having trouble composing them in openwrt. run the biandu-desktop. and compose them in there. then just move the docker folder (var/lib/docker) to your open wrt docker folder and run them from there. for frigate and immich you have to also copy the timezone file from biandu to openwrt otherwise you get a start up error about localtime. to find the location of the time zone file on the biandu OS /etc/localtime look at properties it show what timezone file it is linked to just copy that file to openwrt and rename it to localtime in your /etc dir. when composing them try to editing the docker-compose.yaml volumes to match how you want it in open.wrt otherwise you have to edit the containers config.json afterwards point to where the volumes are located on openwrt.


docker containers

with it running idle operation is low. but when detecting people infrigate it will go up. immich after new media are uploaded it will run a bit higher until the media is AI sorted. ollama will use alot when in use, 4 cpus at 100% but drop to zero after it is done.

frigate object detection works fine as well

my openwrtAI project has just took a few more steps forward in very low power inhouse AI system to now having AI accelerated cloud computing and AI detection all on 5 watt device

1 Like

So basically you are running everything inside the Openwrt?

Why not use proxmox on a mini pc to separate this in LXC Containers?

why? one: I like the very low cpu and resource usage of openwrt and it extreme stability. two: I am also trying to get achieve the lowest possible energy usage on a single device for whole house operation. so yeah it does everything on it. that is the intent. as I want it to do everything and at 5watt all the better. And openwrt allows me to do more on a very small platform.. more then I can achieve with debian or other Linux distros as usually the resource consumption will be double or more then openwrt will be to achieve the same goals..

It all about efficiency. Example: over a year my operational cost might be $8 at 5watt average usage. running a more energy hungry version or multiples of 100w is $160 operational cost per year. and if you are nickle and diming energy usage operating at 5watt is huge saving in energy. by another example for my house is so energy efficient that my heating/cooling cost for the entire year is ~$150 ( my temperature ranges from+40c to -40c) ~30 - 40% of total yearly. 60 - 70% of energy usage is other and 50% of that other are vampire loads ( like routers, voip. and tons of other things that run constantly drawing small constant load such as tvs. microwaves ovens etc.. as nothing actually turns off any more as it all software "off" now. another example say my computer monitor it draws 18w whether it turned on or off. the tv draws 10 to 15w when it off (100watts when it on) it all adds up..

1 Like