Skip to content

fchioralia/autohome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autohome

projects for a smart home using raspberry pi and python

🔧 Requirements

  1. Raspberry PI:

  • configured with ssh access (user/pass)
  1. Linux client box:

  • a linux (debian family) playground that supports running ansible (use WSL in Windows OS) install some tools:
    dnf install -y git ansible-core python3
    add to ansible some collections:
    ansible-galaxy collection install ansible.posix community.crypto community.general
    create a ssh key to connect to PI at ~/.ssh/id_rsa:
    ssh-keygen -b 4096
    *copy the key to raspberry pi
    ssh-copy-id [email protected]
    clone this repo to a local folder:
    git clone https://github.com/fchioralia/autohome.git
    1. A domain name resolvable in internet to Raspberry PI, IP address.

    If you have dynamic IP at home, use a DYNDNS service.

🔧 Install app on raspberry

To deploy this app using Ansible, navigate to the Ansible playbook directory 'auto_sprinklers-ansible' and follow instructions in readme.md. After install the app should be available at https://yourdomainname.tld.

A snapshot on how it looks

app webpage

🔧 Configure GPIOs in app,

Go to https://yourdomainname.tld/admin and add the IDs of GPIOs that will be connected to some relays

A snapshot on how it looks

app webpage