|
Post by geotek50 on May 22, 2022 8:08:29 GMT -8
Greetings: I purchase a Thunderboard Lightning Detector Kit. I loaded a legacy version of software on a Raspberry Pi 3B to the Lightning Detector. I loaded the SDL_PI_ThunderBoard_IOT- master software on the RPI 3B. I tried using both Thonny and Python 3 to run the "testThunderBoard.py and get error messages as shown in the attachments. I tried running most all of programs in the master file and found error messages, and none of th programs would run including the LCD tests. Getting frustrated and need some help in trying to get the Thunderboard software working at all. thanks Tom Attachments:

|
|
|
Post by SDL on May 25, 2022 19:45:03 GMT -8
It is Python2.7 software.
That's your main problem.
BP
|
|
|
Post by geotek50 on May 27, 2022 8:18:41 GMT -8
Yes , Iam using python 2.7
|
|
|
Post by SDL on May 27, 2022 9:10:33 GMT -8
OK. Let's verify a few things.
What OS version are you using? What version of the Pi are you using?
Type this and copy it to your reply:
python --version
What repository did you clone?
Do you have an order number so I can verify what you purchased?
BP
|
|
|
Post by geotek50 on May 27, 2022 13:36:50 GMT -8
Greetings:
I ordered the ThunderBoard Raspberry Pi kit My order number was 5524 I am using a Raspberry Pi 3B with Python 2.7 -I previously tried python3 --Using Thonny IDE\ The software I used was from the address shown below. I copied the files in that github listing to my Raspberry Pi and ran the Demo.py program. Iam not sure what I am doing wrong? Please help thanks Tom
shop.switchdoc.com/products/the-thunder-board-i2c-lightning-detector-grove-connectors
|
|
|
Post by SDL on May 29, 2022 12:59:37 GMT -8
|
|
|
Post by geotek50 on May 31, 2022 17:18:03 GMT -8
Greetings: I downloaded the software mentioned above in your last message. 1. I corrected errors and ran the demo.py and it displays: “Thunder board present at 0X02” “ Waiting for lightning - or at least something that looks like it” This message is displayed on the RPI display screen. So I assume the program is working but have tested for actual Lightning yet.
2. I rad the testLCD.py program The program runs and changes color and reads hello, and then going to sleep.
3. When I run the demo.py program above it does not display on the LCD screen that is connected to the Grove board.
4. I noticed that the demo.py program has no mention of LCD in the program.
5. Is there a program that displays the lightning results on the LCD screen.
Thanks in advance for you help. Tom
|
|
|
Post by SDL on Jun 3, 2022 7:36:01 GMT -8
H Tom, 1) That is a great indication that the Thunderbird is working. 2) Great. Your LCD is working. 3) Are you using the software from: github.com/switchdoclabs/SDL_Pi_ThunderBoard_IOT ? demo.py does not exist in that repository. It looks like from your errors you are running Python3. You must use Python2.7 to run this software.post the results from: "sudo python --version" We don't support using Thonny, so I'm not sure what is going on there, but it looks like a python3 problem again. Please read the product page and the README.md from the Thunderboard IOT package. The README.md also points you to a series of articles that will help your testing. BP
|
|
|
Post by geotek50 on Jun 3, 2022 12:53:05 GMT -8
Greetings
I believe I got the demo.py program from from the May 29 message but it doesn’t appear there now.
1. Using the demo.py program the LCD does not light up, but whe I do the LCD test the LCD lights up and works
2. I ran version, and my RPI is running puthon2.7.
3. So my relavvant question is: which program in the GitHub link you sent will test the Thderboard with the LCD displaying the lightning results?
4. Is there a program that sends lightning data over the Internet. Is there a link to how that works/setup instructions? Thanks Tom
|
|
|
Post by SDL on Jun 3, 2022 13:40:07 GMT -8
|
|
|
Post by SDL on Jun 3, 2022 13:40:45 GMT -8
You may have problems with pubnub. They have changed the way things work. Comment it out if you have trouble.
BP
|
|
|
Post by geotek50 on Jun 3, 2022 15:59:40 GMT -8
Greetings BP
I have a few more questions before I dig in again!
1. It appears that test Thunderboard.py detects lightning but does not display on the LCD screen — is this correct?
2. Does the ThunderBoardIOT.py program display on the LCD screen?
3. If I use the ThunderBoardIOT.py program, and PUBNub doesn’t work — where can I send the lightning data and how // where can I remotely display the lightning data? In other words how can use ThunderBoardIOT to remotely display lightning data- do I have use another program instead of Pub Nub?
************************************************************************************************************************************************************************* Additional Question I am trying to correct formatting and syntax errors in the ThunderBoardIOT.py program and I get the following error messages in Thonny pyton2.7
Traceback (most recent call last): File "/home/pi/Thunder_IOT/SDL_Pi_ThunderBoard_IOT-master/ThunderBoardIOT.py", line 61, in <module> import apscheduler.events File "/usr/lib/python3/dist-packages/thonny/backend.py", line 305, in _custom_import module = self._original_import(*args, **kw) ModuleNotFoundError: No module named 'apscheduler'
Thanks Tom
|
|
|
Post by SDL on Jun 4, 2022 11:09:03 GMT -8
1) Correct. Look at the code.
2) Yes
3) You will have to set up your own. Pubnub isn't accepting free data anymore.
4) You don't have apscheduler installed
BP
|
|
|
Post by geotek50 on Jun 4, 2022 14:12:30 GMT -8
Greetings BP
Can you suggest another program to use instead of PUBNub?
You mentioned that I don”t have apschedular installed.
Where does itt reside? How do I find it? How does it get installed? Where does it get installed?
Thanks Tom/ Geotek50
|
|
|
Post by SDL on Jun 7, 2022 10:22:07 GMT -8
Tom, Please read the README.md file in the IOT software directory. I've reproduced part of it below: README.md SwitchDoc Labs November, 2017
ThunderBoard IOT Code by SwitchDoc Labs
Version Pi003 December 2, 2017 - Initial Release
To install:
Make sure you installed I2C as in this link:
learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c
Installing apscheduler
sudo apt-get install python-pip sudo pip install setuptools --upgrade sudo pip install apscheduler
Installing PubNub
sudo pip install pubnub------- I'd look at adafruit.io or thingspeak to replace pubnub. We are not planning on replacing pubnub in this software. BP
|
|