Could be my lucky day today… not only does the Orange Pi PC work but I’ve been talking to a pal of mine Peter Oakes (check his videos) in Canada… I know zilch about Linux apart from what seems like several thousand commands I’ve learned recently (probably a dozen) be necessity – however, I was getting a little concerned that the Orange Pi even with a tiny heat sink tends to get a little warm and I thought it might be nice to get that info – and be able to turn a fan on instead of the normal response when they get too hot which appears to be to shut down!!!
Anyway it turns out that this command…
returns the temperature as a decimal. We THINK a similar one for the Raspberry Pi is this.
Though in the latter case, it returns sometimes a 5 digit number which seems to include the decimals… not sure how to reduce that down to the same as the Orange Pi – maybe integer divide by 1000 ( or am I reading the wrong one) - both of these react appropriately to an air canister.
ANYWAY in order to use that in Node-Red – and hence send an email or turn a fan on…is to use the EXEC node – so in the case of the Orange Pi…
Well isn’t that handy – press the button and out comes the temperature of the chip – it doesn’t take much imagination to replace the left with a timer – maybe once every 30 seconds – and the output with either an email or GPIO control for a fan.
So – Orange Pi and Raspberry Pi experts – where is there an idiots guide to all the other useful addresses to get info ??