|
Post by cbluto on Mar 10, 2021 8:26:03 GMT -8
Can anybody help me I am trying to send the data over a USB cell dongle instead of wifi. The weather station is installed in a location without any service so I am forced to use a cell modem. When running the program with no wifi I get a very long error message (attached). So can anybody point me in the right direction to send the data over the USB cell dongle. Thanks BTW the cell dongle in at usb0 Attachments:error.txt (3.62 KB)
|
|
|
Post by SDL on Mar 10, 2021 8:44:54 GMT -8
What is the exact cell dongle you are using and the model of the Raspberry Pi? Are you under Buster?
BP
|
|
Sopwith
Junior Member
"If it works out of the box - what fun is that?"
Posts: 69
Raspberry Pi: Yes
Other Device: Pico Pi
|
Post by Sopwith on Mar 10, 2021 9:16:07 GMT -8
Based on the traceback, it looks like the requests module threw an exception because it cannot connect to an endpoint. This probably means your cell dongle is not configured correctly or cannot connect to the Internet.
I suggest you write a small python program or use a utility your dongle provider has to test the unit and make sure it is configured correctly. Please post here the details about the dongle and the Pi setup you are using.
Sopwith
|
|
|
Post by cbluto on Mar 10, 2021 9:47:59 GMT -8
It is a ZTE MF833V Unlocked 4G LTE USB Modem Cell service is from hologram.io with T Mobile Raspberry Pi 4 The SD card was purchased from SwitchDoc, preprogrammed.
If I run ifconfig the modem shows up under usb0. When testing it here (it is not installed in the final location yet) and with the wifi set up on a local network (So I could run SSH and test the SkyWeather2) on the RPi I quickly ran up over 20MB of data on the cell modem. So I disconnected the wifi.
|
|
Sopwith
Junior Member
"If it works out of the box - what fun is that?"
Posts: 69
Raspberry Pi: Yes
Other Device: Pico Pi
|
Post by Sopwith on Mar 10, 2021 10:04:58 GMT -8
Thanks for posting the details. I suspect SkyWeather code needs to be changed to talk to your USB modem and not the Pi WiFi adapter. I will look at the code and let you know what I can find, but I defer to the SDL folks for the best guidance here.
Sopwith
|
|
|
Post by cbluto on Mar 10, 2021 10:41:52 GMT -8
Also, I don't know if it makes a difference but I get no internet access with the LTE MF833
|
|
Sopwith
Junior Member
"If it works out of the box - what fun is that?"
Posts: 69
Raspberry Pi: Yes
Other Device: Pico Pi
|
Post by Sopwith on Mar 10, 2021 12:59:42 GMT -8
I looked at the code where the requests module is used to GET or POST data. Based on what I can see, there is an assumption the SkyWeather2 Pi can connect to the Internet. Data is sent to Blynk, WeatherStem, and WeatherUnderground depending on your configuration.
If the requests module cannot connect to these endpoints, it will throw an exception as you experienced.
I suggest you focus on getting an Internet connection working with your SB dongle. When you do, SkyWeather should work fine.
Sopwith
|
|
|
Post by SDL on Mar 11, 2021 16:37:45 GMT -8
Sopwith is 100% correct. Get your cellular card working with a browser and everything will follow from that.
BP
|
|
|
Post by cbluto on Mar 24, 2021 11:09:34 GMT -8
I have it working over cell. I used a SIM7600-H LTE HAT on the Raspberry Pi for the wireless. The simm card is from Telnyx, from what I found they were fairly cheap at $.01/MB. They also have a good tutorial on the setup at developers.telnyx.com/docs/v2/wireless/tutorials/sim7600. It works fine, however the only issue I have is that uplink data is .6 MB and downlink data is 1 MB for a total of 1.6 MB. First I do not know what the downlink data is, can anybody help me with that? At $.01/MB this might now seem like alot but at 10 minute increments it works out to $2.30/day or $70/month. So I had to cut back to 30 minute increments, which is $23/month. I don't have an issue with 30 minute increments I understand it is one of the trade offs with using cell service. I am just trying to figure out what the 1 MB downlink data is. If I turn off the SkyWeather program all data is 0.
|
|
|
Post by SDL on Mar 24, 2021 11:26:29 GMT -8
The downlink data is the reply from weatherstem acknowledging your data. It seems to be a pretty high number however. Run it under debug and see what you are getting back.
BP
|
|