Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default calendar module fetchInterval not being set under calendar config options, uses default value from calendar.js instead. #3297

Closed
ZiggidyZ opened this issue Dec 21, 2023 · 1 comment

Comments

@ZiggidyZ
Copy link

Platform:

Hardware        : BCM2835
Revision        : 902120
Serial          : 000000005664a900
Model           : Raspberry Pi Zero 2 W Rev 1.0
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian

Electron "version": "26.2.4"

Node Version:

Version 20

MagicMirror² Version:

"version": "2.25.0",

Description:

fetchInterval doesn't properly set as it stands today in the config.js.sample on github. Sample config has the fetchInterval in a location where it SHOULD work, but it never gets set. If the sample config is run WITHOUT modification, it will use the default value of 3.8m ms (1 hour) which is configured in the calendar.js file. The line as configured has the fetch set for 604.8m ms (1 week). I have repeated this issue on 2 Raspberry Pi Zero 2 W boards, running concurrently with their own micro-SD cards. This was not switching the same card between units. Also, each card was imaged with the Raspberry Pi imager, NOT cloned.

I can provide any additional information needed, but may need you to provide me the commands you would like to have run.

Steps to Reproduce:

Generic steps to reproduce:

OS installed from Windows on Raspberry Pi Imager v1.8.3
Raspbian - Raspberry PI OS Legacy 32 bit - configured with ONLY new username and Wifi credentials
Enable VNC

sudo apt update
sudo apt upgrade
sudo apt install -y ca-certificates curl gnupg git

sudo mkdir -p /etc/apt/keyrings

curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list

sudo apt update

sudo apt install nodejs -y


git clone https://github.com/MichMich/MagicMirror

cd MagicMirror/

npm run install-mm

sudo npm install -g npm@10.2.5

cp config/config.js.sample config/config.js


sudo dphys-swapfile swapoff

sudo nano /etc/dphys-swapfile
CONF_SWAPSIZE=1024

sudo dphys-swapfile setup

sudo dphys-swapfile swapon


npm run start

Output from my device:

