Network notification for coffee machines and electric kettle using AVM Fritz!DECT in smarthome. Not only useful for Java developers.
We exclude any liability whatsoever for any damages whatsoever that this software may cause.
Attention: This is a very unsecure implementation. Use it only if you know what you're doing.
To install clone this repository using the following commands:
$ git clone https://github.com/orcas-internet/smarter_power_point.git $ cd smarter_power_point
First of all you have to configure your Fritz!DECT connection. To do this simply go into service
folder,
create a copy of config.dist.js
and name it config.js
and then adapt the configuration keys to
your needs.
$ cd service $ cp config.dist.js config.js $ vi config.js
To install the nodeJS-Service run the following commands from the repository root directory (we assume, that nodeJS and npm are installed on your system and available from the commandline):
$ npm install $ npm run service
That is only necessary, if the chrome extension should be installed on other host as repository. Follow these steps and start in repository root directory:
$ cd chrome $ ./tar.sh
This command has created a tar.gz-File in service folder. If you now visit the index page of your service,
e.g. http://localhost:3001/
you should be able to download the file.
To install the chrome extension go to chrome://extensions
, switch on the developer mode, use "Load
unpacked extension" and choose folder chrome/app
from the repository or the downloaded and unpacked
extension. When your extension was loaded, you can open a popup by simply clicking on new icon "orcas Smarter Power
Point" in chrome toolbar.
Now insert the url of the nodeJS web-service (e.g. http://localhost:3001/
) and click on "Update".
To add a new device right-click the extension icon and choose 'options'. Now login with the credentials you provided in the service configuration (default -> user: admin, password: 1234).
Now click on "+"-Button and fill in the following required fields:
device name: water heater min. power: 1700 max. power: 1900 image: img/water.jpg 1 start text: water heater started start sound: audio/water_start.mp3 2 end text: water heater finished end sound: audio/water_finished.mp3 2
Now click on "Save" (below) and then "Update"
Here an other example:
device name: coffee machine min. power: 700 max. power: 800 image: img/coffee.jpg 1 start text: coffee started start sound: audio/coffee_start.mp3 2 end text: coffee finished end sound: audio/coffee_finished.mp3 2
1 The following image files are available:
- img/coffee.jpg
- img/water.jpg
2 The following audio files are available:
- audio/coffee_start.mp3
- audio/coffee_finished.mp3
- audio/water_start.mp3
- audio/water_finished.mp3
Last but no least change the notification settings for the new device using the provided select box.
none // if no notification should be displayed
start // if notification should be displayed only if the machine is start
finished // if notification should be displayed only if the machine is finished
start+finished // if notification should be displayed if the machine is start and finished
Now hit "Save"!