Skip to content

magdalar/vikinghome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vikinghome

Customized home control app for the Viking Homestead.

Intended use

This code is intended to run on a Raspberry Pi with a Touchscreen, running semi-permanently as a full-screen application in order to supply access to:

Setup & Dependencies

  1. Install python3 (3.8 at time of writing)
  2. Create a virtual development environment:
$ python3 -m venv env

This creates a directory 'env', where the project-specific development environment will live. This directory is excluded by .gitignore, so will not be checked in or version-controlled.

  1. Activate the environment:
$ source ./env/bin/activate

This will put the environment at the front of your PATH, et al. It also provides a deactivate function to run if you wish to re-use the shell without logging out.

  1. Install dependencies:

| Name | Version | Description | URL | | pyglet | 1.3.2 | The 'game' library we're using for running the main app | http://pyglet.readthedocs.io/en/pyglet-1.3-maintenance/ | | requests | 2.23.0 | HTTP Fetching | http://requests.readthedocs.io/en/master/ | | pyzbar | 0.1.8 | QRCode reader. Also install zbar on your system (brew install zbar). | https://pypi.org/project/pyzbar/ | | opencv-python | 4.2 | Computer-Vision library, for image processing. | https://pypi.org/project/opencv-python/ |

brew install zbar
pip install pyglet requests pyzbar opencv-python

Mac OS X

I used http://brew.sh to install python.

Deployment & Running

Follow the development environment requirements, but you can skip the virtual environment, and just install the pip packages globally.

Then just run:

$ python3 src/main.py

Or use the run.sh script provided. If you cloned your repository somewhere other than $HOME/code/vikinghome/, you'll need to update the VIKINGHOME environment variable in the script.

Use 'q' to quit.

About

Customized home control app for the Viking Homestead

Resources

License

Stars

Watchers

Forks

Packages

No packages published