N8MDP
New Member
Posts: 33
Raspberry Pi: Yes
Other Device: Arduino
|
Post by N8MDP on Jun 24, 2018 16:04:41 GMT -8
Is there a very basic version of the GroveWeatherPi.py program out there without the Solar control, WXlink, MySQL, WeatherUnderground, functions? Or does somebody have one that they are willing to give me? I am not planning on running the system with solar power, the WXlink, or WeatherUnderground just yet. While the functionality of the current program is really good, I'm looking for something very basic I can build upon without having to tear apart the existing code. I'm still ramping on Python and just looking for a way to jump-start my effort. I plan to use my WeatherPi to display weather readings on my website www.n8mdp.com. If anyone knows of some good weather widgets like dials and temperature gauges for a webpage, please let me know. Thanks. N8MDP John
|
|
|
Post by SDL on Jun 25, 2018 10:28:55 GMT -8
|
|
N8MDP
New Member
Posts: 33
Raspberry Pi: Yes
Other Device: Arduino
|
Post by N8MDP on Jun 25, 2018 14:08:18 GMT -8
Thanks BP. I'll check it out.
By the way, one of the reasons why I'm asking for a lite /bare bones version is that my Grove Weather Pi using the GWP software right now keeps rebooting after some time. This usually happens when I see the following:
Weather Sampling ----------------- ----------------- ----------------- ERROR:apscheduler.executors.default:Job "sampleWeather (trigger: interval[0:05:00], next run at: 2018-06-24 21:49:17 EDT)" 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 971, in sampleWeather HTUhumidity = hdc1080.readHumidity() File "./SDL_Pi_HDC1000/SDL_Pi_HDC1000.py", line 87, in readHumidity data0 = self._bus.read_byte(HDC1000_ADDRESS) 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 971, in sampleWeather HTUhumidity = hdc1080.readHumidity() File "./SDL_Pi_HDC1000/SDL_Pi_HDC1000.py", line 87, in readHumidity data0 = self._bus.read_byte(HDC1000_ADDRESS)
----------------- ----------------- DS3231 Real Time Clock ----------------- Raspberry Pi= 2018-06-24 21:44:18 DS3231= 2018-06-24 21:44:17 DS3231 Temperature= 22.00 C ----------------- ----------------- BMP280 Barometer ----------------- Temperature = 22.32 C Pressure = 97.53 KPa Altitude = 320.42 m Sealevel Pressure = 105.38 KPa ----------------- ----------------- Sunlight Vi/IR/UV Sensor Not Present ----------------- ----------------- HDC1080 Temp/Hum ----------------- Temperature = 21.47 C Humidity = 58.43 % checking WLAN: ping_ret=1 WLAN_check_flg=3 logger WLAN Down, Pi is forcing a reboot ----------------- HTU21DF Temp/Hum Not Present ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- AM2315 Temperature/Humidity Sensor ----------------- outsideTemperature: 20.6 C outsideHumidity: 55.8 % crc: 0 ----------------- time to Reboot Pi from WLAN_check
I turned the WiFi off on my RPi and strictly using ethernet for now. What causes this? Does it have anything to do with those sections of the code that I don't want to use (e.g MySQL, WXLink, WeatherUnderground)?
Would appreciate your insight here.
Thanks again. You'r doing a great job answering my questions and everyone else's too!
John
|
|
|
Post by SDL on Jun 25, 2018 16:43:35 GMT -8
There is a section of the code that reboots the Pi every 24 hours (if I remember right). Have you looked at commenting that out?
Thanks for the nice words!
BP
|
|
N8MDP
New Member
Posts: 33
Raspberry Pi: Yes
Other Device: Arduino
|
Post by N8MDP on Jun 25, 2018 17:08:36 GMT -8
I'll look for that piece of the code. The problem I'm seeing is that the Pi is rebooting in <2 hours! I'll dig into that further.
Thanks. John
|
|
N8MDP
New Member
Posts: 33
Raspberry Pi: Yes
Other Device: Arduino
|
Post by N8MDP on Jun 27, 2018 14:13:49 GMT -8
BP,
While I continue to work with the GWP software, I noticed that when the RPI reboots from the automatic rebooting code, the interrupt light on the Thunderboard stays lit. The only way I can reset the Thunderboard is to power down the system, wait 5 seconds, then power up the system. I then restart the GWP software and everything runs as I would expect. But as soon as the Pi automatically reboots, and it has been doing it in under 2 hours, not 24 hours, the light on the Thunderboard stays lit and all I get is the annoying as3935 interrupt message repeatedly when the code restarts on bootup. So something in the reboot process is mucking up the Thunderboard and the interrupt appears to be not resetting right. Interesting!
All of my noise sources are turned off.
I'm going to try to comment out that part of the code tonight.
Thanks. John
|
|
|
Post by SDL on Jun 28, 2018 7:07:13 GMT -8
John,
Odd behavior. The White light on the Thunderboard only indicates that there is an interrupt that is not read yet.
Hope that gives you a clue.
BP
|
|