xxxxxxxx@raspberrypi:~ $ ls -l
total 36
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 20:48 Bookshelf
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Desktop
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Documents
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Downloads
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Music
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Pictures
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Public
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Templates
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Videos
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $ sudo apt update
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libfuse2
Use 'sudo apt autoremove' to remove it.
The following packages will be upgraded:
  chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra xserver-common xserver-xorg-core xwayland
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 126 MB of archives.
After this operation, 1,224 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.raspberrypi.org/debian bullseye/main armhf chromium-browser-l10n all 120.0.6099.102-rpt1 [6,436 kB]
Get:2 http://archive.raspberrypi.org/debian bullseye/main armhf chromium-browser armhf 120.0.6099.102-rpt1 [110 MB]
Get:3 http://archive.raspberrypi.org/debian bullseye/main armhf chromium-codecs-ffmpeg-extra armhf 120.0.6099.102-rpt1 [1,024 kB]
Get:4 http://archive.raspberrypi.org/debian bullseye/main armhf xserver-common all 2:1.20.11-1+rpt3+deb11u10 [2,285 kB]
Get:5 http://archive.raspberrypi.org/debian bullseye/main armhf xserver-xorg-core armhf 2:1.20.11-1+rpt3+deb11u10 [3,352 kB]
Get:6 http://archive.raspberrypi.org/debian bullseye/main armhf xwayland armhf 2:1.20.11-1+rpt3+deb11u10 [2,970 kB]
Fetched 126 MB in 42s (3,035 kB/s)
Reading changelogs... Done
(Reading database ... 106663 files and directories currently installed.)
Preparing to unpack .../0-chromium-browser-l10n_120.0.6099.102-rpt1_all.deb ...
Unpacking chromium-browser-l10n (120.0.6099.102-rpt1) over (119.0.6045.171-rpt1) ...
Preparing to unpack .../1-chromium-browser_120.0.6099.102-rpt1_armhf.deb ...
Unpacking chromium-browser (120.0.6099.102-rpt1) over (119.0.6045.171-rpt1) ...
Preparing to unpack .../2-chromium-codecs-ffmpeg-extra_120.0.6099.102-rpt1_armhf.deb ...
Unpacking chromium-codecs-ffmpeg-extra (120.0.6099.102-rpt1) over (119.0.6045.171-rpt1) ...
Preparing to unpack .../3-xserver-common_2%3a1.20.11-1+rpt3+deb11u10_all.deb ...
Unpacking xserver-common (2:1.20.11-1+rpt3+deb11u10) over (2:1.20.11-1+rpt3+deb11u8) ...
Preparing to unpack .../4-xserver-xorg-core_2%3a1.20.11-1+rpt3+deb11u10_armhf.deb ...
Unpacking xserver-xorg-core (2:1.20.11-1+rpt3+deb11u10) over (2:1.20.11-1+rpt3+deb11u8) ...
Preparing to unpack .../5-xwayland_2%3a1.20.11-1+rpt3+deb11u10_armhf.deb ...
Unpacking xwayland (2:1.20.11-1+rpt3+deb11u10) over (2:1.20.11-1+rpt3+deb11u8) ...
Setting up chromium-codecs-ffmpeg-extra (120.0.6099.102-rpt1) ...
Setting up chromium-browser (120.0.6099.102-rpt1) ...
Setting up chromium-browser-l10n (120.0.6099.102-rpt1) ...
Setting up xserver-common (2:1.20.11-1+rpt3+deb11u10) ...
Setting up xwayland (2:1.20.11-1+rpt3+deb11u10) ...
Setting up xserver-xorg-core (2:1.20.11-1+rpt3+deb11u10) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u7) ...
Processing triggers for man-db (2.9.4-2) ...
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $ sudo apt-get install -y ca-certificates curl gnupg git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20210119).
curl is already the newest version (7.74.0-1.3+deb11u10).
git is already the newest version (1:2.30.2-1+deb11u2).
gnupg is already the newest version (2.2.27-2+deb11u2).
The following package was automatically installed and is no longer required:
  libfuse2
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $ sudo mkdir -p /etc/apt/keyrings
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $ NODE_MAJOR=20
xxxxxxxx@raspberrypi:~ $ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $ sudo apt update
Get:1 https://deb.nodesource.com/node_20.x nodistro InRelease [12.1 kB]
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease
Get:4 https://deb.nodesource.com/node_20.x nodistro/main armhf Packages [4,508 B]
Fetched 16.6 kB in 2s (9,336 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $ sudo apt install nodejs -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  libfuse2
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  nodejs
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.1 MB of archives.
After this operation, 185 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_20.x nodistro/main armhf nodejs armhf 20.10.0-1nodesource1 [28.1 MB]
Fetched 28.1 MB in 7s (4,298 kB/s)
Selecting previously unselected package nodejs.
(Reading database ... 106663 files and directories currently installed.)
Preparing to unpack .../nodejs_20.10.0-1nodesource1_armhf.deb ...
Unpacking nodejs (20.10.0-1nodesource1) ...
Setting up nodejs (20.10.0-1nodesource1) ...
Processing triggers for man-db (2.9.4-2) ...
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $ ls -l
total 36
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 20:48 Bookshelf
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Desktop
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Documents
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Downloads
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Music
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Pictures
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Public
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Templates
drwxr-xr-x 2 xxxxxxxx xxxxxxxx 4096 Dec  4 21:08 Videos
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $ git clone https://github.com/MichMich/MagicMirror
Cloning into 'MagicMirror'...
remote: Enumerating objects: 25974, done.
remote: Counting objects: 100% (332/332), done.
remote: Compressing objects: 100% (184/184), done.
remote: Total 25974 (delta 162), reused 276 (delta 128), pack-reused 25642
Receiving objects: 100% (25974/25974), 21.84 MiB | 3.61 MiB/s, done.
Resolving deltas: 100% (16046/16046), done.
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $
xxxxxxxx@raspberrypi:~ $ cd MagicMirror/
xxxxxxxx@raspberrypi:~/MagicMirror $
xxxxxxxx@raspberrypi:~/MagicMirror $
xxxxxxxx@raspberrypi:~/MagicMirror $ npm run install-mm

> magicmirror@2.25.0 install-mm
> npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev

npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.

> magicmirror@2.25.0 postinstall
> npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully!
> "


> magicmirror@2.25.0 install-vendor
> echo "Installing vendor files ...
> " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier

Installing vendor files ...


added 10 packages in 58s

> magicmirror@2.25.0 install-fonts
> echo "Installing fonts ...
> " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier

Installing fonts ...


added 2 packages in 5s
MagicMirror² installation finished successfully!


> magicmirror@2.25.0 prepare
> [ -f node_modules/.bin/husky ] && husky install || echo no husky installed.

no husky installed.

added 334 packages in 6m
npm notice
npm notice New patch version of npm available! 10.2.3 -> 10.2.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.5
npm notice Run npm install -g npm@10.2.5 to update!
npm notice
xxxxxxxx@raspberrypi:~/MagicMirror $
xxxxxxxx@raspberrypi:~/MagicMirror $
xxxxxxxx@raspberrypi:~/MagicMirror $ sudo npm install -g npm@10.2.5

removed 11 packages, and changed 44 packages in 20s

28 packages are looking for funding
  run `npm fund` for details
xxxxxxxx@raspberrypi:~/MagicMirror $
xxxxxxxx@raspberrypi:~/MagicMirror $
xxxxxxxx@raspberrypi:~/MagicMirror $
xxxxxxxx@raspberrypi:~/MagicMirror $ cp config/config.js.sample config/config.js
xxxxxxxx@raspberrypi:~/MagicMirror $
xxxxxxxx@raspberrypi:~/MagicMirror $ sudo dphys-swapfile swapoff

xxxxxxxx@raspberrypi:~/MagicMirror $
xxxxxxxx@raspberrypi:~/MagicMirror $ sudo nano /etc/dphys-swapfile
xxxxxxxx@raspberrypi:~/MagicMirror $ sudo dphys-swapfile setup
want /var/swap=1024MByte, checking existing: deleting wrong size file (104857600), generating swapfile ... of 1024MBytes
xxxxxxxx@raspberrypi:~/MagicMirror $
xxxxxxxx@raspberrypi:~/MagicMirror $
xxxxxxxx@raspberrypi:~/MagicMirror $ sudo dphys-swapfile swapon
xxxxxxxx@raspberrypi:~/MagicMirror $
xxxxxxxx@raspberrypi:~/MagicMirror $ npm run start

> magicmirror@2.25.0 start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[20.12.2023 10:38.28.775] [LOG]   Starting MagicMirror: v2.25.0
[20.12.2023 10:38.28.794] [LOG]   Loading config ...
[20.12.2023 10:38.28.803] [DEBUG] config template file not exists, no envsubst
[20.12.2023 10:38.28.826] [LOG]   Loading module helpers ...
[20.12.2023 10:38.28.832] [LOG]   No helper found for module: alert.
[20.12.2023 10:38.28.914] [LOG]   Initializing new module helper ...
[20.12.2023 10:38.28.916] [LOG]   Module helper loaded: updatenotification
[20.12.2023 10:38.28.924] [LOG]   No helper found for module: clock.
[20.12.2023 10:38.29.661] [LOG]   Initializing new module helper ...
[20.12.2023 10:38.29.664] [LOG]   Module helper loaded: calendar
[20.12.2023 10:38.29.669] [LOG]   No helper found for module: compliments.
[20.12.2023 10:38.29.673] [LOG]   No helper found for module: weather.
[20.12.2023 10:38.30.106] [LOG]   Initializing new module helper ...
[20.12.2023 10:38.30.107] [LOG]   Module helper loaded: newsfeed
[20.12.2023 10:38.30.108] [LOG]   All module helpers loaded.
[20.12.2023 10:38.30.132] [LOG]   Starting server on port 8080 ... 
[20.12.2023 10:38.33.155] [LOG]   Server started ...
[20.12.2023 10:38.33.158] [LOG]   Connecting socket for: updatenotification
[20.12.2023 10:38.33.160] [LOG]   Starting module helper: updatenotification
[20.12.2023 10:38.33.162] [LOG]   Connecting socket for: calendar
[20.12.2023 10:38.33.163] [LOG]   Starting node helper for: calendar
[20.12.2023 10:38.33.164] [LOG]   Connecting socket for: newsfeed
[20.12.2023 10:38.33.166] [LOG]   Starting node helper for: newsfeed
[20.12.2023 10:38.33.167] [LOG]   Sockets connected & modules started ...
[20.12.2023 10:38.33.488] [LOG]   Launching application.
[2832:1220/103835.520076:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
../../buildtools/third_party/libc++/trunk/include/vector:1473: assertion __n < size() failed: vector[] index out of bounds[2832:1220/103909.594196:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=6
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
[2901:1220/103920.340951:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[2901:1220/103921.092737:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[2901:1220/103921.108810:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[2901:1220/103921.123298:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[2901:1220/103921.139159:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[2901:1220/103921.155662:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[2901:1220/103921.171791:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[2901:1220/103921.186838:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[2901:1220/103921.202814:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[2901:1220/103921.218720:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[2901:1220/103921.234435:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[2901:1220/103921.248651:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[2901:1220/103921.277456:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[2901:1220/103921.288642:ERROR:shared_image_manager.cc(217)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
../../buildtools/third_party/libc++/trunk/include/vector:1473: assertion __n < size() failed: vector[] index out of bounds[2832:1220/103926.104153:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=6
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
[2876:1220/103933.639804:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
../../buildtools/third_party/libc++/trunk/include/vector:1473: assertion __n < size() failed: vector[] index out of bounds[2832:1220/103942.045012:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=6
[20.12.2023 10:40.52.148] [LOG]   Create new calendarfetcher for url: https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics - Interval: 3600000
[20.12.2023 10:40.55.368] [LOG]   Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[20.12.2023 10:40.55.898] [INFO]  Checking git for module: MagicMirror
[20.12.2023 10:41.13.460] [INFO]  Calendar-Fetcher: Broadcasting 13 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
[20.12.2023 10:41.18.983] [INFO]  Newsfeed-Fetcher: Broadcasting 25 items.
^C^C^C^C/home/xxxxxxxx/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT

xxxxxxxx@raspberrypi:~/MagicMirror $ ^C

Expected Results:

Create new calendarfetcher for url: https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics - Interval: **604800000**

Actual Results:

Create new calendarfetcher for url: https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics - Interval: **3600000**

Configuration:

/* MagicMirror² Config Sample
 *
 * By Michael Teeuw https://michaelteeuw.nl
 * MIT Licensed.
 *
 * For more information on how you can configure this file
 * see https://docs.magicmirror.builders/configuration/introduction.html
 * and https://docs.magicmirror.builders/modules/configuration.html
 *
 * You can use environment variables using a `config.js.template` file instead of `config.js`
 * which will be converted to `config.js` while starting. For more information
 * see https://docs.magicmirror.builders/configuration/introduction.html#enviromnent-variables
 */
let 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",
	locale: "en-US",
	logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
	timeFormat: 24,
	units: "metric",

	modules: [
		{
			module: "alert",
		},
		{
			module: "updatenotification",
			position: "top_bar"
		},
		{
			module: "clock",
			position: "top_left"
		},
		{
			module: "calendar",
			header: "US Holidays",
			position: "top_left",
			config: {
				calendars: [
					{
						fetchInterval: 7 * 24 * 60 * 60 * 1000,
						symbol: "calendar-check",
						url: "https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics"
					}
				]
			}
		},
		{
			module: "compliments",
			position: "lower_third"
		},
		{
			module: "weather",
			position: "top_right",
			config: {
				weatherProvider: "openweathermap",
				type: "current",
				location: "New York",
				locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
				apiKey: "YOUR_OPENWEATHER_API_KEY"
			}
		},
		{
			module: "weather",
			position: "top_right",
			header: "Weather Forecast",
			config: {
				weatherProvider: "openweathermap",
				type: "forecast",
				location: "New York",
				locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
				apiKey: "YOUR_OPENWEATHER_API_KEY"
			}
		},
		{
			module: "newsfeed",
			position: "bottom_bar",
			config: {
				feeds: [
					{
						title: "New York Times",
						url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
					}
				],
				showSourceTitle: true,
				showPublishDate: true,
				broadcastNewsFeeds: true,
				broadcastNewsUpdates: true
			}
		},
	]
};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
@khassel
Copy link
Collaborator

khassel commented Dec 21, 2023

@khassel khassel added the bug label Dec 21, 2023
MichMich added a commit that referenced this issue Jan 1, 2024
## [2.26.0] - 01-01-2024

Thanks to: @bnitkin, @bugsounet, @dependabot, @jkriegshauser,
@kaennchenstruggle, @KristjanESPERANTO and @Ybbet.

Special thanks to @khassel, @rejas and @sdetweil for taking over most
(if not all) of the work on this release as project collaborators. This
version would not be there without their effort. Thank you guys! You are
awesome!

This release also marks the latest release by Michael Teeuw. For more
info, please read the following post: [A New Chapter for MagicMirror:
The Community Takes the
Lead](https://forum.magicmirror.builders/topic/18329/a-new-chapter-for-magicmirror-the-community-takes-the-lead).

### Added

- Added update notification updater (for 3rd party modules)
- Added node 21 to the test matrix
- Added transform object to calendar:customEvents
- Added ESLint rules for jest (including jest/expect-expect and
jest/no-done-callback)

### Removed

- Removed Codecov workflow (not working anymore, other workflow
required) (#3107)
- Removed titleReplace from calendar, replaced + extended by
customEvents (backward compatibility included) (#3249)
- Removed failing unit test (#3254)
- Removed some unused variables

### Updated

- Update electron to v27 and update other dependencies as well as github
actions
- Update newsfeed: Use `html-to-text` instead of regex for transform
description
- Review ESLint config (#3269)
- Updated dependencies
- Clock module: optionally display current moon phase in addition to
rise/set times
- electron is now per default started without gpu, if needed it must be
enabled with new env var `ELECTRON_ENABLE_GPU=1` on startup (#3226)
- Replace prettier by stylistic in ESLint config to lint JavaScript (and
disable some rules for `config/config.js*` files)
- Update node-ical to v0.17.1 and fix tests

### Fixed

- Avoid fade out/in on updateDom when many calendars are used
- Fix the option eventClass on customEvents.
- Fix yr API version in locationforecast and sunrise call (#3227)
- Fix cloneObject() function to respect RegExp (#3237)
- Fix newsfeed module for feeds using "a10:updated" tag (#3238)
- Fix issue template (#3167)
- Fix #3256 filter out bad results from rrule.between
- Fix calendar events sometimes not respecting deleted events (#3250)
- Fix electron loadurl locally on Windows when address "0.0.0.0" (#2550)
- Fix updatanotification (update_helper.js): catch error if reponse is
not an JSON format (check PM2)
- Fix missing typeof in calendar module
- Fix style issues after prettier update
- Fix calendar test (#3291) by moving "Exdate check" from e2e to
electron to run on a Thursday
- Fix calendar config params `fetchInterval` and `excludedEvents` were
never used from single calendar config (#3297)
- Fix MM_PORT variable not used in electron and allow full path for
MM_CONFIG_FILE variable (#3302)

---------

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Karsten Hassel <hassel@gmx.de>
Co-authored-by: Malte Hallström <46646495+SkySails@users.noreply.github.com>
Co-authored-by: Veeck <github@veeck.de>
Co-authored-by: veeck <michael@veeck.de>
Co-authored-by: dWoolridge <dwoolridge@charter.net>
Co-authored-by: Johan <jojjepersson@yahoo.se>
Co-authored-by: Dario Mratovich <dario_mratovich@hotmail.com>
Co-authored-by: Dario Mratovich <dario.mratovich@outlook.com>
Co-authored-by: Magnus <34011212+MagMar94@users.noreply.github.com>
Co-authored-by: Naveen <172697+naveensrinivasan@users.noreply.github.com>
Co-authored-by: buxxi <buxxi@omfilm.net>
Co-authored-by: Thomas Hirschberger <47733292+Tom-Hirschberger@users.noreply.github.com>
Co-authored-by: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com>
Co-authored-by: Andrés Vanegas Jiménez <142350+angeldeejay@users.noreply.github.com>
Co-authored-by: Dave Child <dave@addedbytes.com>
Co-authored-by: grenagit <46225780+grenagit@users.noreply.github.com>
Co-authored-by: Grena <grena@grenabox.fr>
Co-authored-by: Magnus Marthinsen <magmar@online.no>
Co-authored-by: Patrick <psieg@users.noreply.github.com>
Co-authored-by: Piotr Rajnisz <56397164+rajniszp@users.noreply.github.com>
Co-authored-by: Suthep Yonphimai <tomzt@users.noreply.github.com>
Co-authored-by: CarJem Generations (Carter Wallace) <cwallacecs@gmail.com>
Co-authored-by: Nicholas Fogal <nfogal.misc@gmail.com>
Co-authored-by: JakeBinney <126349119+JakeBinney@users.noreply.github.com>
Co-authored-by: OWL4C <124401812+OWL4C@users.noreply.github.com>
Co-authored-by: Oscar Björkman <17575446+oscarb@users.noreply.github.com>
Co-authored-by: Ismar Slomic <ismar@slomic.no>
Co-authored-by: Jørgen Veum-Wahlberg <jorgen.wahlberg@amedia.no>
Co-authored-by: Eddie Hung <6740044+eddiehung@users.noreply.github.com>
Co-authored-by: Bugsounet - Cédric <github@bugsounet.fr>
Co-authored-by: bugsounet <bugsounet@bugsounet.fr>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Knapoc <Knapoc@users.noreply.github.com>
Co-authored-by: sam detweiler <sdetweil@gmail.com>
Co-authored-by: veeck <michael.veeck@nebenan.de>
Co-authored-by: Paranoid93 <6515818+Paranoid93@users.noreply.github.com>
Co-authored-by: NolanKingdon <27908974+NolanKingdon@users.noreply.github.com>
Co-authored-by: J. Kenzal Hunter <kenzal.hunter@gmail.com>
Co-authored-by: Teddy <teddy.payet@gmail.com>
Co-authored-by: TeddyStarinvest <teddy.payet@starinvest.com>
Co-authored-by: martingron <61826403+martingron@users.noreply.github.com>
Co-authored-by: dgoth <132394363+dgoth@users.noreply.github.com>
Co-authored-by: kaennchenstruggle <54073894+kaennchenstruggle@users.noreply.github.com>
Co-authored-by: jkriegshauser <jkriegshauser@gmail.com>
Co-authored-by: Ben Nitkin <ben@nitkin.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants