|
Post by leldredge on Apr 3, 2019 5:34:59 GMT -8
After much tribulation with the code from github.com/switchdoclabs/RaspberryPi-WeatherPiArduino I kept getting MSBus busy. I will get it working later. And so I use the simpler code from github.com/switchdoclabs/SDL_Pi_Weather_80422 I had some success. The wind direction is working but I can not get wind speed. The RJ 11 extension I have the yellow wire on the left side on one in in the right side on the other. I've even done a crossover and still, I cannot get the wind speed. I am a retired IT with much experience with UNIX systems and have done a lot of scripting. Read more: forum.switchdoc.com/thread/874/sdl-pi-weather-80422-py?page=1#ixzz5k2Rv5uJp
|
|
|
Post by SDL on Apr 3, 2019 11:11:47 GMT -8
|
|
|
Post by leldredge on Apr 3, 2019 18:57:54 GMT -8
Using Weather PIArduino Weather Board 001-122314-01 as my guide, I found some inconsistencies. Frist on page 9 (the diagram of the Weather PiArduino board) the rj11 J1 and J2 are reversed. That was confusing. The wiring diagram on page 21 for the Raspberry Pi for the J2 connection on the weatherboard shows the wires going to the wrong GPIO's I added some test print code to SDL_Pi_Wether_80422.py, where the GPIO's are set and found that they should be 23 and 24, pins 16 and 18. When I made that change I now get Wind Speed and wind_gust. I do get Rain Total, but it is not raining. Currently, it has 0.02 in. It has been as high as 1 in. I will need to do some test code to see why it is showing clicks. I wonder if there is noise on the line from the TV antenna. I started this project back in 2015 and that is why I have an out of date weatherboard. Just got involved with doing some other raspberry pi projects and never got back to it. In fact, I have had a Wind Vane on the roof since then, however, the bearings in the anemometer are shot and will not turn, so I had to purchase a new one. My wife keeps asking if I am done. I told her that it was just the beginning. I will need to add the other ventures to the weatherboard. Once that is done create a web page that will show current and past data. Tie into Underground weather and set up my KF7YDM Ham to the weather service. It is surprising how my VI editing is coming back to me. I retired from being a UNIX admin 15 years ago.
|
|
|
Post by SDL on Apr 5, 2019 8:43:22 GMT -8
Love your "vi" story. It's wired into my brain. I find myself accidentally using vi commands in Word. Very sad.
The source of the noise probably isn't the tv antenna. That's as receiver. The problem is probably coming on the line running from the bucket down to the Weather Board.
Add another pullup on the line or increase the "bounce time" in the software.
BP
|
|