toninotarsi / swpi Goto Github PK
View Code? Open in Web Editor NEWSint Wind PI - A Meteo Station software for Raspberry PI. Capability : telephone answering, webcams,digital cameras, web ...
Home Page: www.vololiberomontecucco.it
License: Other
Sint Wind PI - A Meteo Station software for Raspberry PI. Capability : telephone answering, webcams,digital cameras, web ...
Home Page: www.vololiberomontecucco.it
License: Other
Your checksumCalc variable can overflow. You need to mask it with 0x0f otherwise the checksum comparison will fail eventhough it matches.
unsigned int checksumCalc = 0;
checksumCalc += (winddir & 0x0f);
checksumCalc += ((windspeed >> 8) & 0x0f);
checksumCalc += ((windspeed >> 4) & 0x0f);
checksumCalc += (windspeed & 0x0f);
You need to add:
checksumCalc &= 0x0f;
Correggere TTLib.py per un corretto aggiornamento dati "umidità" e pioggia in APRS; le correzioni da apportare sono:
if (globalvars.meteo_data.hum_out != None):
rh = float(globalvars.meteo_data.hum_out / 100 )
if rh >= 0.995:
humid_str = "h00"
else:
humid_str = "h" + "%02.0f" % (globalvars.meteo_data.hum_out)
send += humid_str
if (globalvars.meteo_data.rain_rate_1h != None):
rain_hr_hundredth_inches = float(globalvars.meteo_data.rain_rate_1h * 3.9370078)
rain_hr_str = "r" + "%03d" % rain_hr_hundredth_inches
send += rain_hr_str
# rain last 24 hours -- each count is 0.0204"
# so the math accidentally scales perfect -- report in hundreths of inches
if (globalvars.meteo_data.rain_rate_24h != None) :
rain_24_hrs_hundredth_inches = float(globalvars.meteo_data.rain_rate_24h * 3.9370078)
rain_24_hrs_str = "p" + "%03d" % rain_24_hrs_hundredth_inches
send += rain_24_hrs_str
if (globalvars.meteo_data.rain_rate != None ) :
rain_today_hundredth_inches = float(globalvars.meteo_data.rain_rate * 3.9370078)
rain_midnight_str = "P" + "%03d" % rain_today_hundredth_inches
send += rain_midnight_str
Hello,
I connect a TX23 Wind Sensor to Raspberry (latest Rasbian) and use your code to get data.
Next to the Sensor I placed a small Fan to get stable wind speed and fixed the direction sensor to
have always the same value for testing.
When i try to use ./readTX23 -v i get data like followed (try differend times over a time of lets say 10 minutes?)
Bit Length: 1225 uSec
Start frame: 27
Wind Direction: W (12)
Wind Direction2: W (12)
Wind Speed: 7
Wind Speed2: 7
Checksum (received): 3
Checksum (calculated): 19
Bit Length: 1225 uSec
Start frame: 27
Wind Direction: W (12)
Wind Direction2: W (12)
Wind Speed: 8
Wind Speed2: 8
Checksum (received): 4
Checksum (calculated): 20
Bit Length: 1225 uSec
Start frame: 27
Wind Direction: W (12)
Wind Direction2: W (12)
Wind Speed: 9
Wind Speed2: 9
Checksum (received): 5
Checksum (calculated): 21
Bit Length: 1225 uSec
Start frame: 27
Wind Direction: W (12)
Wind Direction2: W (12)
Wind Speed: 9
Wind Speed2: 9
Checksum (received): 5
Checksum (calculated): 21
Bit Length: 1225 uSec
Start frame: 27
Wind Direction: W (12)
Wind Direction2: W (12)
Wind Speed: 9
Wind Speed2: 9
Checksum (received): 5
Checksum (calculated): 21
First of all whats the messure of wind speed?
If it is m/s why it is an integer?
Why i get always the same discalculated checksum?
I overclock my raspberry I don't know if it is a problem for this code (e.g. the timer)?
I'am an bloody beginer @hardware codeing.
I also ask the author of source code but he didn't answer so I hope you can please help me.
Thanks a lot.
Hi Tonino,
thanks for making this huge program available.
i want to use this program with my La Crosse TX-23U device.
i am getting this error message after runnning:
sudo python swpi.py
File "/home/pi/swpi-master/TTLib.py", line 15, in
import Image
ImportError: No module named Image
where is Image.py located ???
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.