-
Notifications
You must be signed in to change notification settings - Fork 100
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
node zigbee2mqtt #1080
Comments
I am not familiar with the usage of zigbee2mqtt. You might want to look for similar issues on upstream. https://github.com/Koenkk/zigbee2mqtt/search?q=winston-transport&type=issues |
to fix this need open |
@ANARHIST1984 |
The same error was encountered by the guys who tried to build zigbee2mqtt. To reduce the package size, I am building a package with the production flag for zigbee2mqtt and its two main dependencies. Otherwise, the packet becomes about 200 MB. unpacked. These edits are in a separate patch. With them, the assembly takes place correctly and fits in the xiaomi dgnwg05lm gateway, but they may not be optimal and not beautiful. That's why I don't do PR. Maybe you'll take a look and decide what can be moved to the main repository. |
I'm going to test using this patch as a reference. Please give me some time. |
Explicitly specified NODE_PATH. Added modclean. I would like feedback on the handling of configuration.yaml. |
@nxhack Good afternoon. The main thing is a re -installation with the production flag . First npm i , and after I currently have no way to test this in the openwrt build , but on a regular machine with npm it is reproduced like this
the size of the directory is almost 600 MB If you now go to the zigbee2mqtt directory and make npm ci --production If you also remove the duplicate dependency Which is almost not needed, but because of the difference in the version numbers of dependencies, it is dragged repeatedly. The size is reduced by another 10 MB And after that I did the cleaning with modclean. The final package in the archive had a size of about 5 MB, unpacked on the xiaomi gateway up to 20 MB I do not know why the production flag does not work with direct installation via npm and therefore used such a workaround hack. I would appreciate it if you re-use it. Then it will be possible not to update this patch in the auto-assembly of the zigbee2mqtt package for the xiaomi gateway. |
About configuration.yml.
This allows you to keep the config and data separate from the application. When updating the application, they are not overwritten, and can also be backed up with openwrt tools. In order for zigbee2mqtt to work with another data folder, I added a script to init
This solution is not perfect, and sometimes leads to user errors. So I wanted to take another step. Replace the data directory with configuration.yml in the directory with the program with a symbolic link leading to etc. This would allow users to ignore and edit the config from anywhere. |
Do not start without install Winston-transport
The text was updated successfully, but these errors were encountered: