Skip to content

Instantly share code, notes, and snippets.

import json
from ovos_workshop.skills import OVOSSkill
from ovos_workshop.decorators import intent_handler
import paho.mqtt.client as mqtt
import paho.mqtt
class FeedTheFish(OVOSSkill):
* Descriptions
** neon-tts-plugin-coqui
Plugin to connect to the coqui TTS service
** ovos-audio
The "mouth" of the OVOS assistant!
Handles TTS generation and audio playback
** ovos-backend-client
Python client library for interaction with several supported backends under a single unified interface
** ovos-bus-client
This module is a simple interface for the mycroft messagebus and can be used to connect to ovos, send messages and react to messages sent by the OpenVoiceOS system
#!/usr/bin/python3
import logging
import datetime
from PySide2.QtCore import QObject, Slot
from PySide2.QtCore import QTimer
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
#!/usr/bin/env python3
import asyncio
import evdev
from evdev import ecodes
from evdev.events import KeyEvent
from PySide2.QtCore import QObject
class IR(QObject):
In your config add sections for user-$IDENTITY. Below I use -work and -home
Also add an alias to run a script when you want to change .. I chose "user" ... "become" might be fun...
$ cat ~/.gitconfig
<---------snip---------->
[user]
name = David Greaves
email = david.greaves@jolla.com
[user-home]
name = David Greaves
nemo/devel/hw/android/common
nemo/devel/hw/asus/flo
nemo/devel/hw/brcm/bcm2835
nemo/devel/hw/fairphone/fp2-sibon
nemo/devel/hw/htc/vision
nemo/devel/hw/lge/hammerhead
nemo/devel/hw/lge/mako
nemo/devel/hw/motorola/athene
nemo/devel/hw/motorola/falcon
nemo/devel/hw/motorola/kinzie
%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%qmake5_install
# >> install post
mkdir -p %{buildroot}%{_datadir}/%{name}/lib
cp -a /usr/lib/libassimp* %{buildroot}%{_datadir}/%{name}/lib/
class SSEvent
{
public:
SSEvent(QString type, QString data, QString origin, QString lastEventId):
m_data(data)
, m_lastEventId(lastEventId)
, m_origin(origin)
, m_type(type) { }
QString type() const { return m_type; }
Each version of a package has a manifest; revisions are kept in .../projects/<project>.pkg/<package>[.rev|.mrev]
The rev/mrev files indicate which package manifest to use
The 3rd column holds the manifest hash and the 5th column holds the creation timestamp.
Each version of the package manifest lives in the trees area:
.../trees/<project>/<package>/
(The project has it's own set of manifest versions: _project/*MD5SUMS)
A given version of a manifest in .../trees/<project>/<package>/*-MD5SUMS file contains a list of md5sums/filename pairs
event: front-door
data: {"data":"closed","ttl":"60","published_at":"2014-08-22T22:35:17.419Z","coreid":"53ff6c065075535119511687"}
event: front-door-lock
data: {"data":"locked","ttl":"60","published_at":"2014-08-22T22:35:21.101Z","coreid":"53ff6c065075535119511687"}
event: porch-pir
data: {"data":"null","ttl":"60","published_at":"2014-08-22T22:35:21.302Z","coreid":"53ff6c065075535119511687"}
event: front-door