Code Monkey home page Code Monkey logo

hello-lucy's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hello-lucy's Issues

Hello Lucy not detecting

I completed all the steps successfully but after speaking Hello Lucy there is no response from MM. Mic and speaker is set properly.

Installation troubles

Hi community!
I have a question about the installation process. I tried to install Hello Lucy on my Pi 4, which a audio card (raspiaudio mic+speaker). The problem is that when I install the module and run the MagicMirror, it asks for 2 npm packages that have not been installed before; is that right or am I doing something wrong?
Further, after I manually install the 2 packages and the mirror starts, I can hear Lucy welcome voice but I cannot see the holo face as in Mykle video, and the microphone is not detected at all. I tried to play a music and record my voice with the card, and it works pretty well. However, Lucy does not find it at all. With arecord -l, the installed audio card shows up and, no clue why Lucy does not find it.

Any possible idea on why this is happening? Thanks to all!!!

Always initialising.....

Hi, very thanks for your idea !
I just follow your described steps,now ,my mic‘s icon always display “initialising”,i change debug true in MMM-voice.js,there display "initialising"and"undefined", but error.log&debug.log was nothing in it.
Can you help me , please, thank you very much!

Modules won't hide

I added modules after I added Hello-Lucy, and now none of the modules will hide.

no response from mic

Hi Mike, any ideas why microphone doesn't pickup keyword, says ready, no issues with pocket sphinx, tried MAGIC MIRROR & HELLO LUCY, just continues to say ready, choose a mode.

screen shot 2018-05-01 at 11 12 51

also what did you use for the sound files to create my own personal greeting?

Adding Params

Given the current model, how much work would it be to add params to some of the voice commands? For instance if I wanted to open a map of a certain city and view traffic. I can figure out the Google part and changing that module, but confused on how to use mmm-voice and Lucy?

HELLO LUCY DISPLAYS UNEXPECTED MODULES

On startup Hello Lucy displays the "currentweather" on page 1. It is not listed on pageOne in the config.js file. As a data point when I display a page that is defined identically to page 1, it is not displayed.

In addition, from time to time when I issue a Show Page n, a display of all of the Hello Lucy commands is displayed but the module(s) on the selected page is not displayed. The Hello Lucy commands display is full screen and the text color is blue.

Comments/Observations: I'm at a total loss on the firs issue.

On the second issue, It seems to be related to how fast I'm giving the Show Page commands . Once I see the "Commands" screen, I see it for all requests to Show Page n commands. If I issue the appropriate Hide Page n commands to clear all of the Show Page n commands I issues and then wait for some time I can issue the Show Page n commands and get the expected result.

The Hello Lucy commands screen is useful, Just not when displayed here. Is there a way I can activate it in a page and/or print it.

Thanks for any comments or help

Desert-Rat-Commander

