choffmann / mmm-notion Goto Github PK
View Code? Open in Web Editor NEWDisplay your Notion database on the MagicMirror
License: MIT License
Display your Notion database on the MagicMirror
License: MIT License
When using the same database module config settings for two different modules with the only difference being the filter criteria, it is rendering the same content for both modules. IE, it is applying the same filter criteria (the last filter criteria) when there are multiple modules that point to the same database id.
Hi choffmann,
can you please help?
I receive this error log when trying to get your module to do some magic for me.
[11.04.2023 07:35.42.517] [WARN] @notionhq/client warn: request fail {
code: 'object_not_found',
message: 'Could not find database with ID: c7b143a7-21b3-4f55-bfcb-c74b5d243c9 1. Make sure the relevant pages and databases are shared with your integration.'
}
[11.04.2023 07:35.42.526] [ERROR] APIResponseError: Could not find database with ID: c7b143a7-21b3-4f55-bfcb-c74b5d243c91. Make sure the relevant pages and databases are shared with your integration.
at buildRequestError (/home/fwuth/MagicMirror/modules/MMM-Notion/node_modules/@notionhq/client/build/src/errors.js:162:16)
at Client.request (/home/fwuth/MagicMirror/modules/MMM-Notion/node_modules/@notionhq/client/build/src/Client.js:304:54)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Class.makeQuery (/home/fwuth/MagicMirror/modules/MMM-Notion/node_helper.js:43:10)
at async Class.makeRequest (/home/fwuth/MagicMirror/modules/MMM-Notion/node_helper.js:32:18)
at async Class.socketNotificationReceived (/home/fwuth/MagicMirror/modules/MMM-Notion/node_helper.js:20:5) {
code: 'object_not_found',
status: 404,
headers: Headers {
[Symbol(map)]: [Object: null prototype] {
date: [Array],
'content-type': [Array],
'transfer-encoding': [Array],
connection: [Array],
'set-cookie': [Array],
'content-security-policy': [Array],
'x-dns-prefetch-control': [Array],
'x-frame-options': [Array],
'strict-transport-security': [Array],
'x-download-options': [Array],
'x-content-type-options': [Array],
'x-permitted-cross-domain-policies': [Array],
'referrer-policy': [Array],
'x-xss-protection': [Array],
etag: [Array],
vary: [Array],
'cf-cache-status': [Array],
server: [Array],
'cf-ray': [Array],
'content-encoding': [Array]
}
},
body: '{"object":"error","status":404,"code":"object_not_found","message":"Could not find database with ID: c7b143a7-21b3-4f55-bfcb-c74b5d243c91. Make sure the relevant pages and databases are shared with your integration."}'
According to the error the database cannot be found. I think I configured it correctly though:
There are hyphons inserted in the error-log (not in the config-file).
Might they be problematic?
Thanks in advance,
Fritz
PS:Just tried to add a notion database instead of a simple notion page. The result is pretty much the same, just with a different ID.
the integration does not seem to be getting calculated fields, right?
When the update interval is reached and the database refreshes, the original rows stay in the list view and they are appended again at the bottom of the list view. It is essentially causing duplicate rows after the refresh period and theoretically triplicate...etc.
I don´t know if i got the right database id, but with the id i currently have in the config file every sixty seconds when the module updates itself it shows the error "TypeError: Cannot read properties of undefined (reading 'type')". If I use another database id it shows another error which says it cannot find a database with that id.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.