Home assistant with an unsupported Debian based system

In my case, the server was running: Linux Mint 21.

1. Docker install

curl -fsSL get.docker.com | sh

sudo groupadd docker

sudo usermod -aG docker $USER

newgrp docker

2. Home assistant os agent install

sudo apt install apparmor jq wget curl udisks2 libglib2.0-bin network-manager dbus lsb-release systemd-journal-remote -y

wget https://github.com/home-assistant/os-agent/releases/download/1.5.1/os-agent_1.5.1_linux_x86_64.deb

sudo dpkg -i os-agent_1.5.1_linux_x86_64.deb

Continue reading

Spin FM (Python3 filemanager) RC2 released

The filemanager has reached its RC2 stage.

This release contains many minor and major code fixes.

  • Coding syntax is cleared.
  • Addressbar issues with differentiating files and folders are fixed.
  • Error handling is increased.
  • Theme issues fixed.
  • Delete function issues fixed by introducing an action list functionality.

The code is available on the repository:

https://github.com/postman721/Spin-Fm/tree/2x-series-development

Python with decoupled variables

Sometimes a need to get variables into your Python code, without hard-coding them into the program itself will arise.

Here is how it can handled.

    sudo apt install python3-decouple -y

Add this into your py program’s import lines:

from decouple import config

Next, you need to create .env file and insert variables into it.

touch .env

nano .env

SOME_VAR=some_value

Then in your code, you would refer to your variable like this:

some_var=config(“SOME_VAR”)