@sdetweil Sorry, a bit late but it worked.
The other issues are related to modules. I try first to solve it. I will come back if I get stuck.
@sdetweil Sorry, a bit late but it worked.
The other issues are related to modules. I try first to solve it. I will come back if I get stuck.
@sdetweil what would I do without you ?
I get this:
npm run install:mm
npm ERR! Missing script: "install:mm"
npm ERR!
npm ERR! Did you mean one of these?
npm ERR! npm install # Install a package
npm ERR! npm run install-mm # run the "install-mm" package script
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in: /home/manfred/.npm/_logs/2024-02-10T18_21_24_984Z-debug-0.log
I did the install-mm
something is running
Installing dependencies ...
Unable to install dependencies! :eslint-plugin-jest: sill placeDep ROOT @typescript-eslint/utils@6.21.0 OK for: @stylistic/eslint-plugin-plus@1.6.1 want: ^6.20.0
I checked following version:
manfred@raspberrypi:~ $ node -v
v20.8.0
manfred@raspberrypi:~ $ npm -v
10.4.0
manfred@raspberrypi:~ $ eslint -v
v6.4.0
I also check via update-script:
Check current Node installation ...
Node currently installed. Checking version number.
Minimum Node version: v20.8.0
Installed Node version: v20.8.0
No Node.js upgrade necessary.
Check current NPM installation ...
NPM currently installed. Checking version number.
Minimum npm version: V10.1.0
Installed npm version: V10.4.0
No npm upgrade necessary.
Why can’t the dependencies be installed?
Manfred
I tried it again, this time there is a wider explanation:
<--- Last few GCs --->
[34629:0x32d3dfa0] 163058 ms: Mark-Compact (reduce) 426.0 (440.9) -> 396.4 (405.4) MB, 44.66 / 0.04 ms (+ 274.3 ms in 124 steps since start of marking, biggest step 29.7 ms, walltime since start of marking 887 ms) (average mu = 0.935, current mu = 0.75[34629:0x32d3dfa0] 168793 ms: Mark-Compact 472.5 (480.4) -> 472.1 (483.7) MB, 2788.15 / 0.00 ms (average mu = 0.700, current mu = 0.513) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0xc7b9cc node::Abort() [npm install]
2: 0xb6e418 void node::FPrintF<>(_IO_FILE*, char const*) [npm install]
3: 0xe79d2c v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [npm install]
4: 0xe79efc v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [npm install]
5: 0x10818cc [npm install]
6: 0x1097da4 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [npm install]
7: 0x1070b0c v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [npm install]
8: 0x10718d0 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [npm install]
9: 0x10508d0 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [npm install]
10: 0x1042098 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [npm install]
11: 0x10448bc v8::internal::FactoryBase<v8::internal::Factory>::NewRawOneByteString(int, v8::internal::AllocationType) [npm install]
12: 0x119a4e0 v8::internal::JsonParser<unsigned short>::MakeString(v8::internal::JsonString const&, v8::internal::Handle<v8::internal::String>) [npm install]
13: 0x119fbd4 [npm install]
14: 0x11a1640 v8::internal::JsonParser<unsigned short>::ParseJson(v8::internal::Handle<v8::internal::Object>) [npm install]
15: 0xf0c83c v8::internal::Builtin_JsonParse(int, unsigned long*, v8::internal::Isolate*) [npm install]
16: 0x1862964 [npm install]
Unable to install dependencies!
I do not understand the [npm install] !
Does anyone understand this post of my RaspberryPi3B ?
@sdetweil Do I understand cerrectly?
the two different credentials.json must work with the same OAuth Code?
I just restarted the Mirror and now miraculously the Anniversaries are shown as well.
I hope it stays like this.
Thanks a lot Sam.
Hi,
i succesfully created an googleAPI for MMM-GoogleBirthdaysProvider it worked well until I created an googleAPI for MMM-GoogleTasks. Now GoogleTasks works but GoogleBirthdayProvider is no longer connected.
What Do I have to do that both Modules work parallel?
Thanks in advance for your responses.
Manfred
Thank you again.
MM2 is up and running.
I start over!
Thanks for the checklist.
I wont loose much for my custom.css , config.js I have the code copied in a textfile. The modules I would have to reinstall but thats ok.
Thank you for your time.
Manfred
I know what you mean:
in an earlier installation I could move the mouse and the menubar got visible or I could press F11 and the menubar got visible. But now nothing works.
So should I reinstall raspian and start from the beginning or is there a work a round?
The display does not react to ctrl-alt-t and there is no terminal visible.
Yes I have_
Ok this does not work.
So it seems to be raspianOS failure.
This is an pi 3 Model B V1.2
the HDMI is about 2 Centimeters right to the MicroUSB Power input.
I updated to raspianOS bookworm first.
Manfred
Sorry forgot to answer:
I am on the raspberrypi over ssh.
The Display is connected directly via the HDMI Port of the pi . All equipment is right at arm distance, because I’m setting it up first before staching it behind the actual mirror.
But I am on the pi via ssh so that later I can do updates and probably adding new modules .
Manfred
Here is the output:
npm start
> magicmirror@2.26.0 start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
[06.01.2024 15:56.41.020] [LOG] Starting MagicMirror: v2.26.0
[06.01.2024 15:56.41.030] [LOG] Loading config ...
[06.01.2024 15:56.41.035] [DEBUG] config template file not exists, no envsubst
[06.01.2024 15:56.41.042] [LOG] Loading module helpers ...
[06.01.2024 15:56.41.044] [LOG] No helper found for module: alert.
[06.01.2024 15:56.41.095] [LOG] Initializing new module helper ...
[06.01.2024 15:56.41.097] [LOG] Module helper loaded: updatenotification
[06.01.2024 15:56.41.098] [LOG] No helper found for module: clock.
[06.01.2024 15:56.41.376] [LOG] Initializing new module helper ...
[06.01.2024 15:56.41.378] [LOG] Module helper loaded: calendar
[06.01.2024 15:56.41.380] [LOG] No helper found for module: compliments.
[06.01.2024 15:56.41.381] [LOG] No helper found for module: weather.
[06.01.2024 15:56.41.580] [LOG] Initializing new module helper ...
[06.01.2024 15:56.41.581] [LOG] Module helper loaded: newsfeed
[06.01.2024 15:56.41.581] [LOG] All module helpers loaded.
[06.01.2024 15:56.41.597] [LOG] Starting server on port 8080 ...
[06.01.2024 15:56.42.098] [LOG] Server started ...
[06.01.2024 15:56.42.099] [LOG] Connecting socket for: updatenotification
[06.01.2024 15:56.42.101] [LOG] Starting module helper: updatenotification
[06.01.2024 15:56.42.102] [LOG] Connecting socket for: calendar
[06.01.2024 15:56.42.103] [LOG] Starting node helper for: calendar
[06.01.2024 15:56.42.104] [LOG] Connecting socket for: newsfeed
[06.01.2024 15:56.42.105] [LOG] Starting node helper for: newsfeed
[06.01.2024 15:56.42.106] [LOG] Sockets connected & modules started ...
[06.01.2024 15:56.42.132] [LOG] Launching application.
[06.01.2024 15:56.45.490] [LOG] Create new calendarfetcher for url: https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics - Interval: 604800000
[06.01.2024 15:56.45.911] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[06.01.2024 15:56.45.924] [INFO] updatenotification: Updater Class Loaded!
[06.01.2024 15:56.45.926] [INFO] updatenotification: Checking PM2 using...
[06.01.2024 15:56.45.931] [INFO] Checking git for module: MagicMirror
[06.01.2024 15:56.47.527] [INFO] Calendar-Fetcher: Broadcasting 12 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
[06.01.2024 15:56.47.822] [INFO] Newsfeed-Fetcher: Broadcasting 29 items.
[06.01.2024 15:56.48.421] [INFO] updatenotification: You are not using pm2
I deleted mm
But no, MagicMirror does not appear.
pm2 status looks like that now:
~/MagicMirror $ pm2 status
┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ MagicMirror │ default │ 2.26.0 │ fork │ 4369 │ 6m │ 0 │ online │ 0% │ 2.8mb │ pi │ disabled │
Hi,
I did what you asked:
pm2 start MagicMirror
[PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ])
[PM2] [MagicMirror](0) ✓
[PM2] Process successfully started
┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ MagicMirror │ default │ 2.26.0 │ fork │ 4369 │ 0s │ 0 │ online │ 0% │ 2.8mb │ pi │ disabled │
│ 1 │ mm │ default │ N/A │ fork │ 0 │ 0 │ 1 │ stopped │ 0% │ 0b │ pi │ disabled │
I wonder why “watching” is disabled.
Manfred
Hi,
I have just installed https://github.com/sdetweil/MagicMirror_scripts
MagicMirror2 is booting, I can see the splashscreen but then nothing is displayed. I did not add any module yet, no API-Keys it’s just the new installed MM.
Here is the pm2 log mm
~/MagicMirror $ pm2 log mm
[TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
/home/pi/.pm2/logs/mm-out.log last 15 lines:
1|mm | [06.01.2024 12:07.46.129] [LOG] Loading config ...
1|mm | [06.01.2024 12:07.46.138] [DEBUG] config template file not exists, no envsubst
1|mm | [06.01.2024 12:07.46.216] [LOG] Loading module helpers ...
1|mm | [06.01.2024 12:07.46.255] [LOG] No helper found for module: alert.
1|mm | [06.01.2024 12:07.46.750] [LOG] Initializing new module helper ...
1|mm | [06.01.2024 12:07.46.752] [LOG] Module helper loaded: updatenotification
1|mm | [06.01.2024 12:07.46.815] [LOG] No helper found for module: clock.
1|mm | [06.01.2024 12:07.48.676] [LOG] Initializing new module helper ...
1|mm | [06.01.2024 12:07.48.678] [LOG] Module helper loaded: calendar
1|mm | [06.01.2024 12:07.48.724] [LOG] No helper found for module: compliments.
1|mm | [06.01.2024 12:07.48.726] [LOG] No helper found for module: weather.
1|mm | [06.01.2024 12:07.49.978] [LOG] Initializing new module helper ...
1|mm | [06.01.2024 12:07.49.979] [LOG] Module helper loaded: newsfeed
1|mm | [06.01.2024 12:07.49.980] [LOG] All module helpers loaded.
1|mm | [06.01.2024 12:07.50.118] [LOG] Starting server on port 8080 ...
/home/pi/.pm2/logs/mm-error.log last 15 lines:
1|mm | errno: -98,
1|mm | syscall: 'listen',
1|mm | address: '::1',
1|mm | port: 8080
1|mm | }
1|mm | [06.01.2024 12:07.55.424] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
1|mm | [06.01.2024 12:07.55.435] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
1|mm | Warning: vkCreateInstance: Found no drivers!
1|mm | Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
1|mm | at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
1|mm | at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
1|mm | at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
1|mm | at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
1|mm | at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)
1|mm |
Can anybody tell me what I do not see?
Manfred
@sdetweil
thank you,
I have set in the config of MMM-voice the microphone 1, but there is still an error.
I will ask the developer of MMM-voice.
Manfred
@sdetweil
pi@raspberrypi:~ $ which arecord
/usr/bin/arecord
pi@raspberrypi:~ $ ls /usr/bin/arecord -laF
lrwxrwxrwx 1 root root 5 16. Apr 2021 /usr/bin/arecord -> aplay*
Is it that way that I have to set the microphone in MM separately so that the Module MMM-voice will recognize the micophone which is on card 1 device 0.
@sdetweil
Thank you for your reply.
pi@raspberrypi:/ $ arecord --format=S16_LE --duration=5 --rate=16000 --file-type=wav out.wav
Aufnahme: WAVE ‘out.wav’ : Signed 16 bit Little Endian, Rate: 16000 Hz, mono
out.wav: Keine Berechtigung
This ist the arecord without sudo
pi@raspberrypi:/ $ sudo arecord --format=S16_LE --duration=5 --rate=16000 --file-type=wav out.wav
Aufnahme: WAVE ‘out.wav’ : Signed 16 bit Little Endian, Rate: 16000 Hz, mono
and here the task with sudo.
ls arecord or find arecord – file or folder not found.
I assume that arecord is part of aplay probably of the alsa family.
But why do tasks of the same family ask for different rights.
Manfred
Hello
I installed a USB-Micro and a speaker on the headphone socket.
I used aplay and arecord to test.
when typing aplay … and enter it runs and plays the sound
when typing arecord…out.wav it says no rights
so I tried sudo arecord… it runs and records the file, which I can listen to via aplay.
MagicMirror cannot access the micro because of sudo.
How can I change the rights for arecord so MM can use it?
Manfred