![]() For now, it reads the latest value from the database, with an interval of one minute. Since it doesn't do anything for most of the time, cpu utilization seems to not be a problem at the moment. So it's not very efficient as far as resources go. It uses 30% of memory according to top, net I'd say about 10MB. It does connect to mqtt, but doesn't send anything yet. ![]() I have sort of a proof of concept nodejs server running at the moment. Is it maybe possible to install an npm package using the oe-toolchain on another host, and create an mqtt add-on to nodejs that way? So it will install eventually, but it's not very clean, and it is probably disruptive. ![]() I re-ran the install of mqtt, and now it finished. In this case, it might need some additional work, like creating symlinks. I've activated npm/nodejs packages before simply by copying the folder from node_modules. It's likely that once mqtt is installed, it could be distributed with the package, so you don't have to install it yourself. Thing is, for a specific project, we could probably do without npm. I just searched a bit for a lightweight version of npm, but did not find any. Just running npm -help eats up all the memory. Also, it seems that mqtt was only partially installed. ![]() I'm running an install of mqtt now, and indeed it eats up all the memory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |