prime4567 / esp8266-wx Goto Github PK
View Code? Open in Web Editor NEWWeather station using BME280 and ESP8266
Weather station using BME280 and ESP8266
Add the new function SerialOutput below
void SerialTransmit(WiFiClient myclient, float h, float f, float p) {
Serial.print(STATION_ID);
Serial.print(">APRS,TCPIP*:@");
if (day() < 10) {
Serial.print("0");
}
Serial.print(day());
if (hour() < 10) {
Serial.print("0");
}
Serial.print(hour());
if (minute() < 10) {
Serial.print("0");
}
Serial.print(minute());
Serial.print("z");
Serial.print(STATION_LAT);
Serial.print("/");
Serial.print(STATION_LONG);
Serial.print("_");
Serial.print("..."); // Wind Direction from True North
Serial.print("/");
Serial.print("..."); // Wind speed in mph
Serial.print("g");
Serial.print("..."); // Wind Gust
Serial.print("t");
if (f<10) {
Serial.print("00");
} else if (f<100) {
Serial.print("0");
}
Serial.print(round(f)); // Temperature in Farenheit
Serial.print("r");
Serial.print("..."); // Rain in hundred of inch in last 1 hour
Serial.print("p");
Serial.print("..."); // Rain in hundred of inch in last 24 hour
Serial.print("P");
Serial.print("..."); // Rain in hundred of inch since midnight
Serial.print("b");
if (p<100000) {
Serial.print("0");
}
Serial.print(round(p/10)); // Pressure in tenths of milibar
Serial.print("h");
Serial.print(round(h)); // Humidity in Percentage
Serial.print("\n");
}
Harap ditambahkan format koordinat di keterangan program:
#define STATION_LAT "0123.45S" // Lattitude position of Station in DDMM.SS
#define STATION_LONG "11145.12E" // Longitude position of Station in DDDMM.SS
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.