I am good at hardware, and a beginner at the software, I have setup a basic weather setup: I started off with a Pi 3 B+ I have the weather rack, with the "Weather BD" I also am using the ADS1115 as needed for the wind vane. and I have the OLED SDD_1306. I wanted to use the AM2315, but gave it up because of the bad readings due to the timing issue with the I2C buss. (when that is working I will add it again) I tried all the suggestions on delaying the reading, but it just did not work. I loaded and running the GroveWeatherPi.py program and it is working fine with the correct data displayed.
So to my questions: 1: I want to display the temp reading from the BMP280 (on-board Temp from the "weather BD") on the OLED 2: I want to change the font size on the OLED display, to better see the values. 3: I need to change the temp from reading in C to F, and the wind direction I would like it to display in N, NW , W , SW ,S ,SE , E, NE 4: I need to start the program on the startup of the pi. (I tried to use Cron, but could not figure it out) 5: lastly I need to add the values to a web page on the Pi's web server. I have already created a page to display the camera pic that is taken every 10 min. I just need to add the code to get and display the Temp, Wind direction, and wind speed.
Thank you all for your help on this new adventure Brad
I figured out #1 and 4
Last Edit: Sept 14, 2018 13:35:17 GMT -8 by snakn1
ok I have fixes all my questions, but one. I need help with the format of a local file called wthrdata.dat that will use the jason so I can put it on the website page... I am using a modified version of "Larry Bonnette's" page.
yes I did contact Larry , he shared his code. I use part of it and part of your's and and all is working, The main issue was the Pi's web server I was using I used the one the service that redirects the ip recommended. I changed it to Apache and everything started to talk with each other.
so I now have one last small wish list. I only have the Weather bd, A/D bd, and a hub for the I2C. I gave up on the AM2312 and just went with a one wire temp only prob running off the GIOpin vs the I2c buss. it works good. I did not ready need the hum anyway. If there is ever a good fix I will get the probe again and try it.
Anyway the last thing on my wish list is how to or look at the voltage on the pi as needed. to see how the the solar panels at doing until I fell good about my setup.
I am using a 6V (10 volt panels) system I had already. I have a generic solar controller, and I read 5.8 Volts on the panels (at full sunlight) I think they will give me about 1 amph and I am pulling about .6 amp (that is including my hotspot) I have a 7ah battery as storage with a voltage reg down to 5V to power the Pi. Right not the battery is fully changed so the panels are not doing much. I have to wait until the battery drains some. The 5V reg will pass any voltage below 5.5 volts.
1: is there a way of looking at from the weather bd without the Switch Doc's solar controller?
2: do I just use the a/d port run a line from the 5V and program the a port to look at it there,
thanks again for your help on pointing my in the right direction.
Try using the INA3221 board (same chip that is used on SunAIrPlus). You will have to cut and paste some wires to get voltages and currents (which are really important in a solar system!).
You can see an ADC board to check out the 5V on the Pi (It will be 5V most of the time!). You can't just measure the Solar Voltage with a 5V ADC without putting a resistive divider on it to bring down the voltage below 5V.