Skip to content

Home Information - Your home, your data, organized.

Python

Working on refactor of docs are and adding content. WIP

Anthony Cassandra49e031c5fa80
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 73219afb..da8b5ff4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,4 @@
-<img src="../src/hi/static/img/hi-logo-w-tagline-197x96.png" alt="Home Information Logo" width="128">
+<img src="src/hi/static/img/hi-logo-w-tagline-197x96.png" alt="Home Information Logo" width="128">
# Change Log
diff --git a/LICENSE.md b/LICENSE.md
index aed03e81..4316154b 100644
--- a/LICENSE.md
+++ b/LICENSE.md
@@ -41,7 +41,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Any **commercial use** of this software **requires a separate license** from:
POMDP, Inc.
Commercial use includes, but is not limited to:
- Using the software in a proprietary product
diff --git a/README.md b/README.md
index aeb702c7..cbc408b7 100644
--- a/README.md
+++ b/README.md
@@ -2,14 +2,13 @@
# Home Information
-An application to visually organizes data about your home and the things in it. Add and place items on the screen and then attach manuals, notes, links, maintenance and repair histories or any other information for easy reference. Optionally integrate with security and home automation systems for a single view of all your house-related information.
-
+An application to visually organizes data about your home and the things in it. Add and position items on the screen and then attach notes, manuals, links, maintenance and repair histories or any other information for easy reference. Optionally integrates with security and home automation systems for a single view of all your house-related information.
<img src="docs/img/screenshot-kitchen.png" alt="Kitchen Example" width="250"> <img src="docs/img/screenshot-security.png" alt="Security Example" width="250"> <img src="docs/img/screenshot-cameras.png" alt="Camera Example" width="250">
## Project Status
-We are looking for early adopters and contributors. The software is functional, but early in its development with many additional feature planned.
+We are looking for early adopters and contributors. The software is functional, but early in its development with many additional features planned.
# Installation / Running
@@ -17,28 +16,34 @@ We are looking for early adopters and contributors. The software is functional,
- Python 3 - installed
- Docker - installed and running
-- Git - installed
-## Installation Quick Start
+## Installation (Quick Start)
``` shell
git clone [email protected]:cassandra/home-information.git
cd home-information
make env-build
make docker-build
-make docker-run
```
-Then visit: [http://localhost:9411](http://localhost:9411) to start.
-
See the [Installation Page](docs/Installation.md) for more details and troubleshooting.
-To begin using the app, see the [Getting Started Page](docs/GettingStarted.md).
+## Running
+
+Run in the foreground with:
+``` shell
+make docker-run-fg
+```
+or in the background with:
+``` shell
+make docker-run
+```
+
+Then visit: [http://localhost:9411](http://localhost:9411) and the [Getting Started Page](docs/GettingStarted.md).
# Contributing / Development
## Requirements
- Python 3.11 (or higher) - installed
-- Git - installed
The tech stack is:
- Django 4.2
@@ -49,7 +54,7 @@ The tech stack is:
## Development Setup Overview
-Setting up for local development looks like this:
+Setting up for local development, in brief, looks like this:
``` shell
git clone [email protected]:cassandra/home-information.git
cd home-information
diff --git a/docs/Design.md b/docs/Design.md
deleted file mode 100644
index 53257db4..00000000
--- a/docs/Design.md
+++ /dev/null
@@ -1,87 +0,0 @@
-<img src="../src/hi/static/img/hi-logo-w-tagline-197x96.png" alt="Home Information Logo" width="128">
-
-_WORK IN PROGRESS_
-
-# Design
-
-## Branding, Icons, Logos
-
-
-
-*** Gimp
-
-
-*** ImageMagick
-# Use this to scale images
-
-sudo apt install imagemagick potrace
-** MacOS setup
-*** Python 3.11
-# get python 3.11 package and install on OS X
-https://www.python.org/downloads/
-*** ImageMagick
-# Use this to scale images
-
-brew install imagemagick potrace
-
-
-## Location SVGs
-
-For best result use SVG viewbox at least 1200 in each direction and less than 2200.
-
-Does not have to be square.
-
-Create a series of individual SVG files with a single <path> tag to represent different types of features. The <path> "id" attribute should have one of the following ids to indicate which feature it is:
-
-asphalt
-bathtubs
-brick
-ceiling-transitions
-countertops
-dead-space
-door-arcs
-doors
-exterior-walls
-fencing
-fireplaces
-floor-transitions
-foliage
-furniture
-grass
-gravel
-ground
-interior-floors
-interior-walls
-landscape-transitions
-mulch
-pavement
-pavers
-pool-coping
-property-lines
-rock-beds
-secondary-walls
-sheds
-shelves
-sinks
-stairs
-stone-walls
-tiles
-toilets
-utilities
-water
-windows
-wood-decks
-
-If using Gimp, this translates to having a "Path" with the given name, then using the "Export Path" function since Gimp will add the path name as the path id.
-
-With the individual SVG files assembled in a directory, run the following command to combine and format them into a single SVG suitable for importing.
-
-./tools/combine-svgs.py -i <INPUT_DIR> -o <OUTPUT_FILE>
-
-e.g.,
-
-./tools/combine-svgs.py -i locations/bordeaux/paths -o locations/bordeaux/bordeaux.svg
-./tools/combine-svgs.py -i locations/bordeaux-attic/paths -o locations/bordeaux-attic//bordeaux-attic.svg
-./tools/combine-svgs.py -i locations/default/paths -o locations/default/default.svg
-
-Try to keep the SVG image size on the small side. It will get loaded and manipulated by javascript, so past a certain size there will probably be issues.
diff --git a/docs/dev/Debugging.md b/docs/dev/Debugging.md
new file mode 100644
index 00000000..8515e751
--- /dev/null
+++ b/docs/dev/Debugging.md
@@ -0,0 +1,11 @@
+<img src="../../src/hi/static/img/hi-logo-w-tagline-197x96.png" alt="Home Information Logo" width="128">
+
+# Debugging
+
+## Custom Debug Settings
+
+You can modify these variables in `src/hi/settings/development.py` to enable/disable some custom development features:
+
+- `SUPPRESS_SELECT_REQUEST_ENPOINTS_LOGGING` - Suppress showing the request line log message. The polling front-end will generate a long stream of these and it make it hard to see other requests.
+- `SUPPRESS_MONITORS` - Turns off running any of the background monitor tasks. Useful when working on something not related ot them to prevent unnecessary logging and resource usage.
+- `BASE_URL_FOR_EMAIL_LINKS` - If needing to test the links in delivered emails. We usually need this to point back to the local development server that send the email.
diff --git a/docs/dev/Templates.md b/docs/dev/Templates.md
index 829ade08..f1d3bcf6 100644
--- a/docs/dev/Templates.md
+++ b/docs/dev/Templates.md
@@ -14,7 +14,9 @@ _WORK IN PROGRESS_
## The "Hi Grid" Template Structure
-# Important DIV Ids
+_TBD_
+
+### Important DIV Ids
This are gathered in `src/hi/constants.py:DIV_IDS`:
diff --git a/docs/graphics/Branding.md b/docs/graphics/Branding.md
new file mode 100644
index 00000000..8c58264a
--- /dev/null
+++ b/docs/graphics/Branding.md
@@ -0,0 +1,33 @@
+<img src="../../src/hi/static/img/hi-logo-w-tagline-197x96.png" alt="Home Information Logo" width="128">
+
+_WORK IN PROGRESS_
+
+# Branding, Icons, Logos
+
+## Gimp Assets
+
+_TBD_
+
+## ImageMagick
+
+Required for Makefdile (below) and scaling and installing logos/icons.
+
+### Installtion
+
+#### MacOS
+
+``` shell
+brew install imagemagick potrace
+```
+
+#### Ubuntu (GNU/Linux)
+
+``` shell
+sudo apt install imagemagick potrace
+```
+
+## Makefile
+
+For scaling and installing logos/icons into static code area from one large master image.
+
+_TBD_
diff --git a/docs/graphics/README.md b/docs/graphics/README.md
new file mode 100644
index 00000000..808af4a2
--- /dev/null
+++ b/docs/graphics/README.md
@@ -0,0 +1,5 @@
+<img src="../../src/hi/static/img/hi-logo-w-tagline-197x96.png" alt="Home Information Logo" width="128">
+
+# Graphic Design Documentation
+
+See the markdown files in this directory for various graphic design-related documentation.
diff --git a/src/hi/settings/development.py b/src/hi/settings/development.py
index 3f35e209..06f1e4eb 100644
--- a/src/hi/settings/development.py
+++ b/src/hi/settings/development.py
@@ -108,7 +108,7 @@ LOGGING = {
},
}
-BASE_URL_FOR_EMAIL_LINKS = 'http:/127.0.0.1:8000/'
+BASE_URL_FOR_EMAIL_LINKS = 'http:/127.0.0.1:8411/'
# Uncomment to suppress email sending and write to console.
#