I have a script for the RPI to install the module and make the necessary file changes. I have run a simple test and it works. Let me know if any of you want to use it.
- 10k resistor between ds18b20 data pin and 3.3V power
- ds18b20 power pin to 3.3V power
- ds18b20 ground pin to ground
My nodeMCU code that displays to a OLED display and sends to MQTT over wifi is (here) if anybody wants it.
Works great on the nodeMCU. If you ground the D6 pin you can disable the wifi/MQTT functions, which I use at work at my desk where weāre not allowed to connect up bring-your-own devices to the network.
I have some old raspi python code (here) if you wanted to hook up a 16x2 or 5110 display and display temperature data. Iāve had a model-B with a 5110 and a few ds18b20 in an outside building for several years now. Super stable.
Code totally works for me, as every sw person says, but it might be worth more as examples for rolling your own solutions. Not stellar code, but it was good enough to get the job done for me so I thought Iād pass the links along.
What are you using for that, Home Assistant or a self-written one ? Room sensors on wifi arduino setups ?
I use the UDI ISY to control the Insteon and Z-Wave controllers. I use Ethernet RPi and Arduino to interface other devices. All sensors other than Z-Wave are hardwired. The only cloud based service I use is Alexa as I donāt care when it goes offline.
I use ISY and Insteon as well. Mostly for motion lighting and other automation.
I donāt use it for irrigation or heat/cool at the moment. I have a honeywell thermo and Ifttt for leave/return scenarios. I LOVE this āstuffā (shit) LOL
Hi @GaryFunk,
When I click http://192.168.20.24:8080/about
I get this: (but without the extra formatting added by this page and anonymous at the end)
cheers Ian
ReferenceError: /home/pi/wfarchive/views/about.ejs:20
18|
19| Datebase level: <%= config.database %>
20| <% if (config.database != Vers[āAlterTablesā].version) {%>
21| <== The database needs updated. Please run AlterTables!
22| <% } %>
23|
Vers is not defined
at eval (eval at compile (/home/pi/wfarchive/node_modules/ejs/lib/ejs.js:618:12), :46:31)
at returnedFn (/home/pi/wfarchive/node_modules/ejs/lib/ejs.js:653:17)
at tryHandleCache (/home/pi/wfarchive/node_modules/ejs/lib/ejs.js:251:36)
at View.exports.renderFile [as engine] (/home/pi/wfarchive/node_modules/ejs/lib/ejs.js:482:10)
at View.render (/home/pi/wfarchive/node_modules/express/lib/view.js:135:8)
at tryRender (/home/pi/wfarchive/node_modules/express/lib/application.js:640:10)
at Function.render (/home/pi/wfarchive/node_modules/express/lib/application.js:592:3)
at ServerResponse.render (/home/pi/wfarchive/node_modules/express/lib/response.js:1008:7)
at f1 (/home/pi/wfarchive/server.js:235:10)
at
In a terminal window, run altertables.js
Then run updatefiles.js
Hi @GaryFunk,
I have run:
node altertables.js
node updatefiles.js
over 10 times and restarted the processes several times today before I sent you the error message.
I dont mind the problem, I am just letting you know.
cheers Ian
You only need to run those once.
Can you open a terminal window and read the third line of altertables.js?
You can read it by running: nano altertables.js
I need to know the version number. It should be 1.7.13.???
1.7.13.027
cheers Ian
Okay, run updatefiles. again. Then try the page.
Thanks @GaryFunk
Fixed now
cheers Ian
A few more tweaks. The Probe temperature has been added to the main temperature cell.
I have 1 sensor attached and can test Let me know!
New versions of the services and some new files have been uploaded. There are a lot of changes so please go through the Server tabs after you restart the processes.
If you have any issues, please let me know.
didnāt see any updated files
2018-11-25 01:30:00 Getting files for update 1.7.13.025
====================
2018-11-25 01:30:00 Update Files v1.7.13.017
2018-11-25 01:30:00 Checking for new Script files
2018-11-25 01:30:01 Checking for new JavaScript files
2018-11-25 01:30:07 Checking for new Alert files
2018-11-25 01:30:07 Checking for new Panel files
2018-11-25 01:30:09 Checking for new PiIO files
2018-11-25 01:30:10 Checking for new Upload files
2018-11-25 01:30:10 Checking for new Views files
====================
2018-11-25 09:36:33 Update Files v1.7.13.017
2018-11-25 09:36:33 Getting files for update 1.7.13.025
2018-11-25 09:36:34 Checking for new Script files
2018-11-25 09:36:34 Checking for new JavaScript files
2018-11-25 09:36:40 Checking for new Alert files
2018-11-25 09:36:41 Checking for new Panel files
2018-11-25 09:36:42 Checking for new PiIO files
2018-11-25 09:36:43 Checking for new Upload files
2018-11-25 09:36:43 Checking for new Views files
Wow. You are two versions behind.
What is your database version as indicated in the About page on the Server?
Run altertables.js and then see it will update the files.
The current database version is 1.7.13.027. if you are not on this version, please upgrade by running updatefiles from a terminal window or the built in web server.
I will be uploading new files this week that will greatly improve the speed and error reporting.
If any of you want to test the newest codeā¦
First, make sure you are on Datebase level: 1.7.13.027
If you are not, run updatefiles and altertables in the order until the database is updated to .027
Next, edit config.json and change the database value to 1.7.13.test.
Save the file and run update files. Restart ALL the services.
from a terminal window run:
pm2 stop all
pm2 reset all
pm2 start
Looking great here!! No errors.