Skip to content

Receiver of information sent by WindSpots weather stations

License

Notifications You must be signed in to change notification settings

dducret/WindSpots-Station

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WindSpots-Station

Receiver of information sent by WindSpots weather stations

At boot, the weather station send:

Each minute, when the weather station is up, the weather station send:

POST data:

station			Station ID			6 Characters
date			Station time and date  		14 Charaters PHP "YmdHis"
data		Array
	stationtime	Station Time HoursMinutesSeconds
	direction	Wind Direction in °
	speed		Wind Speed in knts
	averagespeed	Wind Average Speed in knts
	temperature	Temperature in °C
	barometer	Barometer in hpa
	battery		Battery level (only Solar)
	name		Station Name
	imageage	Image Age in seconds

Datas ares stored in windspots MariaDB database

	Table forecast
		id		int(11)		AUTO_INCREMENT
		station_name	varchar(6)
		reference_time	datetime
		speed		varchar(11)
		direction	varchar(11)
	Table sensor
 		id		int(11)
	 	station_name	varchar(6)
 		sensor_name	varchar(10)
	 	channel		tinyint(2)
	Table sensor_data 
	 	id		int(11)		AUTO_INCREMENT
 		sensor_id	int(11)
	 	sensor_time	datetime
 		battery	varchar(5)
	 	temperature	float
 		humidity	smallint(5)
	 	barometer	smallint(5)
 		direction	smallint(5)
	 	speed		float
 		average	float
	 	gust		float
 		uv		varchar(2)
	 	rain_rate	smallint(5)
		rain_total	smallint(5)
		ten		tinyint(1)
	Table station
		station_name	varchar(6)
		display_name	varchar(255)
		short_name	varchar(80)
	 	ms_name		varchar(8)
 		information	varchar(255)
		altitude	int(5)
		latitude	double
		longitude	double
		spot_type	tinyint(4)
		wind_id		smallint(5)
		barometer_id	smallint(5)
		temperature_id	smallint(5)
		water_id	smallint(5)
		online		tinyint(1)
		maintenance	tinyint(1)
		reason		varchar(255)
	 	GMT		tinyint(2)
		data_time	datetime
		image_time	datetime

Spot Type:

 
 1 = KITE,
 2 = WINDSURF,
 4 = PADDLE,
 8 = PARAGLIDE,
 16 = SWIMMING

station Images are stored in tmp folder

About

Receiver of information sent by WindSpots weather stations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published