First time poster -
Setting up an Iot Gateway for data logging purposes -
Basically my end goal is to have a NCD IoT Gateway - and a few sensors logging at 1 minute intervals in such a way that i can automatically update set of calculations in excel.
(Psychrometric / air conditioning calculation for which i need temp and hum as base inputs)
This could be as simple as local without internet logging on an SD / USB to a excel file / CSV and email it once a week - with a live dashboard (dashboard data can be since start and does not need to reference the saved data)
or along the lines of updating a remote SQL database - which i can reference with my spreadsheet which is what i was having a play with that led me to post the topic here.
or a google sheet -
so ive had a go at using SQIITE node - and am having some issues. there is a node called sqlite that you can get to from pallete.
Ideally id just click on this and use it, however there are issues with the version of node.
So it looks like i need to get newer versions of Node.js, and NPM to get this to work - in the node-red environment.
so far i have done this:
I’ve upgraded NVM (node version manager to 0.38.0)
i then upgraded NPM, to which i now get errors that NPM does not support node.js version v8.10.0 (8.10.0 is the one that comes with the IoT Gateway and appears too old to use with newer downloadable nodes like sqlite)
I try to use NVM to install a new version of node, and successfully download it, - it completes the checksum - however cannot compile it as the compiler is again an old version.
i get the error
Computing checksum with sha256sum
$> ./configure --prefix=/root/ .nvm/versions/node/v14.18.0 <
Node.js configure: Found Python 2.7.18. . .
WARNING: C++ compiler (CXX=g++, 5.4.0) too old, need g++ 6.3.0 or clang++ 8.0.0
WARNING: warnings were emitted in the configure phase
When i then check node version i am still on version 8.10.0
further trying to upgrade the C++ compiler leads me to Onion’s OPKG repository which only contain version 5.4.0 of the compiler - and nobody out there has a updated version - the consensus is to compile Node on a computer and somehow just copy it over
Not being a programmer - and all of this is a bit new, i could do with some tips on how to accomplish this.
help on the SQL or an alternative to achieve by other means appreciated,