GithubHelp home page GithubHelp logo

skill-mosquito-speak's People

Contributors

aussiew avatar carstenagerskov avatar tobus3000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

skill-mosquito-speak's Issues

Username and password for MQTT server

Hi,

thank you for your great skill!

My mosquitto has "allow_anonymous false", so the clients need to provide a username and password.
Maybe this would be a good time to learn how to make a pull request, but it's such a tiny change that it's perhaps not necessary...

In __init__.py I added

client.username_pw_set(self.username, self.password)

just above

client.connect_async(self.host, self.port, 60)

and

self.username = self.settings.get('username')
self.password = self.settings.get('password')

below

self.retainLast = self.settings.get('retainLast')

And in settingsmeta.json I added:

              {
                 "name": "username",
                 "type": "text",
                 "label": "Mqtt username",
                 "value": ""
              },
              {
                 "name": "password",
                 "type": "text",
                 "label": "Mqtt password",
                 "value": ""
              },

(I also edited settings.json to have username and password fields, but that was probably not needed.)
After a reboot I could add username and password on the mycroft.ai site, and it works.

Best regards...
Michael

mqtt server ip gets lost

I'm a newbie in using Mycroft resp. Picroft. This are my first steps. I've been working with SNIPS, which is currently running. But the public support has ended on January 31. So I'm looking for alternatives. I've some experiences on working with mqtt and wrote a python-script, which is analyzing the hermes/intent topic and gives output to hermes/tts.

There is a problem using your script: The mqtt server's ip is always "forgotten" after rebooting. And I'm not sure where the mqtt ip has to be stored. First I edited __init__py and changed the class MosquitoSpeak(MycroftSkill) with this parameters:

        self.host = '192.168.178.20'
        self.port = '1883'
        self.topic = 'my-out/text'
        self.alertTopic = 'my-alert'

I got a Error: no host an nothing worked (e. g. sending a text to my-out/text, nothing was spoken)
Then I edited settings.json:
"host": "192.168.178.20", "port": 1883, "topic": "my-out/text", "alertTopic": "my-alert"
After a reboot of Picroft a messsage sended to my-out/text -m "Hallo World" is spoken by Mycroft. But after the next reboot it does not work again and the values for host, topic and alertTopic in settings.json are empty again. What is my failure?

Error in importing paho.mqtt.client

I am getting following error while running this skill.

File "/opt/mycroft/skills/skill-mosquito-speak/__init__.py", line 23, in <module>
import paho.mqtt.client as mqtt
ImportError: No module named paho.mqtt.client

I've tried installing the with pip. Nothing works! Any idea?

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.