Read the statement by Michael Teeuw here.
MMM-SynologySurveillance
-
@digied Hi,
the gray square with camera symbol indicates that the module was not able to fetch the url from the nas.
Make sure that the user you are using has permission to access for the Survalliance Station application.
Does the log show any output? -
@wishmaster270 This is my config:
{ module: "MMM-SynologySurveillance", position: "top_left", config: { showOneBig: true, addBigToNormal: false, showCamName: false, showBigCamName: false, showUnreachableCams: true, showPositions: true, showBigPositions: true, vertical: true, ds: [ { protocol: "https", host: "192.168.2.26", port: "5000", user: "ewalstra", password: "*********", replaceHostPart: true, cams: [ { alias: "Voordeur", name: "Generic_ONVIF-001", } ] }, ], }, },
I can’t see where to put in the URL?
-
@wishmaster270 It does:
[02.01.2023 12:01.50.428] [ERROR] Whoops! There was an uncaught exception…
[02.01.2023 12:01.50.430] [ERROR] TypeError: Cannot read properties of undefined (reading ‘listCameras’)
at Class.getStreamUrls (/home/pi/MagicMirror/modules/MMM-SynologySurveillance/node_helper.js:76:17)
at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-SynologySurveillance/node_helper.js:384:12)
at Socket. (/home/pi/MagicMirror/js/node_helper.js:108:11)
at Socket.emit (node:events:513:28)
at Socket.emitUntyped (/home/pi/MagicMirror/node_modules/socket.io/dist/typed-events.js:69:22)
at /home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:614:39
at process.processTicksAndRejections (node:internal/process/task_queues:78:11) -
@digied Hi,
that’s definitely a error that should not happen. I will check this tomorrow.You can not add the url directly. It will be fetched from the NAS.
But I am pretty sure that either your port or protocol setting is wrong. The default protocol is
http
with port5000
. If you access the NAS with protocolhttps
it is port5001
usually.Can you please try the following config:
{ module: "MMM-SynologySurveillance", position: "top_left", config: { showOneBig: true, addBigToNormal: false, showCamName: false, showBigCamName: false, showUnreachableCams: true, showPositions: true, showBigPositions: true, vertical: true, ds: [ { protocol: "http", host: "192.168.2.26", port: "5000", user: "ewalstra", password: "*********", replaceHostPart: true, cams: [ { alias: "Voordeur", name: "Generic_ONVIF-001", } ] }, ], }, },
Edit: I released a new version of the module is was working on the last weeks which improves the error handling. Please use the new version to avoid already fixed problems. I also added more examples to the README to make things about the protocols and ports clearer.
-
@wishmaster270 I’m sorry, still no luck. These are the logs:
pi@raspberrypi:~/.pm2/logs $ tail mm-error.log [08.01.2023 11:34.06.023] [ERROR] TypeError: Cannot read properties of undefined (reading 'listCameras') at Class.getStreamUrls (/home/pi/MagicMirror/modules/MMM-SynologySurveillance/node_helper.js:72:19) at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-SynologySurveillance/node_helper.js:327:12) at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:108:11) at Socket.emit (node:events:513:28) at Socket.emitUntyped (/home/pi/MagicMirror/node_modules/socket.io/dist/typed-events.js:69:22) at /home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:614:39 at process.processTicksAndRejections (node:internal/process/task_queues:78:11) [08.01.2023 11:34.06.024] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [08.01.2023 11:34.06.024] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues pi@raspberrypi:~/.pm2/logs $ tail mm-out.log [08.01.2023 11:31.06.012] [LOG] MMM-SynologySurveillance: Updating information of DS with idx: 0 and protocol http [08.01.2023 11:32.06.009] [LOG] MMM-SynologySurveillance: Received notification REFRESH_URLS [08.01.2023 11:32.06.010] [LOG] MMM-SynologySurveillance: Refreshing the urls! [08.01.2023 11:32.06.011] [LOG] MMM-SynologySurveillance: Updating information of DS with idx: 0 and protocol http [08.01.2023 11:33.06.011] [LOG] MMM-SynologySurveillance: Received notification REFRESH_URLS [08.01.2023 11:33.06.013] [LOG] MMM-SynologySurveillance: Refreshing the urls! [08.01.2023 11:33.06.013] [LOG] MMM-SynologySurveillance: Updating information of DS with idx: 0 and protocol http [08.01.2023 11:34.06.013] [LOG] MMM-SynologySurveillance: Received notification REFRESH_URLS [08.01.2023 11:34.06.016] [LOG] MMM-SynologySurveillance: Refreshing the urls! [08.01.2023 11:34.06.017] [LOG] MMM-SynologySurveillance: Updating information of DS with idx: 0 and protocol http
And this is the config:
{ module: "MMM-SynologySurveillance", position: "top_left", config: { showOneBig: true, addBigToNormal: false, showCamName: false, showBigCamName: false, showUnreachableCams: true, showPositions: true, showBigPositions: true, vertical: true, ds: [ { protocol: "http", host: "192.168.2.26", port: "5000", user: "ewalstra", password: "********", replaceHostPart: true, cams: [ { alias: "Voordeur", name: "Generic_ONVIF-001", } ] }, ], }, },
-
@digied
I tried to reproduce the error you are get with your config but it does not appear in all these cases:- forgot to install
npm install
- user does not exist
- user does exist but does not have the permissions
- host is wrong and does not exist
- host is a different host which does exist
What version of the module are you using? You can find the version in the package.json file.
What version of MagicMirror are you using?
How did you install the module?
What version of Synology DSM are you using?
What version of Synology Surveillance are you using?
Are there any errors in the Logs before this errors which may are related? - forgot to install
-
What version of the module are you using? You can find the version in the package.json file.
It is:
“name”: “MMM-SynologySurveillance”,
“version”: “0.1.1”,
“description”: “”,
“main”: “MMM-SynologySurveillance.js”,
“dependencies”: {
“syno”: “^1.0.0”What version of MagicMirror are you using?
“name”: “magicmirror”,
“version”: “2.22.0”,How did you install the module?
Just following instructions:
cd ~/MagicMirror/modules
git clone https://github.com/Tom-Hirschberger/MMM-SynologySurveillance.git
cd MMM-SynologySurveillance
npm install. this one I had to do using sudo npm installWhat version of Synology DSM are you using?
7.1.1-42962 update 2
It is a DS218What version of Synology Surveillance are you using?
9.0.2-10061This is the log for npm start run:
pi@raspberrypi:~/MagicMirror/config $ npm start runmagicmirror@2.22.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js run[15.01.2023 10:41.20.823] [LOG] Starting MagicMirror: v2.22.0
[15.01.2023 10:41.20.831] [LOG] Loading config …
[15.01.2023 10:41.20.838] [LOG] Loading module helpers …
[15.01.2023 10:41.20.840] [LOG] No helper found for module: alert.
[15.01.2023 10:41.20.859] [LOG] Initializing new module helper …
[15.01.2023 10:41.20.860] [LOG] Module helper loaded: updatenotification
[15.01.2023 10:41.20.862] [LOG] No helper found for module: clock.
[15.01.2023 10:41.20.863] [LOG] No helper found for module: MMM-connection-status.
[15.01.2023 10:41.21.281] [LOG] Initializing new module helper …
[15.01.2023 10:41.21.283] [LOG] Module helper loaded: MMM-SynologySurveillance
[15.01.2023 10:41.21.535] [LOG] Initializing new module helper …
[15.01.2023 10:41.21.537] [LOG] Module helper loaded: calendar
[15.01.2023 10:41.21.618] [LOG] Initializing new module helper …
[15.01.2023 10:41.21.620] [LOG] Module helper loaded: MMM-Formula1
[15.01.2023 10:41.21.622] [LOG] No helper found for module: weather.
[15.01.2023 10:41.21.623] [LOG] No helper found for module: MMM-Buienradar.
[15.01.2023 10:41.21.948] [LOG] Initializing new module helper …
[15.01.2023 10:41.21.949] [LOG] Module helper loaded: MMM-SolarEdgeLite
[15.01.2023 10:41.22.301] [LOG] Initializing new module helper …
[15.01.2023 10:41.22.302] [LOG] Module helper loaded: MMM-SystemStats
[15.01.2023 10:41.22.326] [LOG] Initializing new module helper …
[15.01.2023 10:41.22.326] [LOG] Module helper loaded: newsfeed
[15.01.2023 10:41.22.327] [LOG] All module helpers loaded.
[15.01.2023 10:41.22.435] [LOG] Starting server on port 8080 …
[15.01.2023 10:41.22.677] [LOG] Server started …
[15.01.2023 10:41.22.679] [LOG] Connecting socket for: updatenotification
[15.01.2023 10:41.22.679] [LOG] Starting module helper: updatenotification
[15.01.2023 10:41.22.680] [LOG] Connecting socket for: MMM-SynologySurveillance
[15.01.2023 10:41.22.682] [LOG] Connecting socket for: calendar
[15.01.2023 10:41.22.683] [LOG] Starting node helper for: calendar
[15.01.2023 10:41.22.684] [LOG] Connecting socket for: MMM-Formula1
[15.01.2023 10:41.22.685] [LOG] Starting module: MMM-Formula1
[15.01.2023 10:41.22.685] [LOG] Connecting socket for: MMM-SolarEdgeLite
[15.01.2023 10:41.22.686] [LOG] Starting module helper: MMM-SolarEdgeLite
[15.01.2023 10:41.22.686] [LOG] Connecting socket for: MMM-SystemStats
[15.01.2023 10:41.22.687] [LOG] Connecting socket for: newsfeed
[15.01.2023 10:41.22.688] [LOG] Starting node helper for: newsfeed
[15.01.2023 10:41.22.689] [LOG] Sockets connected & modules started …
[15.01.2023 10:41.22.714] [LOG] Launching application.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
[15.01.2023 10:41.26.401] [LOG] MMM-SynologySurveillance: Received notification CONFIG
[15.01.2023 10:41.26.402] [LOG] MMM-SynologySurveillance: Received notification INIT_DS
[15.01.2023 10:41.26.405] [LOG] MMM-SynologySurveillance: Updating information of DS with idx: 0 and protocol https
[15.01.2023 10:41.26.410] [ERROR] Whoops! There was an uncaught exception…
[15.01.2023 10:41.26.418] [ERROR] TypeError: Cannot read properties of undefined (reading ‘listCameras’)
at Class.getStreamUrls (/home/pi/MagicMirror/modules/MMM-SynologySurveillance/node_helper.js:72:19)
at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-SynologySurveillance/node_helper.js:324:12)
at Socket. (/home/pi/MagicMirror/js/node_helper.js:108:11)
at Socket.emit (node:events:513:28)
at Socket.emitUntyped (/home/pi/MagicMirror/node_modules/socket.io/dist/typed-events.js:69:22)
at /home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:614:39
at process.processTicksAndRejections (node:internal/process/task_queues:78:11)
[15.01.2023 10:41.26.420] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[15.01.2023 10:41.26.421] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[15.01.2023 10:41.26.476] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/nl.dutch%23holiday%40group.v.calendar.google.com/public/basic.ics - Interval: 300000
[15.01.2023 10:41.26.544] [LOG] Create new calendarfetcher for url: http://p103-caldav.icloud.com/published/2/Njc3ODUzOTEzNjc3ODUzOQyRiARRL2CkxgtBVQDZXfBmcEh4jRSjf1NpTv-kmUkeab9A4t6LtTrrc3BUTsPoy9oS4yCg4f5Rnt5FlMRu6Oo - Interval: 300000
[15.01.2023 10:41.26.574] [LOG] Create new calendarfetcher for url: http://p62-caldav.icloud.com/published/2/MzE2ODIwNDE4MzE2ODIwNJD9RGBryCg63_2az9y7tWOTHmUDf_W0Y3YkBa1tdgnP7AW7ihN1TLzhWzBnHSok2S9kxwdK6IkOT1I55L8cvuE - Interval: 300000
[15.01.2023 10:41.26.579] [LOG] Create new calendarfetcher for url: http://racingnews365.nl/ics/download/calendar-formula-2022.ics?all - Interval: 300000
[15.01.2023 10:41.26.583] [LOG] Create new calendarfetcher for url: https://wasteapi.ximmio.com/api/CallIcal?cn=Gemeente Almere&x=53d8db94-7945-42fd-9742-9bbc71dbe4c1&ty=null&ua=65222&sd=2021-12-21&ed=2025-01-09&path=https://wasteapi.ximmio.com&ln=nl&nt=1130 - Interval: 300000
[15.01.2023 10:41.26.743] [LOG] Create new newsfetcher for url: http://feeds.nos.nl/nosnieuws - Interval: 300000
[15.01.2023 10:41.26.748] [LOG] Create new newsfetcher for url: https://nl.motorsport.com/rss/f1/news/ - Interval: 300000
[15.01.2023 10:41.26.752] [LOG] MMM-Formula1 received a notification: CONFIG
[15.01.2023 10:41.26.772] [LOG] MMM-Formula1 is fetching the race schedule for the current season
[15.01.2023 10:41.26.797] [LOG] MMM-Formula1 is fetching DRIVER standings for the current season
[15.01.2023 10:41.26.802] [INFO] Checking git for module: MMM-connection-status
[15.01.2023 10:41.26.855] [INFO] Checking git for module: MMM-SynologySurveillance
[15.01.2023 10:41.26.918] [INFO] Checking git for module: MMM-Formula1
[15.01.2023 10:41.27.030] [INFO] Checking git for module: MMM-Buienradar
[15.01.2023 10:41.27.139] [LOG] MMM-Formula1 is returning DRIVER standings for the current season
[15.01.2023 10:41.27.154] [INFO] Checking git for module: MMM-SolarEdgeLite
[15.01.2023 10:41.27.215] [INFO] Newsfeed-Fetcher: reloadInterval set to ttl=6000000 for url https://nl.motorsport.com/rss/f1/news/
[15.01.2023 10:41.27.289] [INFO] Checking git for module: MMM-SystemStats
[15.01.2023 10:41.27.556] [INFO] Checking git for module: default
[15.01.2023 10:41.28.370] [INFO] Calendar-Fetcher: Broadcasting 0 events.
[15.01.2023 10:41.28.463] [INFO] Newsfeed-Fetcher: Broadcasting 50 items.
[15.01.2023 10:41.28.820] [INFO] Calendar-Fetcher: Broadcasting 26 events.
[15.01.2023 10:41.28.947] [INFO] Newsfeed-Fetcher: Broadcasting 20 items.
[15.01.2023 10:41.29.181] [INFO] Calendar-Fetcher: Broadcasting 32 events.
[15.01.2023 10:41.29.350] [INFO] Calendar-Fetcher: Broadcasting 18 events.
[15.01.2023 10:41.30.356] [ERROR] Moment Timezone has no data for GMT+0200. See http://momentjs.com/timezone/docs/#/data-loading/.
[15.01.2023 10:41.30.359] [ERROR] Moment Timezone has no data for GMT+0200. See http://momentjs.com/timezone/docs/#/data-loading/.
[15.01.2023 10:41.30.362] [ERROR] Moment Timezone has no data for GMT+0200. See http://momentjs.com/timezone/docs/#/data-loading/.
[15.01.2023 10:41.30.390] [INFO] Calendar-Fetcher: Broadcasting 10 events.
[512768:0115/104146.877630:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[512768:0115/104205.526070:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[512768:0115/104223.429194:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
[15.01.2023 10:42.25.641] [LOG] MMM-SynologySurveillance: Received notification REFRESH_URLS
[15.01.2023 10:42.25.642] [LOG] MMM-SynologySurveillance: Refreshing the urls!
[15.01.2023 10:42.25.642] [LOG] MMM-SynologySurveillance: Updating information of DS with idx: 0 and protocol https
[15.01.2023 10:42.25.644] [ERROR] Whoops! There was an uncaught exception…
[15.01.2023 10:42.25.645] [ERROR] TypeError: Cannot read properties of undefined (reading ‘listCameras’)
at Class.getStreamUrls (/home/pi/MagicMirror/modules/MMM-SynologySurveillance/node_helper.js:72:19)
at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-SynologySurveillance/node_helper.js:327:12)
at Socket. (/home/pi/MagicMirror/js/node_helper.js:108:11)
at Socket.emit (node:events:513:28)
at Socket.emitUntyped (/home/pi/MagicMirror/node_modules/socket.io/dist/typed-events.js:69:22)
at /home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:614:39
at process.processTicksAndRejections (node:internal/process/task_queues:78:11)
[15.01.2023 10:42.25.645] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[15.01.2023 10:42.25.646] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[15.01.2023 10:43.25.645] [LOG] MMM-SynologySurveillance: Received notification REFRESH_URLS
[15.01.2023 10:43.25.646] [LOG] MMM-SynologySurveillance: Refreshing the urls!
[15.01.2023 10:43.25.646] [LOG] MMM-SynologySurveillance: Updating information of DS with idx: 0 and protocol https
[15.01.2023 10:43.25.650] [ERROR] Whoops! There was an uncaught exception…
[15.01.2023 10:43.25.652] [ERROR] TypeError: Cannot read properties of undefined (reading ‘listCameras’)
at Class.getStreamUrls (/home/pi/MagicMirror/modules/MMM-SynologySurveillance/node_helper.js:72:19)
at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-SynologySurveillance/node_helper.js:327:12)
at Socket. (/home/pi/MagicMirror/js/node_helper.js:108:11)
at Socket.emit (node:events:513:28)
at Socket.emitUntyped (/home/pi/MagicMirror/node_modules/socket.io/dist/typed-events.js:69:22)
at /home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:614:39
at process.processTicksAndRejections (node:internal/process/task_queues:78:11)
[15.01.2023 10:43.25.653] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[15.01.2023 10:43.25.653] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[ -
@digied
There two things i do not understand…- Did you modify your package.json? The original one of the module contains “syno”: “latest” as a dependency. Which will install version 2.2.0 currently. But the part of your package.json contains “syno”: “^1.0.0” which will install the latest 1.x version. I did not use any 1.X version in my module and do not know if the surveillance part did already exist in this old version. Please use the original version of the package.json. No need to make any changes to it.
- Why did you need to use
sudo
fornpm install
? Only files in the module folder get modified bynpm install
of this module. There is no need to usesudo
in a regular installation. Installing things withsudo
may break things and it is not sure that the version ofnpm
of the current user is used. Please do not usesudo
fornpm install
. And never install withnpm -g
global option.
-
@wishmaster270 Hi! Strange thing about the version. So I just did this again:
pi@raspberrypi:~/MagicMirror/modules $ cat MMM-SynologySurveillance/package.json
{
“name”: “MMM-SynologySurveillance”,
“version”: “0.1.1”,
“description”: “”,
“main”: “MMM-SynologySurveillance.js”,
“dependencies”: {
“syno”: “^1.0.0”
},
“scripts”: {
“test”: “echo “Error: no test specified” && exit 1”
},
“repository”: {
“type”: “git”,
“url”: “git@github.com:Tom-Hirschberger/MMM-SynologySurveillance.git”
},
“author”: “Thomas Hirschberger”,
“license”: “MIT”,
“bugs”: {
“url”: “https://github.com/Tom-Hirschberger/MMM-SynologySurveillance/issues”
},
“homepage”: “https://github.com/Tom-Hirschberger/MMM-SynologySurveillance/#readme”
}
pi@raspberrypi:~/MagicMirror/modules $ sudo rm -r MMM-SynologySurveillance/
pi@raspberrypi:~/MagicMirror/modules $ ls
default MMM-connection-status MMM-Formula1 MMM-MercedesMe MMM-RTSPStream MMM-SolarEdgeLite MMM-SystemStats
MMM-Buienradar MMM-F1 MMM-IPCam MMM-OpenWeatherForecast MMM-SolarEdge MMM-SpeedTest MMM-Worldclock
pi@raspberrypi:~/MagicMirror/modules $ git clone https://github.com/Tom-Hirschberger/MMM-SynologySurveillance.git
Cloning into ‘MMM-SynologySurveillance’…
remote: Enumerating objects: 298, done.
remote: Counting objects: 100% (103/103), done.
remote: Compressing objects: 100% (84/84), done.
remote: Total 298 (delta 38), reused 42 (delta 19), pack-reused 195
Receiving objects: 100% (298/298), 1.27 MiB | 15.34 MiB/s, done.
Resolving deltas: 100% (184/184), done.
pi@raspberrypi:~/MagicMirror/modules $ ls
default MMM-connection-status MMM-Formula1 MMM-MercedesMe MMM-RTSPStream MMM-SolarEdgeLite MMM-SynologySurveillance MMM-Worldclock
MMM-Buienradar MMM-F1 MMM-IPCam MMM-OpenWeatherForecast MMM-SolarEdge MMM-SpeedTest MMM-SystemStats
pi@raspberrypi:~/MagicMirror/modules $ cat MMM-SynologySurveillance/package.json
{
“name”: “MMM-SynologySurveillance”,
“version”: “0.1.1”,
“description”: “”,
“main”: “MMM-SynologySurveillance.js”,
“dependencies”: {
“syno”: “latest”
},
“devDependencies”: {},
“scripts”: {
“test”: “echo “Error: no test specified” && exit 1”
},
“repository”: {
“type”: “git”,
“url”: “git@github.com:Tom-Hirschberger/MMM-SynologySurveillance.git”
},
“author”: “Thomas Hirschberger”,
“license”: “MIT”,
“bugs”: {
“url”: “https://github.com/Tom-Hirschberger/MMM-SynologySurveillance/issues”
},
“homepage”: “https://github.com/Tom-Hirschberger/MMM-SynologySurveillance/#readme”
}
pi@raspberrypi:~/MagicMirror/modules $So now I see also the sync: latest.
Thus I did the npm install again, but it seems I don’t have enough access for it:
pi@raspberrypi:~/MagicMirror/modules $ cd MMM-SynologySurveillance/
pi@raspberrypi:~/MagicMirror/modules/MMM-SynologySurveillance $ cat package.json
{
“name”: “MMM-SynologySurveillance”,
“version”: “0.1.1”,
“description”: “”,
“main”: “MMM-SynologySurveillance.js”,
“dependencies”: {
“syno”: “latest”
},
“devDependencies”: {},
“scripts”: {
“test”: “echo “Error: no test specified” && exit 1”
},
“repository”: {
“type”: “git”,
“url”: “git@github.com:Tom-Hirschberger/MMM-SynologySurveillance.git”
},
“author”: “Thomas Hirschberger”,
“license”: “MIT”,
“bugs”: {
“url”: “https://github.com/Tom-Hirschberger/MMM-SynologySurveillance/issues”
},
“homepage”: “https://github.com/Tom-Hirschberger/MMM-SynologySurveillance/#readme”
}
pi@raspberrypi:~/MagicMirror/modules/MMM-SynologySurveillance $Still good, so now I run the npm install:
pi@raspberrypi:~/MagicMirror/modules/MMM-SynologySurveillance $ npm install
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142added 76 packages, and audited 77 packages in 7s
2 packages are looking for funding
runnpm fund
for details2 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --forceRun
npm audit
for details.
pi@raspberrypi:~/MagicMirror/modules/MMM-SynologySurveillance $Ok, this time no errors… Let me start MM:
pi@raspberrypi:~/MagicMirror $ npm start run
magicmirror@2.22.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js run[16.01.2023 16:49.50.904] [LOG] Starting MagicMirror: v2.22.0
[16.01.2023 16:49.50.911] [LOG] Loading config …
[16.01.2023 16:49.50.922] [LOG] Loading module helpers …
[16.01.2023 16:49.50.925] [LOG] No helper found for module: alert.
[16.01.2023 16:49.50.943] [LOG] Initializing new module helper …
[16.01.2023 16:49.50.944] [LOG] Module helper loaded: updatenotification
[16.01.2023 16:49.50.946] [LOG] No helper found for module: clock.
[16.01.2023 16:49.50.947] [LOG] No helper found for module: MMM-connection-status.
[16.01.2023 16:49.51.366] [LOG] Initializing new module helper …
[16.01.2023 16:49.51.368] [LOG] Module helper loaded: MMM-SynologySurveillance
[16.01.2023 16:49.51.618] [LOG] Initializing new module helper …
[16.01.2023 16:49.51.620] [LOG] Module helper loaded: calendar
[16.01.2023 16:49.51.691] [LOG] Initializing new module helper …
[16.01.2023 16:49.51.693] [LOG] Module helper loaded: MMM-Formula1
[16.01.2023 16:49.51.694] [LOG] No helper found for module: weather.
[16.01.2023 16:49.51.695] [LOG] No helper found for module: MMM-Buienradar.
[16.01.2023 16:49.52.016] [LOG] Initializing new module helper …
[16.01.2023 16:49.52.016] [LOG] Module helper loaded: MMM-SolarEdgeLite
[16.01.2023 16:49.52.362] [LOG] Initializing new module helper …
[16.01.2023 16:49.52.363] [LOG] Module helper loaded: MMM-SystemStats
[16.01.2023 16:49.52.387] [LOG] Initializing new module helper …
[16.01.2023 16:49.52.387] [LOG] Module helper loaded: newsfeed
[16.01.2023 16:49.52.388] [LOG] All module helpers loaded.
[16.01.2023 16:49.52.495] [LOG] Starting server on port 8080 …
[16.01.2023 16:49.52.734] [LOG] Server started …
[16.01.2023 16:49.52.736] [LOG] Connecting socket for: updatenotification
[16.01.2023 16:49.52.737] [LOG] Starting module helper: updatenotification
[16.01.2023 16:49.52.738] [LOG] Connecting socket for: MMM-SynologySurveillance
[16.01.2023 16:49.52.739] [LOG] Connecting socket for: calendar
[16.01.2023 16:49.52.740] [LOG] Starting node helper for: calendar
[16.01.2023 16:49.52.740] [LOG] Connecting socket for: MMM-Formula1
[16.01.2023 16:49.52.741] [LOG] Starting module: MMM-Formula1
[16.01.2023 16:49.52.742] [LOG] Connecting socket for: MMM-SolarEdgeLite
[16.01.2023 16:49.52.742] [LOG] Starting module helper: MMM-SolarEdgeLite
[16.01.2023 16:49.52.744] [LOG] Connecting socket for: MMM-SystemStats
[16.01.2023 16:49.52.744] [LOG] Connecting socket for: newsfeed
[16.01.2023 16:49.52.745] [LOG] Starting node helper for: newsfeed
[16.01.2023 16:49.52.746] [LOG] Sockets connected & modules started …
[16.01.2023 16:49.52.819] [LOG] Launching application.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
[16.01.2023 16:49.56.198] [LOG] MMM-SynologySurveillance: Received notification CONFIG
[16.01.2023 16:49.56.200] [LOG] MMM-SynologySurveillance: Received notification INIT_DS
[16.01.2023 16:49.56.202] [LOG] MMM-SynologySurveillance: Updating information of DS with idx: 0 and protocol https
[50739:0116/164958.846579:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[16.01.2023 16:49.59.003] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/nl.dutch%23holiday%40group.v.calendar.google.com/public/basic.ics - Interval: 300000
[16.01.2023 16:49.59.045] [LOG] Create new calendarfetcher for url: http://p103-caldav.icloud.com/published/2/Njc3ODUzOTEzNjc3ODUzOQyRiARRL2CkxgtBVQDZXfBmcEh4jRSjf1NpTv-kmUkeab9A4t6LtTrrc3BUTsPoy9oS4yCg4f5Rnt5FlMRu6Oo - Interval: 300000
[16.01.2023 16:49.59.056] [LOG] Create new calendarfetcher for url: http://p62-caldav.icloud.com/published/2/MzE2ODIwNDE4MzE2ODIwNJD9RGBryCg63_2az9y7tWOTHmUDf_W0Y3YkBa1tdgnP7AW7ihN1TLzhWzBnHSok2S9kxwdK6IkOT1I55L8cvuE - Interval: 300000
[16.01.2023 16:49.59.065] [LOG] Create new calendarfetcher for url: http://racingnews365.nl/ics/download/calendar-formula-2022.ics?all - Interval: 300000
[16.01.2023 16:49.59.070] [LOG] Create new calendarfetcher for url: https://wasteapi.ximmio.com/api/CallIcal?cn=Gemeente Almere&x=53d8db94-7945-42fd-9742-9bbc71dbe4c1&ty=null&ua=65222&sd=2021-12-21&ed=2025-01-09&path=https://wasteapi.ximmio.com&ln=nl&nt=1130 - Interval: 300000
[16.01.2023 16:49.59.285] [LOG] Create new newsfetcher for url: http://feeds.nos.nl/nosnieuws - Interval: 300000
[16.01.2023 16:49.59.291] [LOG] Create new newsfetcher for url: https://nl.motorsport.com/rss/f1/news/ - Interval: 300000
[16.01.2023 16:49.59.294] [LOG] MMM-Formula1 received a notification: CONFIG
[16.01.2023 16:49.59.315] [LOG] MMM-Formula1 is fetching the race schedule for the current season
[16.01.2023 16:49.59.342] [LOG] MMM-Formula1 is fetching DRIVER standings for the current season
[16.01.2023 16:49.59.347] [INFO] Checking git for module: MMM-connection-status
[16.01.2023 16:49.59.390] [INFO] Checking git for module: MMM-SynologySurveillance
[16.01.2023 16:49.59.467] [INFO] Checking git for module: MMM-Formula1
[16.01.2023 16:49.59.554] [INFO] Checking git for module: MMM-Buienradar
[16.01.2023 16:49.59.594] [INFO] Newsfeed-Fetcher: reloadInterval set to ttl=6000000 for url https://nl.motorsport.com/rss/f1/news/
[16.01.2023 16:49.59.698] [LOG] MMM-Formula1 is returning DRIVER standings for the current season
[16.01.2023 16:49.59.704] [INFO] Checking git for module: MMM-SolarEdgeLite
[16.01.2023 16:49.59.781] [INFO] Checking git for module: MMM-SystemStats
[16.01.2023 16:49.59.923] [INFO] Checking git for module: default
[16.01.2023 16:49.59.982] [INFO] Newsfeed-Fetcher: Broadcasting 50 items.
[16.01.2023 16:50.00.666] [INFO] Calendar-Fetcher: Broadcasting 0 events.
[16.01.2023 16:50.00.713] [LOG] MMM-SynologySurveillance: Found cam Generic_ONVIF-001
[16.01.2023 16:50.01.085] [INFO] Calendar-Fetcher: Broadcasting 26 events.
[16.01.2023 16:50.01.252] [INFO] Calendar-Fetcher: Broadcasting 31 events.
[16.01.2023 16:50.01.389] [INFO] Newsfeed-Fetcher: Broadcasting 20 items.
[16.01.2023 16:50.01.750] [INFO] Calendar-Fetcher: Broadcasting 18 events.
[16.01.2023 16:50.02.554] [ERROR] Moment Timezone has no data for GMT+0200. See http://momentjs.com/timezone/docs/#/data-loading/.
[16.01.2023 16:50.02.555] [ERROR] Moment Timezone has no data for GMT+0200. See http://momentjs.com/timezone/docs/#/data-loading/.
[16.01.2023 16:50.02.556] [ERROR] Moment Timezone has no data for GMT+0200. See http://momentjs.com/timezone/docs/#/data-loading/.
[16.01.2023 16:50.02.569] [INFO] Calendar-Fetcher: Broadcasting 10 events.
[16.01.2023 16:50.02.884] [LOG] MMM-SynologySurveillance: {
“dsIdx”: 0,
“camStreams”: {
“Generic_ONVIF-001”: “https://datanas//192.168.2.26:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Stream.VideoStreaming&version=1&method=Stream&format=mjpeg&cameraId=2&StmKey=“c0a94e2b77e2887405161edf7a32964b””
}
}
[50702:0116/165002.966141:ERROR:cert_verify_proc_builtin.cc(670)] CertVerifyProcBuiltin for datanas failed:
----- Certificate i=0 (CN=synology,O=Synology Inc.,L=Taipel,C=TW) -----
ERROR: No matching issuer found[50739:0116/165036.029773:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[And this is what the MM is showing:
Before I got the little cam showing, now it is this square. Any thoughts?
-
@wishmaster270 btw, the cam itself is found:
[16.01.2023 16:55.55.543] [LOG] MMM-SynologySurveillance: Received notification REFRESH_URLS
[16.01.2023 16:55.55.544] [LOG] MMM-SynologySurveillance: Refreshing the urls!
[16.01.2023 16:55.55.545] [LOG] MMM-SynologySurveillance: Updating information of DS with idx: 0 and protocol https
[16.01.2023 16:55.57.908] [LOG] MMM-SynologySurveillance: Found cam Generic_ONVIF-001
[16.01.2023 16:55.58.816] [LOG] MMM-SynologySurveillance: {
“dsIdx”: 0,
“camStreams”: {
“Generic_ONVIF-001”: “https://datanas//192.168.2.26:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Stream.VideoStreaming&version=1&method=Stream&format=mjpeg&cameraId=2&StmKey=“c0a94e2b77e2887405161edf7a32964b””
}