Hey there,
I’m pretty much a beginner when it comes to Home Assistant OS, so please bear with me.
I’m currently looking for a new place to live and on github I found a bot called flathunter that automatically scrapes the relevant property listing sites and sends the results via telegram. The idea here is that you can immediately react to the offer and send your application.
Since my Raspberry Pi 3B+ is running Home Assistant OS anyway it would be great if the bot could somehow be ran on the raspi since I dont have any other options currently.
The installation instructions dont look too complicated but Im not 100% sure I can run the bot on Home Assistant OS. Here’s what the instructions look like:
Installation on Linux
(tested on CentOS Stream)
First clone the repository
cd /opt
git clone https://github.com/flathunters/flathunter.git
add a new User and configure the permissions
useradd flathunter
chown flathunter:flathunter -R flathunter/
Next install pipenv for the new user
sudo -u flathunter pip install --user pipenv
cd flathunter/
sudo -u flathunter /home/flathunter/.local/bin/pipenv install
Next configure the config file and service file to your liking. Then move the service file in place:
mv flathunter/sample-flathunter.service /lib/systemd/system/flathunter.service
At last you just have to start flathunter
systemctl enable flathunter --now
If you’re using SELinux the following policy needs to be added:
chcon -R -t bin_t /home/flathunter/.local/bin/pipenv
My issues
In order to follow the instructions I used the “Terminal” plugin for Home Assistant so that I can access the terminal in my web browser. The first step of cloning the repository worked fine but the second step of adding a new user via the command useradd
didn’t work and returned the following error: sudo: useradd: command not found
Now my question is 1. Whether there is an equivalent command on Home Assistant OS to add users and 2. if there are any other reasons why this bot shouldn’t work on Home Assistant OS.
My main problem in googling the solution is the fact that Home Assistant OS is apparently a ‘special’ Linux distribution and not more commonly used one like ubuntu or whatever.
I would greatly appreciate any help on this. It would be amazing if I could use the bot to get new, shiny flat!