• 6 Posts
  • 209 Comments
Joined 1 year ago
cake
Cake day: June 4th, 2023

help-circle


  • Most Arduinos don’t have enough horsepower to run a full assistant stack. They’re designed as limited resource microcontrollers.

    Basically, here are some choices, depending on what your priority is:

    Depending on what you want to do, I’d suggest the easiest is #2, as a frontend to HomeAssistant, with the assistant running either on a beefy server or on the cloud.

    Edit: “Arduino” actually can reference three different things:

    • the branded boards from arduino.cc
    • the software stack with C/C++ bindings running on top of a range of microcontrollers, or
    • the company called Arduino.

    If you have a classic Arduino board, they usually have very limited power and run on a basic Atmel processor. An ESP-32 processor is a bit beefier and can run Arduino software (as well as FreeRTOS). And to make things even more confusing, Arduino the company sells an Arduino-branded board that runs the Arduino software stack, but on top of different processors, including an ESP-32: https://docs.arduino.cc/hardware/nano-esp32/

    You may want to watch out which version of “Arduino” you want to work with.







  • A few jobs ago, everyone hated the tech stack. The people who had come up with it had long left. I talked to everyone, then came up with a plan to transition to a modern stack. Got buy-in from management.

    Half the people (and all who had said they hated the status quo) threatened to quit if we made the change.

    Fortunately, it was just in time to collect the 1-year retention bonus. Life’s too short. Walked away.



  • Installed RabbitMQ for use in Python Celery (for task queue and crontab). Was pleasantly surprised it also offered MQTT support.

    Was originally planning on using a third-party, commercial combo websocket/push notification service. But between RabbitMQ/MQTT with websockets and Firebase Cloud Messaging, I’m getting all of it: queuing, MQTT pubsub, and cross-platform push, all for free. 🎉

    It all runs nicely in Docker and when time to deploy and scale, trust RabbitMQ more since it has solid cluster support.