juanc
Junior Member
Posts: 50
|
Post by juanc on Sept 30, 2019 9:54:03 GMT -8
Hmm. I think I asked you this before, but have you run the testAM2315.py script? BP I still haven't received the new Arduino Mini Pro LP board, so I can't test the AM2315.
|
|
|
Post by SDL on Sept 30, 2019 10:16:05 GMT -8
PM me your shipping address so I can run down the shipment.
BP
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Oct 1, 2019 7:27:01 GMT -8
Ok
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Oct 2, 2019 13:09:47 GMT -8
Hi BP, I received the new Arduino Mini Pro LP board this afternoon and reinstalled the remote WXLink sensors. Unfortunately, the Yellow LED on the Arduino does not blink every 30 secconds as you told me it should. It only blinks once when I turn on the SunAirPlus board or when I press the Arduino reset button. The onlyother LED on the Arduino is a blue one that is permanently on. When I ran the testWXLink.py I got the same results I obtained with the original Arduino board: pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo python testWXLink.py ('HW-Version: ', 18) Starting readWXLink ('', '', '', '', '', '') Tick! The time is: 2019-10-02 16:47:18.170114 Starting readWXLink ([], [], '', '', [], []) Tick! The time is: 2019-10-02 16:47:23.178417 Starting readWXLink ([], [], '', '', [], []) Tick! The time is: 2019-10-02 16:47:28.185887 Starting readWXLink ([], [], '', '', [], []) Tick! The time is: 2019-10-02 16:47:33.193202 Starting readWXLink ([], [], '', '', [], []) Tick! The time is: 2019-10-02 16:47:38.200473 Starting readWXLink ([], [], '', '', [], []) Tick! The time is: 2019-10-02 16:47:43.202177 ^CTraceback (most recent call last): File "testWXLink.py", line 67, in <module> readLoRa.readRawWXLink() File "/home/pi/SDL_Pi_SkyWeather/readLoRa.py", line 285, in readRawWXLink if state.ll.waitRX(timeout=5): File "./pyRFM/lib/ll/ll_rfm9x.py", line 407, in waitRX time.sleep(0.01) KeyboardInterrupt
Another problem I am having is that when I perform a git pull I receive the following Error message: pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ git pull remote: Enumerating objects: 17, done. remote: Counting objects: 100% (17/17), done. remote: Compressing objects: 100% (5/5), done. error: insufficient permission for adding an object to repository database .git/objects fatal: failed to write object fatal: unpack-objects failed
What can I do now?
|
|
|
Post by SDL on Oct 2, 2019 14:01:56 GMT -8
Hmmm. Looks like you are not getting any messages. I forgot, do you have an FTDI cable? So you can snoop on the Arduino?
Secondly:
use:
sudo git pull Anytime you see a permissions problem, you should look at using "sudo"
BP
|
|
|
Post by SDL on Oct 2, 2019 17:04:54 GMT -8
Juanc,
I thought of another potential suggestion. Sometimes if you have a bad enough power supply, the Radio won't come up correctly. Do the following:
1) Turn on your power supply
2) Unplug the radio, and plug it back in again
3) hit the reset button on the MiniPro Arduino
BP
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Oct 2, 2019 21:51:59 GMT -8
Sorry, but I don't have an FTDI cable. But I have just ordered this cable:
I tried sudo git pull and received a different Error message: pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo git pull remote: Enumerating objects: 17, done. remote: Counting objects: 100% (17/17), done. remote: Compressing objects: 100% (5/5), done. remote: Total 9 (delta 4), reused 9 (delta 4), pack-reused 0 Unpacking objects: 100% (9/9), done. From https://github.com/switchdoclabs/SDL_Pi_SkyWeather 76b5103..492d1df master -> origin/master Updating 76b5103..492d1df error: Your local changes to the following files would be overwritten by merge: static/BarometerLightningGraph.png static/TemperatureHumidityGraph.png Please commit your changes or stash them before you merge. Aborting
Finally, I tried turning on my power supply, then I unpluged the radio, and pluged it back in again, and then pressed the reset button on the MiniPro Arduino. When I pressed the reset button the yellow LED blinked once and after that it didn't blink again. After doing this I ran the testWXLink.py but got the same results as before. I also exchanged radio boards with same results
|
|
|
Post by SDL on Oct 3, 2019 14:09:11 GMT -8
Delete those files in the static directory.
Try the git pull again.
I find it hard to believe that we have two bad MiniPro Arduinos or two bad LoRas.
How close are your LoRa radios? Move them so they are separated by about 5 feet. I wonder if we have an over modulation problem.
BP
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Oct 3, 2019 15:47:10 GMT -8
- OK, Git Pull updated fine after deleting those files.
- I don't have 2 Arduinos, only one with the remote WXLink group of sensors.
- LoRa radios are 8 feet apart, but the WXLink TX doesn't work (or at least doesn't blink) even if the RPi 3B+ is not turned on.
|
|
|
Post by SDL on Oct 6, 2019 16:09:50 GMT -8
Juanc,
The two arduinos I was referring to was your first one and then the replacement.
LoRa should be fine at 8 feet apart.
I think I need to send you a working Arduino Mini Pro and a working WXLink board. I have no idea what is going on here. Ours work and work very well. Please PM me your shipping address and then we will send you the pair.
BP
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Oct 7, 2019 6:04:41 GMT -8
Hi BP,
I will immediately send you my PM me your shipping address. Thanks!
BUT, I think that the problem must be that the 2 LoRas are bad.
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Oct 31, 2019 6:37:52 GMT -8
Hi John,
I received my boards this morning, much sooner than normal. I plugged everything together, updated/upgraded RPI and git pulled SkyWeather software. But when I run the test program I get the following message:
pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo python testWXLink.py Traceback (most recent call last): File "testWXLink.py", line 1, in <module> import readLoRa File "/home/pi/SDL_Pi_SkyWeather/readLoRa.py", line 26, in <module> if (config.SolarMAX_Type == "LEAD"): AttributeError: 'module' object has no attribute 'SolarMAX_Type' pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ Also, the yellow led on the Mini Pro blinks 3 times in sucession when I switch on the SunAirPlus board and after that, it stops blinking and doesn't blink every 30 seconds as I believe it should.
When I run the system test I get this message:
pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo pigpiod pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py (9.628800000000002, 4, 1) () ('Pi Camera Revision', u'ov5647') Traceback (most recent call last): File "SkyWeather.py", line 432, in <module> import readLoRa File "/home/pi/SDL_Pi_SkyWeather/readLoRa.py", line 26, in <module> if (config.SolarMAX_Type == "LEAD"): AttributeError: 'module' object has no attribute 'SolarMAX_Type' pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ What should I do now?
|
|
|
Post by SDL on Nov 2, 2019 9:07:43 GMT -8
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Nov 3, 2019 3:20:18 GMT -8
After fixing the conflocal.py file, I now get this output:
pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo python testWXLink.py ('HW-Version: ', 18) Starting readWXLink ('', '', '', '', '', '') Tick! The time is: 2019-11-03 07:30:27.398870 Starting readWXLink ([], [], '', '', [], []) Tick! The time is: 2019-11-03 07:30:32.409742 Starting readWXLink ([], [], '', '', [], []) Tick! The time is: 2019-11-03 07:30:37.411096 Starting readWXLink ([], [], '', '', [], []) Tick! The time is: 2019-11-03 07:30:42.420480 Starting readWXLink ([], [], '', '', [], []) Tick! The time is: 2019-11-03 07:30:47.426296 ^CTraceback (most recent call last): File "testWXLink.py", line 67, in <module> readLoRa.readRawWXLink() File "/home/pi/SDL_Pi_SkyWeather/readLoRa.py", line 295, in readRawWXLink if state.ll.waitRX(timeout=5): File "./pyRFM/lib/ll/ll_rfm9x.py", line 407, in waitRX time.sleep(0.01) KeyboardInterrupt pi@swtchdoclabs:~/SDL_Pi_SkyWeather $
It seems I am back to square one. This is very frustrating!
|
|
|
Post by SDL on Nov 3, 2019 7:19:54 GMT -8
Well, not quite. You are detecting the LoRa board. John emailed me and said he is dealing with you over the PM, but I will take it from here.
When this left the office, it worked. Something is different. Post a picture of your WXLink wiring. It could be a testWXLink.py bug too.
Let's get more debugging information too. Go into your conflocal.py file and set SWDEBUG to True and rerun the testWXLink.py program.
It looks to me that you are receiving data so let's start looking at differences.
BP
|
|