For easy development, first fork the homebotties/homebotties
repo to your own account (eg my own bot, sco/scobot
).
-
Clone repo and install dependencies
$ git clone [email protected]:[USERNAME]/[BOT_REPO].git homebot $ cd homebot $ npm install
-
Start bot
Options:
$ npm start
$ sudo PORT=80 node ./server.js
$ docker build -t <your username>/homebot .
$ docker run -p 80:3000 -d --restart unless-stopped <your username>/homebot
Run your bot app by opening https://homebot/
on your phone (when on the same wifi network)
- Edit app.html and save to reload to update your bot's app
- Check out the Examples/ directory
- Join the community on Github, Twitter, SO, etc
- You'll need any computer with an SD card reader stick, and a phone (to run your bot app)
- Bare Raspberry Pi setup
- Use Raspberry Pi Imager app to burn latest RPiOS lite (32) image
- On boot drive,
touch ssh
and create wpa_supplicant.conf to set up wifi- TODO: set up ssh ids here
- Power on. Get IP with Fing app.
- Set hostname to your bot name with
raspi-config
(in our examples, we'll name our bothomebot
, but this can be whatever you want)