Giter VIP home page Giter VIP logo

smarter_power_point's Introduction

smarter power point

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.

Installation

To install clone this repository using the following commands:

$ git clone https://github.com/orcas-internet/smarter_power_point.git
$ cd smarter_power_point

Install service

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

Make chrome-extension downloadable

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.

Install chrome-extension

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"!

smarter_power_point's People

Contributors

bl4ckj4r avatar orcas-mgleich avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.