All Projects → metakermit → resin-home-automator

metakermit / resin-home-automator

Licence: MIT license
Example Python Flask web app deployable via resin.io for periodic Celery tasks

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to resin-home-automator

HomeApp
A little smart home app for Philips Hue and other devices
Stars: ✭ 54 (+200%)
Mutual labels:  home-automation
python-flask-celery-example
Flask Rest API with the use of Celery
Stars: ✭ 41 (+127.78%)
Mutual labels:  celery
immuni-backend-analytics
Repository for the backend analytics
Stars: ✭ 39 (+116.67%)
Mutual labels:  celery
flickr to google photos migration
A tool for migrating your photo library from Flickr to Google Photos
Stars: ✭ 39 (+116.67%)
Mutual labels:  celery
lightflow
A lightweight, distributed workflow system
Stars: ✭ 67 (+272.22%)
Mutual labels:  celery
infopanel
Show live data, animations, pictures, or anything on simple displays like RGB matrices
Stars: ✭ 29 (+61.11%)
Mutual labels:  home-automation
fauxmo-plugins
Plugins for Fauxmo (emulated Wemo devices for the Amazon Echo)
Stars: ✭ 13 (-27.78%)
Mutual labels:  home-automation
flowercare-exporter
Prometheus exporter for Xiaomi MiFlora / HHCC Flower Care devices.
Stars: ✭ 14 (-22.22%)
Mutual labels:  home-automation
home-assistant-opentherm-thermostat
Home Assistant OpenTherm Thermostat
Stars: ✭ 26 (+44.44%)
Mutual labels:  home-automation
Online-Judge
Online Judge for hosting coding competitions inside NIT Durgapur made by GNU/Linux Users' Group!
Stars: ✭ 19 (+5.56%)
Mutual labels:  celery
flask-docker-compose
Flask application development skeleton with docker-compose
Stars: ✭ 22 (+22.22%)
Mutual labels:  celery
Home-Assistant-Config
🏠 My huizebruin Home Assistant configuration, Be sure to 🌟 this repository for updates! huizebruin
Stars: ✭ 29 (+61.11%)
Mutual labels:  home-automation
open-energy-view
View resource consumption trends, history, analysis, and insights.
Stars: ✭ 32 (+77.78%)
Mutual labels:  home-automation
klf-200-api
This module provides a wrapper to the REST API of a KLF-200 interface. Supporting the new API with firmware version 0.2.0.0.71 is in progress.
Stars: ✭ 29 (+61.11%)
Mutual labels:  home-automation
DotMatrixDisplay
Display any messages to a LED Matrix Display
Stars: ✭ 19 (+5.56%)
Mutual labels:  home-automation
google fit hass
A Home assistant custom component to get your fitness information using Google Fitness API.
Stars: ✭ 23 (+27.78%)
Mutual labels:  home-automation
Home-AssistantConfig---OLD
AtomicPapa's Amazing Home Assistant Config
Stars: ✭ 15 (-16.67%)
Mutual labels:  home-automation
homeassistant
Home Assistant Config
Stars: ✭ 50 (+177.78%)
Mutual labels:  home-automation
pycalima
Python interface for Pax Calima Fan via Bluetooth LE
Stars: ✭ 34 (+88.89%)
Mutual labels:  home-automation
hass-pandora-cas
Home Assistant custom component for Pandora Car Alarm System
Stars: ✭ 15 (-16.67%)
Mutual labels:  home-automation

resin-home-automator

Example Python Flask web app deployable via resin.io for periodic Celery tasks Deployed as a Flask web app that works on any of the ARMv7 devices supported by resin.io.

Deployment

To get this project up and running, once you are set up with resin.io, you need to add your resin.io application's remote (the exact url will vary for different users, so consult the Resin docs to get started with a new app):

git remote add resin [email protected]:gh_kermit666/homeautomator.git

and push the code to the newly added remote:

git push resin master

It should take a few minutes for the code to push. While you wait, enable device URLs so the server can be accessed outside of its local network. This option can be found in the Actions tab in your device dashboard.

Actions Tab

Once the device is updated, you should see this in your logs: log output

Then in your browser you should be able to open the device URL and see web app.

Development

Install & configure Docker-machine. Build the image:

docker build -f Dockerfile.dev.base -t resin/armv7hf-debian . # only once
docker build -t homeautomator .

You can now run it:

docker run -i -p 8080:80 homeautomator

And open it on the Docker-machine url (docker-machine ip default) and port 8080, e.g. http://192.168.99.100:8080/.

No Docker?

If you just want to run the Flask web app, install requirements in a venv:

python3 -m venv venv # only once
source venv/bin/activate
pip install -r src/requirements.txt # only after updates

and run it:

honcho -f Procfile.dev start

Cleanup

You clean all the stopped Docker containers with:

docker rm $(docker ps -a -q -f status=exited)

and the Docker images with:

docker rmi -f $(docker images -a | grep "<none>" | awk "{print \$3}")
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].