Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minoss-google-home

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minoss-google-home

Google Home Module for Minoss

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Google Home for Minoss

GitHub version NPM version Dependency version

This module adds support for Pushover notifications to Minoss server. The API communication is based on google-home-audio-tts.

Table of Contents


Installation

Inside your Minoss root folder just use npm to install this Module.

$ npm install minoss-google-home

Configuration

By default there are three configuration files available inside the config/ folder: audio, devices and messages. The configuration for audio and messages are optionally. It is possible to store different predefined audio files and message objects there, if wanted. For more details take a look inside the files or read about the message builder.

Before using this module the devices configuration should be set up. This file contains the ip and default language for all home devices where notifications should be send to.

It is possible to store the devices under own names. The name default is a reserved name. It will select this device whenever no device name was given by request parameters. So, if only one device is available, the name default should be used.

module.exports = {
    default: {
        ip: '192.168.2.123',
        language: 'en'
    },
    another: {
        ip: '192.168.2.234',
        language: 'de'
    }
};

Basic Usage

The basic usage is pretty simple. When a default device is defined just call the audio or tts script with a supplied url or message string to be send. For more parameters take a look at the parameter shorthands.

http://localhost:8080/google-home/tts?message=hello%20world

Parameter Shorthand

All request parameters can be shorten to it's first character (except stream_type, which is shorten with st). With this it is possible to use shorten URLs.

device       -> d
language     -> l
volume       -> v
restore      -> r
stream_type  -> st
timeout      -> t
speed        -> s
message      -> m
url          -> u

Example:

http://localhost:8080/google-home/tts?**device**=default&**volume**=1&**message**=test
http://localhost:8080/google-home/tts?**d**=default&**v**=1&**m**=test

Message Builder

You can build the message with all properties by url parameter, as JSON object or as stored configurations.

Messages can be predefined in configuration. If there are messages configured they can be send by it's name on request:

http://localhost:8080/google-home/tts?message=**name**

Using JSON as Message Object

It is possible to use a JSON string as message object on request. It works the same way as with predefined messages:

http://localhost:8080/google-home/tts?message=**{"message":"my message","volume":1,"language":"en"}**

Bugs / Feature request

Please report bugs and feel free to ask for new features directly on GitHub.

License

Minoss is dual-licensed under MIT and GPL-2.0 license.

Donation

You like to support me?
You appreciate my work?
You use it in commercial projects?

Feel free to make a little donation! :wink:

Keywords

FAQs

Package last updated on 24 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc