GithubHelp home page GithubHelp logo

open-horizon-services / service-speak-ip Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 3.0 7 KB

Open Horizon service that speaks the LAN IP address

License: MIT License

Dockerfile 10.49% Makefile 66.42% Python 23.09%
hacktoberfest raspberry-pi

service-speak-ip's Introduction

service-speak-ip

Apache AMD86 ARM64 Contributors

A simple Open Horizon service that speaks the LAN IP address through the default audio output. It does this over and over forever, every 30 seconds.

Of course, if you wish to hear the speech, you will need to plug in some earphones/headphones or if you have configured your Raspberry Pi to use only the HDMI for audio output, then you will need to connect an HDMI cable to something that can emit audio.

This little example uses the default English espeak voice for this (which is pretty horrible), and sends it a text string that looks similar to this:

Your eye pee address is 1 9 2 dot 1 6 8 dot 1 dot 1 2 3

The espeak tool can pronounce many other languages, so hack away if you want that. Here is some documentation: http://espeak.sourceforge.net/docindex.html

By default it only looks at the eth0 interface. If yu plan to use WiFi then edit the Makefile to specify wlan0 as the INTERFACE_NAME. If deploying wiith Open Horizon, set the INTERFACE_NAME as a Service variable.

Of course, specifying the INTERFACE_NAME is inconvenient. You could do something better, like determine the hosts's "default route" and then find the host interface that was on that network, and then announce the IP address of that interface. If you did that, then then you would not need to pass any INTERFACE_NAME at all. But I was tooo lazy to code that! :-)

This has currently only been tested on a few Raspberry Pi models.

service-speak-ip's People

Contributors

joewxboy avatar t-fine avatar c-bommu avatar aryanlath avatar

Watchers

 avatar Bruce Potter avatar

service-speak-ip's Issues

Enhance existing README file

This README needs better information:

  1. Front matter
  2. Shields - license should match LICENSE file
  3. Description
  4. Prerequisites
  5. Installation
  6. Usage
  7. Advanced Details
  8. Authors - should match MAINTAINERS.md

See examples of good README.md files:

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.