I am trying to expand the DHT web sensor project by adding a rain gage. It is a tilting bucket type gage that ouputs a pulse at each tilt of the bucket ( 0.01 inches of water). I added an interrupt triggered by the pulse. The interrupt routine sets a flag only and a function in the loop counts the events and clears the flag. I have duplicated the HTML, CSS, and JAVA code you used for the temperature function to build a rainfall function. My problem is that the resulting web page will not update automatically at the interval. It will update if the page is reloaded. Do you think the interrupt might be conflicting with the Set Interval function in the JAVA code.
i don’t think that’s the problem.
Can you share your code with us? Maybe if I take a look at the code I can find out what might be wrong.
I have posted may modified code to pastebin.com with the paste name Rain Add
Thanks for taking a look.
Please share a link to the code because I can’t find it that way.
You can see these instructions: https://rntlab.com/question/need-help-using-pastebin/
OK, sorry; I have not used this before. Here is the link.
I tested your code and it is working fine. I used Google Chrome to access the web server.
Which web browser are you using?
Well Sara, that is interesting. So far I have tried accessing the server with my PC running Google Chrome 64 bit and the Silk browser on my Kindle Fire tablet. The behavior is the same on both. No automatic update but the page loads and refreshes without a problem.
Any ideas on what area to look at? Would anything in my wifi router settings affect this? Maybe I should try it on a different AP.
Thanks again. I am learning so much from the tutorials. I have been playing with computers and micros for many years but I am a total novice with the HTML and JAVA coding.