Hi @johan.elenius,
I did notice a couple of things that were different in my setup. Some of these may have been where I have deviated from the instructions, so don't take all these as something you must do or may have done wrong...
My node red app / module was installed under /home/pi/node_modules/hubitat-maker-to-influxdb/app.js. Again, not sure whether I did something different to produce this outcome, but may be worth double-checking this isn't the case for you as well and may be causing the "cannot find module 'request' " error you were seeing. Looking at your post again, it does appear you were already in the right folder, so it must have existed..... Hmmm....
It's been a while since I set mine up, but I do remember the details for the config files either weren't straight forward or I kept getting them wrong, so there may be something there that is causing your problem. Mine is below, minus the token. I appear to have changed the first "hostname" value to be 0.0.0.0, whereas you have an actual IP address. Perhaps try that? Also, the homeTester was in the example json config file, but I wonder whether it is actually required or just left there as an example of two hubs? Perhaps you could remove it to remove any issues it may cause, given it has the same details?
{
"local_config" : {
"hostname": "0.0.0.0",
"base_port": 8567,
"influxdb_port": 8086,
"influxdb_host": "127.0.0.1",
"influxdb_db_name": "hubitatMaker",
"local_url": "http://192.168.0.29"
},
"hubs" : {
"home": {
"url": "http://192.168.0.8/apps/api/591",
"token": "XXXX",
"locationName": "Home",
"locationId": "0",
"hubId": "0"
}
}
}
The last thing I grappled with were file permissions, more so when I was trying to ensure influxdb, grafana and the node red app were running each time the rpi started up. I ended up hacking around at the owners and permissions on various files, but I'd probably look at this as a last resort.
Let me know if you want me to check anything else out in my setup,
Simon