|
Post by SDL on Aug 26, 2018 13:21:22 GMT -8
Peter,
Yes. That is exactly what we do with Project Curacao2.
BP
|
|
|
Post by triggerfish on Aug 27, 2018 4:12:15 GMT -8
Hi BP, Will start that when I get home tonight. It just seems illogical to me that I can build, but not run it on the small version, but would be able to run a version built on a bigger system. Usually it's the other way around But miracles still happen Will keep you posted!
|
|
|
Post by triggerfish on Aug 27, 2018 10:14:24 GMT -8
One more question: Do I need to have the weatherboard and a the stuff connected to the Pi3 or can I install on just a Pi3?
|
|
|
Post by SDL on Aug 28, 2018 13:34:31 GMT -8
Install doesn't require anything to be connected up. Just running the program afterwards and that should work as well as it looks for the hardware.
BP
|
|
|
Post by triggerfish on Aug 29, 2018 0:23:54 GMT -8
Check! Keep asking questions so would this be a good conflocal.py file? # # # configuration file - contains customization for exact system # JCS 11/8/2013 #
# it is a good idea to copy this file into a file called "conflocal.py" and edit that instead of this one. This file is wiped out if you update GroveWeatherPi.
mailUser = "IBADHOEV14" mailPassword = "NotThisOne:)"
notifyAddress ="deep.core.2@gmail.com"
fromAddress = "IBADHOEV14@pemoco.nl"
textnotifyAddress = "0653460697@gin.nl"
#MySQL Logging and Password Information
enable_MySQL_Logging = True MySQL_Password = "AgainNotThisOne"
# modify this IP to enable WLAN operating detection - search for WLAN_check in GroveWeatherPi.py enable_WLAN_Detection = True PingableRouterAddress = "192.168.51.51"
# WeatherUnderground Station
WeatherUnderground_Present = True WeatherUnderground_StationID = "IBADHOEV14" WeatherUnderground_StationKey = "StillNotThisOne"
# for barometeric pressure - needed to calculate sealevel equivalent - set your weatherstation elevation here
BMP280_Altitude_Meters = 21.0
# device present global variables
Lightning_Mode = True SolarPower_Mode = True
TCA9545_I2CMux_Present = True SunAirPlus_Present = True AS3935_Present = True # Thunderboard Lightning sensor DS3231_Present = True # RTC BMP280_Present = True # Barometric Pressure sensor FRAM_Present = False # Ferroelectric Ram module HTU21DF_Present = False # Humidity/temperature sensor HDC1080_Present = True # Humidity sensor AM2315_Present = True # Humidity/temperature sensor ADS1015_Present = False # 4 ch. I2C 12-bit analog-digital convertor ADS1115_Present = True # 4 ch. I2C 16-bit analog-digital convertor OLED_Present = True # Oled display WXLink_Present = False # LoRa datalink Sunlight_Preset = False # Sunlight sensor
# set Sunlight High Gain (indoors - 1) or Low Gain (outdoors - 0) Sunlight_Gain = 0
# if the WXLink has stopped transmitting, == False WXLink_Data_Fresh = False WXLInk_LastMessageID = 0 And am I correct in thinking I have to tweak the following settings in the GroveWeatherPi.py file: as3935.set_indoors(False) s3935.set_noise_floor(0) as3935.set_mask_disturber(True) Thanx again.
|
|
|
Post by triggerfish on Aug 29, 2018 10:55:19 GMT -8
On the Pi3 I have the stuff running now. OR so it seems I get a nice stream of output with sensible data. See the thread in "my projects". I do get an occasional error:
------------- ----------------- ----------------- SunAirPlus Currents / Voltage ----------------- ERROR:apscheduler.executors.default:Job "sampleAndDisplay (trigger: interval[0:00:10], next run at: 2018-08-29 20:51:55 CEST)" raised an exception Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "GroveWeatherPi.py", line 1398, in sampleAndDisplay busvoltage1 = sunAirPlus.getBusVoltage_V(LIPO_BATTERY_CHANNEL) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 149, in getBusVoltage_V value = self._getBusVoltage_raw(channel) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 131, in _getBusVoltage_raw value = self._read_register_little_endian(INA3221_REG_BUSVOLTAGE_1+(channel -1) *2) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 108, in _read_register_little_endian result = self._bus.read_word_data(self._addr,register) & 0xFFFF IOError: [Errno 121] Remote I/O error [Errno 121] Remote I/O error File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "GroveWeatherPi.py", line 1398, in sampleAndDisplay busvoltage1 = sunAirPlus.getBusVoltage_V(LIPO_BATTERY_CHANNEL) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 149, in getBusVoltage_V value = self._getBusVoltage_raw(channel) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 131, in _getBusVoltage_raw value = self._read_register_little_endian(INA3221_REG_BUSVOLTAGE_1+(channel -1) *2) File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 108, in _read_register_little_endian result = self._bus.read_word_data(self._addr,register) & 0xFFFF It looks like the power output, but on most other occasions, I just get decent info:
----------------- SunAirPlus Currents / Voltage ----------------- LIPO_Battery Bus Voltage: 3.79 V LIPO_Battery Shunt Voltage: 0.00 mV LIPO_Battery Load Voltage: 3.79 V LIPO_Battery Current 1: 0.00 mA Battery Power 1: 0.00 W
Solar Cell Bus Voltage 2: 0.00 V Solar Cell Shunt Voltage 2: 0.00 mV Solar Cell Load Voltage 2: 0.00 V Solar Cell Current 2: -0.00 mA Solar Cell Power 2: -0.00 W
Output Bus Voltage 3: 3.31 V Output Shunt Voltage 3: 0.04 mV Output Load Voltage 3: 3.31 V Output Current 3: 0.40 mA Output Power 3: 0.00 W
------------------------------
|
|
|
Post by SDL on Aug 30, 2018 10:56:20 GMT -8
DIdn't I answer this somewhere else? Use a Raspberry Pi3+ to compile then change the SD card to the Raspberry Pi Zero.
BP
|
|
|
Post by triggerfish on Aug 30, 2018 11:00:37 GMT -8
DIdn't I answer this somewhere else? Use a Raspberry Pi3+ to compile then change the SD card to the Raspberry Pi Zero. BP I did that. I just plugged the pi2grove on the Pi3 also and t's runnning on that rigth now. I still have to switch the card and the board to the Zero.
|
|
|
Post by triggerfish on Aug 30, 2018 22:38:04 GMT -8
On a sidenote... My station has been running for a while now. I still get errors on a regular basis. At that moment all data is zero: | 2018-08-31 05:57:27 | 12.9 | 85.5 | 102.479 | 22 | | 2018-08-31 06:02:27 | 13 | 85.8 | 102.487 | 22 | | 2018-08-31 06:07:27 | 13.1 | 85.4 | 102.46 | 22 | | 2018-08-31 06:12:27 | 13.2 | 85 | 102.48 | 22 | | 2018-08-31 06:17:27 | 0 | 0 | 102.499 | 22 | | 2018-08-31 06:22:27 | 13.4 | 85.6 | 102.474 | 22 |
| 2018-08-31 06:27:27 | 0 | 0 | 102.497 | 22 |
That data is still beeing uploaded to wunderground, resulting in an sawtooth graph:
Would it be possible to "skip the loop" when an error occurs? So on error, no data to database and no data exported externally? Maybe an entry in the systemlog table with the error. That way only valid data will be stored and presented.
|
|
|
Post by SDL on Sept 1, 2018 10:56:44 GMT -8
Hmm. You mean the AM2315 is returning 0s occasionally.
That is also on our September 2018 BugWeek list already.
BP
|
|
|
Post by triggerfish on Sept 7, 2018 6:25:48 GMT -8
Hi,
Not sure if it's what you mention, but when I look at the output, every now and then I get a bunch of errors. They appear to have come from the INA3221. I have posted the errors there. It seems to be more stable at the moment. After I attached the weatherrack and al t eh other stuff. But every now and then, I get zeros...
|
|
|
Post by SDL on Sept 7, 2018 12:58:16 GMT -8
This INA3221 problem is also on the list!
BP
|
|
|
Post by triggerfish on Sept 9, 2018 22:46:13 GMT -8
Hmm. You mean the AM2315 is returning 0s occasionally. That is also on our September 2018 BugWeek list already. BP The Pi Zero has more problems with this than the Pi 3. See image. With the 3, the 0 dips were relative occasionally, with the Zero they are more rule than exception
|
|
|
Post by SDL on Sept 12, 2018 7:24:04 GMT -8
Good additional information. I think that means there is a race.
BP
|
|
|
Post by snakn1 on Sept 12, 2018 12:45:13 GMT -8
Hmm. You mean the AM2315 is returning 0s occasionally. That is also on our September 2018 BugWeek list already. BP Is there an update on this issue? because the onboard temp is fine on the "Weather BD" why should I not just return the AM2315 The inside of the box is as close to the outside temp that this issue is a go-no go for my project using the AM2315. running the testAM2315.py I only get 2 or 3 good reading out of the 10. I unplugged everything (weather BD) so the only thing was the AM2315 to the 6 port 12c BD and the Pi 3 B+ but the AM2315 and it is the same issue. Brad
|
|