https://github.com/allow2/allow2automate
Example of using Allow2 to control access and quotas for electricity via home automation devices
https://github.com/allow2/allow2automate
child children control controls electricity freedom parent parental parental-control quota social social-network wemo-devices
Last synced: 3 months ago
JSON representation
Example of using Allow2 to control access and quotas for electricity via home automation devices
- Host: GitHub
- URL: https://github.com/allow2/allow2automate
- Owner: Allow2
- License: other
- Created: 2016-12-19T06:02:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-08-02T23:41:06.000Z (about 2 years ago)
- Last Synced: 2025-04-30T17:09:19.481Z (5 months ago)
- Topics: child, children, control, controls, electricity, freedom, parent, parental, parental-control, quota, social, social-network, wemo-devices
- Language: JavaScript
- Homepage: https://github.com/Allow2/Allow2node
- Size: 24.7 MB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Allow2Automate
==============This is a userspace app for Mac OSX, Linux and Windows that can be deployed to all relevant
App Stores for these platforms.[https://apps.apple.com/au/app/allow2automate/id1369546793?mt=12](Download for Mac)
The intention is:
1. Provide a base, self contained Electron User Space App that:
* Provides a fully self-contained app to run in user space with no elevated privileges.
* Manages an overall user connection to the API back end (rest based)
* Allows the user to see and monitor Wemo, Homekit and other devices on the local network
* Allows to "connect" (pair) devices selectively to (and remove them from) the currently active Allow2 account
* May allow some other basic functions in future
2. Provide a separate capability to detect (and authenticate against?) a separate elevated daemon service that runs
on system boot.
3. Includes the ability to automatically install the elevated daemon service where the relevant App Store
allows the binary to provide that capability.
4. Includes a reference to how to download and install the separate daemon installer for those App Stores that
do not permit the background process to be included in the installer (Yes Apple, I am looking at you!).The base operation is intended to show a "Network Wide" view of all detected automation devices, and provide the ability to
link/authenticate with them directly, with bridges and otherwise, and de-duplicate any that may come through separate channels
(ie: direct wemo connections and the same device via a homekit bridge).# Screenshots

# Development notes
The following provides more detail on the structure and intent of the application and components.
## Installation
This is a standard electron app, to get started simply clone the repo and run npm install.
```sh
git clone https://github.com/Allow2/Allow2Automate.git
cd Allow2Automate
npm install
```To run in dev mode (launch the user space app with hot-loader):
```sh
npm run develop
```## Deployment
To build for all platforms:
```sh
npm run pack
```or for a specific platform:
## Mac App Store
```sh
npm run pack:mac
``````sh
./sign.sh
```Then upload with *Application Loader*
## Windows App Store
NOTE: cannot currently build on Mac without using a Paid pro version of Parallel.
So need to do that, or build on a VM```sh
npm run pack:win
```Then drag into https://developer.microsoft.com/
## Linux Snap
```sh
npm run pack:linux
``````sh
snapcraft push dist/Allow2Automate_1.1.0_amd64.snap
```# Notes
For installation of the daemon helper:
[https://www.npmjs.com/package/electron-sudo](https://www.npmjs.com/package/electron-sudo)