September-4th-2020, 02:35 PM
Hi there.
my first question is about the data loggin function. Where do you want to write the logged data to? Onto netPI's SD card or onto the hard disk? Or are these data just stored in memory and then shifted over the ethernet port to a server for example?
Then a word to the hard disk. How much power is this hardware consuming? I have personally used USB sticks as hard drives so far which consume for sure less power than a hard drive. Will it be of type SSD or HDD? If this disk drives maps to a /dev/ttyusb alike device then you can use it on netPI as this thread describes https://forum.hilscher.com/thread-439.html. You have to map this drive when the Node-RED container is started and then you have to mount the drive to "look" into the drives folder structure.
I do not understand the question about Node-RED. The file you want to write to for data logging ... will it be a database like a time series data influxdb is providing or an SQL database or is it you very own privat format and a kind of simple text file? As far as I know default Node-RED does not support writing and reading from a file directly ... you need to modify the Node-RED settings file and include the fs (file system) library with a command like let fs = global.get('fs'). And then you can use the function node to program read/write file accesses. I have never done this before to be honest.
Thx
Armin
my first question is about the data loggin function. Where do you want to write the logged data to? Onto netPI's SD card or onto the hard disk? Or are these data just stored in memory and then shifted over the ethernet port to a server for example?
Then a word to the hard disk. How much power is this hardware consuming? I have personally used USB sticks as hard drives so far which consume for sure less power than a hard drive. Will it be of type SSD or HDD? If this disk drives maps to a /dev/ttyusb alike device then you can use it on netPI as this thread describes https://forum.hilscher.com/thread-439.html. You have to map this drive when the Node-RED container is started and then you have to mount the drive to "look" into the drives folder structure.
I do not understand the question about Node-RED. The file you want to write to for data logging ... will it be a database like a time series data influxdb is providing or an SQL database or is it you very own privat format and a kind of simple text file? As far as I know default Node-RED does not support writing and reading from a file directly ... you need to modify the Node-RED settings file and include the fs (file system) library with a command like let fs = global.get('fs'). And then you can use the function node to program read/write file accesses. I have never done this before to be honest.
Thx
Armin
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)