[nodebb-plugin-calendar] Fully featured calendar plugin for NodeBB - Testers needed
-
Hi @pitaj , I think current master version (alpha.56) is not compatible with NodeBB 1.15.2?
Are we doing something wrong? or should we install:
npm i [email protected]
-
@crazycells I forgot to issue a changelog for this, but there's actually a fix for 1.15 in the latest calendar plugin version.
I'd suggest using alpha.56
If you encounter any problems please open an issue on GitHub.
-
@pitaj can you please check the error log in the link?
-
New version. Please try out
[email protected]
Note: this version requires NodeBB v1.15.x or laternpm i nodebb-plugin-calendar@latest
Changelog:
1.0.0-alpha.57 had the following fixes
- Fix #137: editing events in 1.16.2
I believe this version is the most stable I've even released, which is why I think it deserves to escape from alpha status.
-
Hi @PitaJ !
I'm definitely no JS coder but I had a need so I tried to build my own solution.
I ported the discord webhook notification from this project to the latest version https://github.com/fallendusk/nodebb-plugin-calendar-gaiaI'm trying to import the translator to translate the webhook message to be "functional enough" to submit a PR.
So far, I've not managed to do it without having issues. Do you have a suggestion ?Here's my edited version: https://github.com/fl4shback/nodebb-plugin-calendar/blob/0f71635085a3a5c900b745bc259a93031dc76c1a/src/lib/postSave.ts
Thanks
-
@fl4shback51 here's an example of importing the translator server side. You have to use require.main.require:
-
@anodetobb what version of the plugin? What version of NodeBB? What version of Node.js?
-
@anodetobb the settings there should be fine, though you may want to shorten the "Interval on which to check for upcoming events" as right now it'll only check every 3 1/2 days and you probably want it more like every few minutes (5 minutes = 300 seconds).
You add events by adding them to a post: https://github.com/pitaj/nodebb-plugin-calendar#how-event-creation-works
-
@dcook are you referring to seeing other people's responses or responding to the event yourself or both?
-
@PitaJ Hi @PitaJ , for NodeBB 1.19.1 we have this warning in the logs:
2022-02-03T04:29:12.098Z [4567/3646564] - [33mwarn[39m: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it. [33m * [39mnodebb-plugin-calendar
But, so far I have not seen any clear problem with the plugin. FYI.
-
Currently setting up a v2.0 nodeBB Forum.
I was confused as nodebb-plugin-calendar was listed as compatible here.What am I doing wrong? Do I have to use any special branch/fork?
Installing the @latest ("nodebb-plugin-calendar": "^1.1.3") leads to this error:opt_nodebb_1 | 2022-05-20T13:13:30.946Z [4567/357] - info: Initializing NodeBB v2.0.0 *snip* opt_nodebb_1 | 2022-05-20T13:13:32.447Z [4567/357] - info: [socket.io] Restricting access to origin: *snip* opt_nodebb_1 | 2022-05-20T13:13:33.053Z [4567/357] - warn: [plugins/nodebb-plugin-calendar] The plugin.json field "library" is deprecated. Please use the package.json field "main" instead. opt_nodebb_1 | 2022-05-20T13:13:33.054Z [4567/357] - warn: [plugins] Unable to load library for: nodebb-plugin-calendar opt_nodebb_1 | 2022-05-20T13:13:33.062Z [4567/357] - error: ReferenceError: define is not defined opt_nodebb_1 | at Object.<anonymous> (/usr/src/app/public/src/modules/translator.js:5:1) opt_nodebb_1 | at Module._compile (node:internal/modules/cjs/loader:1105:14) opt_nodebb_1 | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) opt_nodebb_1 | at Module.load (node:internal/modules/cjs/loader:981:32) opt_nodebb_1 | at Function.Module._load (node:internal/modules/cjs/loader:822:12) opt_nodebb_1 | at Module.require (node:internal/modules/cjs/loader:1005:19) opt_nodebb_1 | at require (node:internal/modules/cjs/helpers:102:18) opt_nodebb_1 | at Module.require.main.require (/usr/src/app/require-main.js:8:10) opt_nodebb_1 | at Object.<anonymous> (/usr/src/app/node_modules/nodebb-plugin-calendar/src/lib/index.ts:20:38) opt_nodebb_1 | at Module._compile (node:internal/modules/cjs/loader:1105:14) opt_nodebb_1 |
-
@Frozen_byte I think they listed it because they've provided a patch for 2.0. I haven't merged the patch or issued a new version yet.
-
Thank you! The Fork from @baris is what I need.
Do I have to build the fork inside the docker? Since it's not setup with dev-packages, I try to avoid this kind of tinkering.I have trouble getting the package built inside the docker:
npm i "https://github.com/barisusakli/nodebb-plugin-calendar/tarball/main"
npm activate nodebb-plugin-calendar
./nodebb build
fails with the following error:node@42ab625bf06d:/usr/src/app$ ./nodebb build started 2022-05-21T12:52:34.420Z [4567/2257] - warn: [plugins] File not found: /usr/src/app/node_modules/nodebb-plugin-calendar/build/bundles/ (Ignoring) 2022-05-21T12:52:34.421Z [4567/2257] - error: [build] Encountered error preparing for build TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.stat (node:internal/fs/promises:660:10) at processDir (/usr/src/app/src/plugins/data.js:102:36) at async Promise.all (index 0) at async Data.getStaticDirectories (/usr/src/app/src/plugins/data.js:120:2) 2022-05-21T12:52:34.422Z [4567/2257] - error: [build] Encountered error during build step TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.stat (node:internal/fs/promises:660:10) at processDir (/usr/src/app/src/plugins/data.js:102:36) at async Promise.all (index 0) at async Data.getStaticDirectories (/usr/src/app/src/plugins/data.js:120:2) 2022-05-21T12:52:34.422Z [4567/2257] - error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.stat (node:internal/fs/promises:660:10) at processDir (/usr/src/app/src/plugins/data.js:102:36) at async Promise.all (index 0) at async Data.getStaticDirectories (/usr/src/app/src/plugins/data.js:120:2)
-
@Frozen_byte you'll really just need to wait until I release a new version. I'll try to get that done tonight.