modules: [
{
disabled: false,
module: "Hello-Lucy",
position: "top_center",
config: {
keyword: 'JARVIS', // HELLO LUCY keyword to activate listening for a command/sentence
timeout: 15, // timeout listening for a command/sentence
standByMethod: 'HIDE', // 'DPMS' = anything else than RPi or 'PI'
microphone: "2,0", // run "arecord -l" card # and device # mine is "0,0"
sounds: ["Jarvis_At_Your_Service.mp3"], // "1.mp3", "11.mp3" welcome sound at startup. Add several for a random greetings
confirmationSound: "ok.mp3", // name and extension of sound file
startHideAll: true, // All modules start as hidden EXCEPT PAGE ONE
// *** Page One is your default startup page *** This overrides startHideAll: true,
pageOneModules: ["Hello-Lucy","MMM-EasyPix"], // default modules to show on page one/startup
pageTwoModules: ["Hello-Lucy", "clock", "MMM-BMW-OW", "alert", "calendar", "currentweather", "calendar_monthly", "MMM-Todoist"],
pageThreeModules: ["Hello-Lucy", "clock", "MMM-BMW-OW", "alert", "MMM-ImageSlideshow", "calendar", "currentweather", "weatherforecast", "calendar_monthly"], // modules to show on page three
pageFourModules: ["Hello-Lucy", "MMM-EasyPix"], // modules to show on page four
pageFiveModules: ["Hello-Lucy", "MMM-EasyPix"], // modules to show on page five
pageSixModules: ["Hello-Lucy", "MMM-EasyPix"], // modules to show on page six
pageSevenModules: ["Hello-Lucy", "MMM-EasyPix"], // modules to show on page seven
pageEightModules: ["Hello-Lucy", "MMM-EasyPix"], // modules to show on page eight
pageNineModules: ["Hello-Lucy", "MMM-EasyPix"], // modules to show on page nine
pageTenModules: ["Hello-Lucy", "MMM-EasyPix"] // modules to show on page ten
}
},

Question of Application [NOT AN ISSUE]

Mykle1,

First off, this is brilliant. Second off, can this be used if you run the MagicMirror in server mode (node serveronly)? If so, is Lucy listening on the host or the client device? Thanks in advance!

Adding Modules:

Hello,
I hope this is the right place to message you, I could not see any other ways to PM via github.
I was hoping to install Hello-Lucy on my Magic mirror but would like to have the following modules work as well:

  • 'MMM-pihole-stats',
  • 'MMM-Carousel',
  • 'MMM-SL-PublicTransport',
  • 'MMM-CrisisInformationSweden',
  • 'DailyXKCD',
  • 'MMM-GameOfLife',
  • 'MMM-NetworkScanner',

Where the most important ones really are SL-PublicTransport, CrisisInformationSweden.
Thanks a ton!

Integration into MK2

Hello,
thanks for your work and it is an awesome eyecatcher!!

My question is more about the possibility to combine to Projects together!?

At the moment there is a lot of new stuff in the MK2 project, but the Frontend and some none Google commands are not perfect.
But especially to integrate the LUCY Frontent into the MK2 project would be really amazing.

What do you think?

Best and thx

USB Mic Wont Work PI4

Mic Constantly shows error
arecord -l lists it as 2,0

config reflects that

arecord test.wav works

aplay test.wav works

tried USBFHD04H and HP Webcam HD 2300

same config on a Pi3B+ shows error but still responds to voice commands

AVStock not responding to commands/notifications

G'day mykle,
Thanks so much for your work on this module. Being able to control individual modules visibility is a massive help!!
I personally am still pretty new to this so you'll need to forgive my ignorance off the bat. I've installed MM along with a good range of modules, including Hello Lucy. One module in particular, namley AVStock is however giving me grief and doesn't appear to be responding to the hide/show commands.

Would you mind helping me with it? I've incorporated the code exactly as suggested and i can;t for the life of me work out why the module isn't responding. Also is there a way for a novice such myself to view the contents of variables in an "online / debug" mode?

ADD PAGES AND MODULE

Good evening. I don't know where to go for this type of section .. I tried to add modules following what was written in the instructions but I couldn't. So I ask you please how can I do? I start by telling you that I have a magicmirror with at least 12 pages (the goal is effective, because I don't know if the raspberry pi4 8gb can do all the work), each of these pages to a specific name with modules inside .. how can I do? then I wanted to add modules .. for example: MMM-PLACEINFO, MMM-OPENMAPWEATHER and many others. a module like yours that works offline and calls up the modules is perfect ..
at the beginning lucy could hear me but did nothing but hide the modules with the default version .. with my modification instead it does nothing and it seems that she does not hear me ..
another question, having the Google assistant module can not get along with lucy and make problems ?? teach me, please. ps: I would also have some custom sounds to add to the lucy module.

Module:
BIRTHDAYS
CALENDAR MONTHLY
MMM-COINMARKETCAP
MMM-CRONIXIE
MMM-BAGOFCLOCKS
MMM-EARTH
MMM-EMBEDYOUTUBE
MMM-FLIPCLOCK
MMM-GOOGLEBYRTHDAYSPROVIDER
MMM-GOOGLECALENDAR
MMM-NIXIE-CLOCK
MMM-OPENMAPWEATHER
MMM-PLACEINFO
MMM-SOCCERLIVESCORE
MMM-TEXT-CLOCK
MMM-TOOLS
MMM-MOONPHASE
MMM-WEBVIEW
MMM-WIFIPASSWORD
MMM-XPLANET
MMM-SOCCER
YFRAME
and another modules... but first this.. if i could have a video of you showing how can modify and add modules one or two modules of these listed in the following steps, i could then do it by myself without disturbing and bothering you. i know full well that a breakup. please... PLEASE... even in private... im the guy who wrote to you on yotube chanel a few days ago. thank you if you will give me an answer whatever it is. thanks you

(NOT AN ERROR)

Hi Mykle,
Amazing work firstly,
I am wondering if there could be a audio reaction when the hot-word is activated.
Also I have a few Modules I will needed added if you have time I would appreciate it.

E: Package 'python-pip' has no installation candidate

Note, selecting 'python-dev-is-python2' instead of 'python-dev'
Package python-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python3-pip

E: Package 'python-pip' has no installation candidate
[STEP 1/5] Installing Packages | Failed

when I type this command "bash dependencies.sh"

Good work with this

Very good work with this Mykle!

Any chance of creating a male face? so i can add a male voice?

any chance of sending notifications to Remote-Control module so we can use custom commands?

Speaker Issue

Hey, sorry Pi noobie here.
I'm trying to get my speaker and microphone set up and keep getting the following error when trying to run speaker-test

Write error: -77, File descriptor in bad state
xrun_recovery failed: -77, File descriptor in bad state
Transfer failed: File descriptor in bad state

I've been posting on some message boards and it looks like my pi might not have enough power to run my speaker?
I'm just looking for a tried and true speaker I can order that will work with my pi and Hello-Lucy(:

Installation issues

While loading Hello-Lucy it is showing errors in the npm installation 5/5. It is showing that the github protocol is no longer supported.

Thanks

Executing the dependencies.sh fails on step 3

After many attempts, I can't seem to get past step 2. Installing pocketsphinx seems to fail.

[STEP 3/5] Installing pocketsphinx
Cloning into 'pocketsphinx'...
remote: Enumerating objects: 17888, done.
remote: Counting objects: 100% (1719/1719), done.
remote: Compressing objects: 100% (643/643), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): Error decoding the received TLS packet.
error: 6726 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
[STEP 3/5] Installing pocketsphinx | Failed

Does this script still work? Has anyone been successful recently with this install?

Response time

Hi

When i ask something to Lucy it takes really long until it actually does it.

Any fixes?

New Modules

I was wondering if you would be able to set up the Hello-Lucy to be able to control the MMM-Bob-Ross module. There is no way to start the vidoes of bob ross without a module sending a notification to start the video, and I want to use Hello-Lucy to do so. Heres the link: https://github.com/Veldrovive/MMM-Bob-Ross

Sorry i sent this as an issue, I couldn't find your email to send this to you

Improving sentences in MMM-voice.js replacement

Improving sentences in MMM-voice.js replacement.

I propose to make the sentences found in MMM-voice.js (replacement) to be in their own file.
Perhaps as a list of the module names, since the SHOW, and HIDE prefix words are always the same for all.

Then it's very easy to add for anyone...

BTW. @mykle1 a question:

  • Why did you choose to replace MMM-voice, rather than ask him to incorporate your changes?
    Reason I'm asking, it seem that in case he need to make changes in that module, I guess it can brake yours?

Installation Errors Resolving Depencencys -- Error ERESOLVE unable to resolve dependency tree

I'm new to GitHub. This may be a duplicate. Sorry about that.
I've followed all directions for installing hello-lucy. Sound and microphone have been verified. Part 5 fails. I would appreciate any assistance in completing this installation

New Raspberry Pi 4 8 gb All latest software installed, Using HDMI monitor for sound and USB Microphone Verified Both work!

Logs are included below

npm-eresolve-report.txt

npm resolution error report

2021-02-15T21:37:19.700Z

While resolving: [email protected]
Found: [email protected]
node_modules/eslint
dev eslint@"^6.8.0" from the root project

Could not resolve dependency:
peer eslint@"^3.19.0 || ^4.5.0" from [email protected]
node_modules/eslint-config-airbnb-base
dev eslint-config-airbnb-base@"^11.0.1" from the root project

Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Raw JSON explanation object:

{
"code": "ERESOLVE",
"current": {
"name": "eslint",
"version": "6.8.0",
"whileInstalling": {
"name": "Hello-Lucy",
"version": "1.0.1",
"path": "/home/pi/MagicMirror/modules/Hello-Lucy"
},
"location": "node_modules/eslint",
"dependents": [
{
"type": "dev",
"name": "eslint",
"spec": "^6.8.0",
"from": {
"location": "/home/pi/MagicMirror/modules/Hello-Lucy"
}
}
]
},
"edge": {
"type": "peer",
"name": "eslint",
"spec": "^3.19.0 || ^4.5.0",
"error": "INVALID",
"from": {
"name": "eslint-config-airbnb-base",
"version": "11.3.2",
"whileInstalling": {
"name": "Hello-Lucy",
"version": "1.0.1",
"path": "/home/pi/MagicMirror/modules/Hello-Lucy"
},
"location": "node_modules/eslint-config-airbnb-base",
"dependents": [
{
"type": "dev",
"name": "eslint-config-airbnb-base",
"spec": "^11.0.1",
"from": {
"location": "/home/pi/MagicMirror/modules/Hello-Lucy"
}
}
]
}
},
"peerConflict": null,
"strictPeerDeps": false,
"force": false
}


npm_logs_021-02-15T21_37_19_723Z-debug.log.txt

0 verbose cli [ '/usr/bin/node',
0 verbose cli '/usr/local/bin/npm',
0 verbose cli 'install',
0 verbose cli '--productive' ]
1 info using [email protected]
2 info using [email protected]
3 timing config:load:defaults Completed in 6ms
4 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 7ms
5 timing config:load:builtin Completed in 7ms
6 timing config:load:cli Completed in 11ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:/home/pi/MagicMirror/modules/Hello-Lucy/.npmrc Completed in 1ms
9 timing config:load:project Completed in 3ms
10 timing config:load:file:/home/pi/.npmrc Completed in 1ms
11 timing config:load:user Completed in 1ms
12 timing config:load:file:/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 1ms
17 timing config:load:setEnvs Completed in 4ms
18 timing config:load Completed in 40ms
19 verbose npm-session 34512379a9096347
20 timing npm:load Completed in 80ms
21 timing arborist:ctor Completed in 6ms
22 timing arborist:ctor Completed in 0ms
23 timing idealTree:init Completed in 100ms
24 timing idealTree:userRequests Completed in 0ms
25 silly idealTree buildDeps
26 silly fetch manifest [email protected]
27 http fetch GET 200 https://registry.npmjs.org/lmtool 586ms
28 silly fetch manifest pocketsphinx-continuous@git://github.com/mykle1/pocketsphinx-continuous-node.git
29 silly fetch manifest eslint@^6.8.0
30 http fetch GET 200 https://registry.npmjs.org/eslint 345ms
31 silly fetch manifest eslint-config-airbnb-base@^11.0.1
32 http fetch GET 200 https://registry.npmjs.org/eslint-config-airbnb-base 90ms
33 silly fetch manifest eslint@^3.19.0 || ^4.5.0
34 timing idealTree Completed in 3229ms
35 timing command:install Completed in 3281ms
36 verbose stack Error: unable to resolve dependency tree
36 verbose stack at Arborist.[failPeerConflict] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1115:25)
36 verbose stack at Arborist.[loadPeerSet] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1095:34)
37 verbose cwd /home/pi/MagicMirror/modules/Hello-Lucy
38 verbose Linux 5.10.11-v7l+
39 verbose argv "/usr/bin/node" "/usr/local/bin/npm" "install" "--productive"
40 verbose node v10.23.1
41 verbose npm v7.5.2
42 error code ERESOLVE
43 error ERESOLVE unable to resolve dependency tree
44 error
45 error While resolving: �[1mHello-Lucy�[22m@�[1m1.0.1�[22m
45 error Found: �[1meslint�[22m@�[1m6.8.0�[22m�[2m�[22m
45 error �[2mnode_modules/eslint�[22m
45 error �[33mdev�[39m �[1meslint�[22m@"�[1m^6.8.0�[22m" from the root project
45 error
45 error Could not resolve dependency:
45 error �[35mpeer�[39m �[1meslint�[22m@"�[1m^3.19.0 || ^4.5.0�[22m" from �[1meslint-config-airbnb-base�[22m@�[1m11.3.2�[22m�[2m�[22m
45 error �[2mnode_modules/eslint-config-airbnb-base�[22m
45 error �[33mdev�[39m �[1meslint-config-airbnb-base�[22m@"�[1m^11.0.1�[22m" from the root project
45 error
45 error Fix the upstream dependency conflict, or retry
45 error this command with --force, or --legacy-peer-deps
45 error to accept an incorrect (and potentially broken) dependency resolution.
45 error
45 error See /home/pi/.npm/eresolve-report.txt for a full report.
46 verbose exit 1

display error

Lucy works and respond just fine
show modules works great
but when I want to display one module it makes the confirmation sound but without any display on the screen

How to activate Module, with hello Lucy

Hi Mike,

First of all thank you for a such wonderful thing . It is really nice.
I have set up everything as instructed , MMM-Voice has been set and then all the files has been copied. But when I say Hello Lucy it does not open the module. When I say MAGIC MIRROR which is been set at MMM-Voice it activates , then I can say hide modules or show modules. But it is also part of the MMM-Voice . Do I need to change the Keyword in config file for MMM-Voice ?? (Which I did and ended up up with mike showing error next to it , and nothing worked) .. Please guide ....... how to activate the mic with Hello Lucy keyword...
Thanks,
manoj

Request to Add New Modules

We would like to request to have the following Modules added so Hello-Lucy can access and work with them:
-MMM-CalendarExt2
-MMM-AVStock
-MMM-lichess-daily
-MMM-Remote-Control

previouslyHidden Array ?

I have a Question about your previouslyHidden Array in the Hello-Lucy.js. Did I understand it right, that the Modules in this array are hidden at the startup? I tried this but it don't work for me. In my example I won't that the MMM-News Module are shown at the Startup, but when I write the Name of the Module inside the Array, its don't work and the Module is shown. Is it possible that I can only hide certain modules at the beginning and not all of them?

Mic Error

just install Hello-Lucy,every thing went fine,where can i change the wellkom message ... ?
thanks

Hide a default module

Hello, first thank you for you work it's really impressive!

I'm trying to hide the weather default module. I followed your tuto on github on how to add a module but it don't work..
Is your tuto complete or missing some things maybe..?

HELP ME I DON KNOW

PI4@raspberrypi:~` $ aplay -l
*** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

PI4@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 3: Microphone [USB Microphone], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice `#0`

```

Error when Using USB Audio Device Pi4

Afaik I have set everything up correctly, I have tested my mic, and output sound. However! when I open magic mirror, Lucy greets me, but she doesn't appear to hear me talk,

Running on 1gb Pi4

I can provide further info the best I can if requested. I am not very code saavy.

One more thing to note is my audio setup, I am using a usb sound card which has my lapel mic attached to the mic jack, and headphones attached to the headphone jack.

**** List of CAPTURE Hardware Devices **** card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0
Alsa.conf:
`#

ALSA library configuration file

pre-load the configuration files

@hooks [
{
func load
files [
"/etc/alsa/conf.d"
"/etc/asound.conf"
"~/.asoundrc"
]
errors false
}
]

load card-specific configuration files (on request)

cards.@hooks [
{
func load
files [
{
@func concat
strings [
{ @func datadir }
"/cards/aliases.conf"
]
}
]
}
{
func load_for_all_cards
files [
{
@func concat
strings [
{ @func datadir }
"/cards/"
{ @func private_string }
".conf"
]
}
]
errors false
}
]

defaults

show all name hints also for definitions without hint {} section

defaults.namehint.showall on

show just basic name hints

defaults.namehint.basic on

show extended name hints

defaults.namehint.extended on

defaults.ctl.card 2
defaults.pcm.card 2
defaults.pcm.device 0
defaults.pcm.subdevice -1
defaults.pcm.nonblock 1
defaults.pcm.compat 0
defaults.pcm.minperiodtime 5000 # in us
defaults.pcm.ipc_key 5678293
defaults.pcm.ipc_gid audio
defaults.pcm.ipc_perm 0660
defaults.pcm.dmix.max_periods 0
defaults.pcm.dmix.rate 48000
defaults.pcm.dmix.format "unchanged"
defaults.pcm.dmix.card defaults.pcm.card
defaults.pcm.dmix.device defaults.pcm.device
defaults.pcm.dsnoop.card defaults.pcm.card
defaults.pcm.dsnoop.device defaults.pcm.device
defaults.pcm.front.card defaults.pcm.card
defaults.pcm.front.device defaults.pcm.device
defaults.pcm.rear.card defaults.pcm.card
defaults.pcm.rear.device defaults.pcm.device
defaults.pcm.center_lfe.card defaults.pcm.card
defaults.pcm.center_lfe.device defaults.pcm.device
defaults.pcm.side.card defaults.pcm.card
defaults.pcm.side.device defaults.pcm.device
defaults.pcm.surround21.card defaults.pcm.card
defaults.pcm.surround21.device defaults.pcm.device
defaults.pcm.surround40.card defaults.pcm.card
defaults.pcm.surround40.device defaults.pcm.device
defaults.pcm.surround41.card defaults.pcm.card
defaults.pcm.surround41.device defaults.pcm.device
defaults.pcm.surround50.card defaults.pcm.card
defaults.pcm.surround50.device defaults.pcm.device
defaults.pcm.surround51.card defaults.pcm.card
defaults.pcm.surround51.device defaults.pcm.device
defaults.pcm.surround71.card defaults.pcm.card
defaults.pcm.surround71.device defaults.pcm.device
defaults.pcm.iec958.card defaults.pcm.card
defaults.pcm.iec958.device defaults.pcm.device
defaults.pcm.modem.card defaults.pcm.card
defaults.pcm.modem.device defaults.pcm.device

truncate files via file or tee PCM

defaults.pcm.file_format "raw"
defaults.pcm.file_truncate true
defaults.rawmidi.card 0
defaults.rawmidi.device 0
defaults.rawmidi.subdevice -1
defaults.hwdep.card 0
defaults.hwdep.device 0
defaults.timer.class 2
defaults.timer.sclass 0
defaults.timer.card 0
defaults.timer.device 0
defaults.timer.subdevice 0

PCM interface

redirect to load-on-demand extended pcm definitions

pcm.cards cards.pcm

pcm.default cards.pcm.default
pcm.sysdefault cards.pcm.default
pcm.front cards.pcm.front
pcm.rear cards.pcm.rear
pcm.center_lfe cards.pcm.center_lfe
pcm.side cards.pcm.side
pcm.surround21 cards.pcm.surround21
pcm.surround40 cards.pcm.surround40
pcm.surround41 cards.pcm.surround41
pcm.surround50 cards.pcm.surround50
pcm.surround51 cards.pcm.surround51
pcm.surround71 cards.pcm.surround71
pcm.iec958 cards.pcm.iec958
pcm.spdif iec958
pcm.hdmi cards.pcm.hdmi
pcm.dmix cards.pcm.dmix
pcm.dsnoop cards.pcm.dsnoop
pcm.modem cards.pcm.modem
pcm.phoneline cards.pcm.phoneline

pcm.hw {
@Args [ CARD DEV SUBDEV ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_PCM_CARD
ALSA_CARD
]
default {
@func refer
name defaults.pcm.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
ALSA_PCM_DEVICE
]
default {
@func refer
name defaults.pcm.device
}
}
}
@args.SUBDEV {
type integer
default {
@func refer
name defaults.pcm.subdevice
}
}
type hw
card $CARD
device $DEV
subdevice $SUBDEV
hint {
show {
@func refer
name defaults.namehint.extended
}
description "Direct hardware device without any conversions"
}
}

pcm.plughw {
@Args [ CARD DEV SUBDEV ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_PCM_CARD
ALSA_CARD
]
default {
@func refer
name defaults.pcm.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
ALSA_PCM_DEVICE
]
default {
@func refer
name defaults.pcm.device
}
}
}
@args.SUBDEV {
type integer
default {
@func refer
name defaults.pcm.subdevice
}
}
type plug
slave.pcm {
type hw
card $CARD
device $DEV
subdevice $SUBDEV
}
hint {
show {
@func refer
name defaults.namehint.extended
}
description "Hardware device with all software conversions"
}
}

pcm.plug {
@Args [ SLAVE ]
@args.SLAVE {
type string
}
type plug
slave.pcm $SLAVE
}

pcm.shm {
@Args [ SOCKET PCM ]
@args.SOCKET {
type string
}
@args.PCM {
type string
}
type shm
server $SOCKET
pcm $PCM
}

pcm.tee {
@Args [ SLAVE FILE FORMAT ]
@args.SLAVE {
type string
}
@args.FILE {
type string
}
@args.FORMAT {
type string
default {
@func refer
name defaults.pcm.file_format
}
}
type file
slave.pcm $SLAVE
file $FILE
format $FORMAT
truncate {
@func refer
name defaults.pcm.file_truncate
}
}

pcm.file {
@Args [ FILE FORMAT ]
@args.FILE {
type string
}
@args.FORMAT {
type string
default {
@func refer
name defaults.pcm.file_format
}
}
type file
slave.pcm null
file $FILE
format $FORMAT
truncate {
@func refer
name defaults.pcm.file_truncate
}
}

pcm.null {
type null
hint {
show {
@func refer
name defaults.namehint.basic
}
description "Discard all samples (playback) or generate zero samples (capture)"
}
}

Control interface

ctl.sysdefault {
type hw
card {
@func getenv
vars [
ALSA_CTL_CARD
ALSA_CARD
]
default {
@func refer
name defaults.ctl.card
}
}
hint.description "Default control device"
}
ctl.default ctl.sysdefault

ctl.hw {
@Args [ CARD ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_CTL_CARD
ALSA_CARD
]
default {
@func refer
name defaults.ctl.card
}
}
}
type hw
card $CARD
hint.description "Direct control device"
}

ctl.shm {
@Args [ SOCKET CTL ]
@args.SOCKET {
type string
}
@args.CTL {
type string
}
type shm
server $SOCKET
ctl $CTL
}

RawMidi interface

rawmidi.default {
type hw
card {
@func getenv
vars [
ALSA_RAWMIDI_CARD
ALSA_CARD
]
default {
@func refer
name defaults.rawmidi.card
}
}
device {
@func igetenv
vars [
ALSA_RAWMIDI_DEVICE
]
default {
@func refer
name defaults.rawmidi.device
}
}
hint.description "Default raw MIDI device"
}

rawmidi.hw {
@Args [ CARD DEV SUBDEV ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_RAWMIDI_CARD
ALSA_CARD
]
default {
@func refer
name defaults.rawmidi.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
ALSA_RAWMIDI_DEVICE
]
default {
@func refer
name defaults.rawmidi.device
}
}
}
@args.SUBDEV {
type integer
default -1
}
type hw
card $CARD
device $DEV
subdevice $SUBDEV
hint {
description "Direct rawmidi driver device"
device $DEV
}
}

rawmidi.virtual {
@Args [ MERGE ]
@args.MERGE {
type string
default 1
}
type virtual
merge $MERGE
}

Sequencer interface

seq.default {
type hw
hint.description "Default sequencer device"
}

seq.hw {
type hw
}

HwDep interface

hwdep.default {
type hw
card {
@func getenv
vars [
ALSA_HWDEP_CARD
ALSA_CARD
]
default {
@func refer
name defaults.hwdep.card
}
}
device {
@func igetenv
vars [
ALSA_HWDEP_DEVICE
]
default {
@func refer
name defaults.hwdep.device
}
}
hint.description "Default hardware dependent device"
}

hwdep.hw {
@Args [ CARD DEV ]
@args.CARD {
type string
default {
@func getenv
vars [
ALSA_HWDEP_CARD
ALSA_CARD
]
default {
@func refer
name defaults.hwdep.card
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars [
ALSA_HWDEP_DEVICE
]
default {
@func refer
name defaults.hwdep.device
}
}
}
type hw
card $CARD
device $DEV
hint {
description "Direct hardware dependent device"
device $DEV
}
}

Timer interface

timer_query.default {
type hw
}

timer_query.hw {
type hw
}

timer.default {
type hw
class {
@func refer
name defaults.timer.class
}
sclass {
@func refer
name defaults.timer.sclass
}
card {
@func refer
name defaults.timer.card
}
device {
@func refer
name defaults.timer.device
}
subdevice {
@func refer
name defaults.timer.subdevice
}
hint.description "Default timer device"
}

timer.hw {
@Args [ CLASS SCLASS CARD DEV SUBDEV ]
@args.CLASS {
type integer
default {
@func refer
name defaults.timer.class
}
}
@args.SCLASS {
type integer
default {
@func refer
name defaults.timer.sclass
}
}
@args.CARD {
type string
default {
@func refer
name defaults.timer.card
}
}
@args.DEV {
type integer
default {
@func refer
name defaults.timer.device
}
}
@args.SUBDEV {
type integer
default {
@func refer
name defaults.timer.subdevice
}
}
type hw
class $CLASS
sclass $SCLASS
card $CARD
device $DEV
subdevice $SUBDEV
hint {
description "Direct timer device"
device $DEV
}
}
`

Config:
`/* Magic Mirror Config Sample
*

*/

var config = {
address: "localhost", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out or empty, is "localhost"
port: 8080,
basePath: "/", // The URL path where MagicMirror is hosted. If you are using a Reverse proxy
// you must set the sub path here. basePath must end with a /
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],

useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true

language: "en",
logLevel: ["INFO", "LOG", "WARN", "ERROR"],
timeFormat: 12,
units: "imperial",
// serverOnly:  true/false/"local" ,
// local for armv6l processors, default
//   starts serveronly and then starts chrome browser
// false, default for all NON-armv6l devices
// true, force serveronly mode, because you want to.. no UI on this device

modules: [
	{
		module: "alert",
	},
	{
		module: "updatenotification",
		position: "top_bar"
	},
	{
		module: "clock",
		position: "top_left"
	},
	{
		module: "currentweather",
		position: "top_right",
		config: {
			location: "Austin, Texas",
			locationID: "", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
			appid: "4798dec01a9dff0e0521423fcd8fdbf4"
		}
	},
	{
		module: "weatherforecast",
		position: "top_right",
		header: "Weather Forecast",
		config: {
			location: "Austin, Texas",
			locationID: "", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
			appid: "4798dec01a9dff0e0521423fcd8fdbf4"
		}
	},
	{
		module: "newsfeed",
		position: "bottom_bar",
		config: {
			feeds: [
				{
					title: "Austin",
					url: "https://www.kxan.com/feed"
				}
			],
			showSourceTitle: true,
			showPublishDate: true,
			broadcastNewsFeeds: true,
			broadcastNewsUpdates: true
		}
            },
	{
	         module: 'MMM-BackgroundSlideshow',
                     position: 'fullscreen_below',
                     config: {
                     imagePaths: ['modules/MMM-BackgroundSlideshow/exampleImages/'],
                     transitionImages: true,
                     randomizeImageOrder: true,
                     slideshowSpeed: 60000,
		}
            },
	{
		disabled: false,
		module: "Hello-Lucy",
		position: "top_center",
		config: {
				keyword: 'HELLO LUCY',              // keyword to activate listening for a command/sentence
				timeout: 15,                        // timeout listening for a command/sentence
				standByMethod: 'DPMS',              // 'DPMS' = anything else than RPi or 'PI'
				microphone: "2,0",                  // run "arecord -l" card # and device # mine is "0,0"
				sounds: ["1.mp3", "11.mp3"],        // welcome sound at startup. Add several for a random greetings
				confirmationSound: "ding.mp3",      // name and extension of sound file
				startHideAll: true,                 // All modules start as hidden EXCEPT PAGE ONE
				// *** Page One is your default startup page *** This overrides startHideAll: true,
				pageOneModules: ["Hello-Lucy","MMM-BackgroundSlideshow","newsfeed","weatherforecast","currentweather","alert","updatenotification","clock"],// default modules to show on page one/startup
				pageTwoModules: ["Hello-Lucy", "MMM-BMW-DS", "MMM-EventHorizon"], // modules to show on page two
				pageThreeModules: ["Hello-Lucy", "MMM-Lunartic"],                 // modules to show on page three
				pageFourModules: ["Hello-Lucy", "MMM-PC-Stats"],                  // modules to show on page four
				pageFiveModules: ["Hello-Lucy", "MMM-Searchlight"],               // modules to show on page five
			pageSixModules: ["Hello-Lucy", "MMM-NOAA3"],                      // modules to show on page six
				pageSevenModules: ["Hello-Lucy", "MMM-Recipe"],                   // modules to show on page seven
				pageEightModules: ["Hello-Lucy", "MMM-rfacts"],                   // modules to show on page eight
				pageNineModules: ["Hello-Lucy", "MMM-History"],                   // modules to show on page nine
				pageTenModules: ["Hello-Lucy", "MMM-HardwareMonitor"]             // modules to show on page ten
		}
            },

]

};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
`

Log:

[2020-12-04 00:20:52.502] [LOG] Starting MagicMirror: v2.13.0 [2020-12-04 00:20:52.509] [LOG] Loading config ... [2020-12-04 00:20:52.514] [LOG] Loading module helpers ... [2020-12-04 00:20:52.516] [LOG] No helper found for module: alert. [2020-12-04 00:20:52.570] [LOG] Initializing new module helper ... [2020-12-04 00:20:52.571] [LOG] Module helper loaded: updatenotification [2020-12-04 00:20:52.572] [LOG] No helper found for module: clock. [2020-12-04 00:20:52.573] [LOG] No helper found for module: currentweather. [2020-12-04 00:20:52.573] [LOG] No helper found for module: weatherforecast. [2020-12-04 00:20:52.883] [LOG] Initializing new module helper ... [2020-12-04 00:20:52.883] [LOG] Module helper loaded: newsfeed [2020-12-04 00:20:52.885] [LOG] Initializing new module helper ... [2020-12-04 00:20:52.886] [LOG] Module helper loaded: MMM-BackgroundSlideshow [2020-12-04 00:20:54.231] [LOG] Initializing new module helper ... [2020-12-04 00:20:54.231] [LOG] Module helper loaded: Hello-Lucy [2020-12-04 00:20:54.232] [LOG] All module helpers loaded. [2020-12-04 00:20:54.327] [LOG] Starting server on port 8080 ... [2020-12-04 00:20:54.340] [LOG] Server started ... [2020-12-04 00:20:54.341] [LOG] Connecting socket for: updatenotification [2020-12-04 00:20:54.342] [LOG] Connecting socket for: newsfeed [2020-12-04 00:20:54.343] [LOG] Starting node helper for: newsfeed [2020-12-04 00:20:54.343] [LOG] Connecting socket for: MMM-BackgroundSlideshow [2020-12-04 00:20:54.344] [LOG] Connecting socket for: Hello-Lucy [2020-12-04 00:20:54.344] [LOG] Starting module helper: Hello-Lucy [2020-12-04 00:20:54.345] [LOG] Sockets connected & modules started ... [2020-12-04 00:20:54.432] [LOG] Launching application. [2020-12-04 00:20:56.549] [LOG] Create new news fetcher for url: https://www.kxan.com/feed - Interval: 300000 [2020-12-04 00:20:56.695] [INFO] Checking git for module: MMM-BackgroundSlideshow [2020-12-04 00:20:56.698] [INFO] Checking git for module: Hello-Lucy [2020-12-04 00:20:57.566] [INFO] Newsfeed-Fetcher: Broadcasting 16 items. [2020-12-04 00:21:22.281] [LOG] Shutting down server... [2020-12-04 00:21:22.284] [LOG] Stopping module helper: updatenotification [2020-12-04 00:21:22.285] [LOG] Stopping module helper: newsfeed [2020-12-04 00:21:22.286] [LOG] Stopping module helper: MMM-BackgroundSlideshow [2020-12-04 00:21:22.287] [LOG] Stopping module helper: Hello-Lucy

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.