├── weewx ├── empty └── ecowitt.py ├── images ├── empty ├── ecowitt_plugin1.png ├── ecowitt_plugin2.png ├── ecowitt_plugin3.png ├── ecowitt_block_modules1.png ├── ecowitt_block_modules2.png ├── ecowitt_block_modules3.png ├── ecowitt_block_airquality1.png └── ecowitt_block_airquality2.png ├── Meteotemplate ├── plugins │ └── ecowitt │ │ ├── ecowittVersion.txt │ │ ├── download.php │ │ ├── saveSettings.php │ │ ├── setup.php │ │ └── report │ │ └── index.php └── update │ ├── saveAPISettings.php │ └── apiSetup.php ├── weewx-ecowitt-1.2.tgz ├── meteotemplate-ecowitt-2.1.zip ├── Meteotemplate_block_lightningew_2.0.zip ├── Meteotemplate_block_ecowittModules_1.0.zip ├── Meteotemplate_block_airQualityEcowitt_1.1.zip ├── Meteotemplate_Altervista ├── README.txt └── index.php ├── post_ecowitt.sh ├── README.md └── index.php /weewx/empty: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /images/empty: -------------------------------------------------------------------------------- 1 | empty 2 | -------------------------------------------------------------------------------- /Meteotemplate/plugins/ecowitt/ecowittVersion.txt: -------------------------------------------------------------------------------- 1 | 2.1 2 | -------------------------------------------------------------------------------- /weewx-ecowitt-1.2.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iz0qwm/ecowitt_http_gateway/HEAD/weewx-ecowitt-1.2.tgz -------------------------------------------------------------------------------- /images/ecowitt_plugin1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iz0qwm/ecowitt_http_gateway/HEAD/images/ecowitt_plugin1.png -------------------------------------------------------------------------------- /images/ecowitt_plugin2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iz0qwm/ecowitt_http_gateway/HEAD/images/ecowitt_plugin2.png -------------------------------------------------------------------------------- /images/ecowitt_plugin3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iz0qwm/ecowitt_http_gateway/HEAD/images/ecowitt_plugin3.png -------------------------------------------------------------------------------- /meteotemplate-ecowitt-2.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iz0qwm/ecowitt_http_gateway/HEAD/meteotemplate-ecowitt-2.1.zip -------------------------------------------------------------------------------- /images/ecowitt_block_modules1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iz0qwm/ecowitt_http_gateway/HEAD/images/ecowitt_block_modules1.png -------------------------------------------------------------------------------- /images/ecowitt_block_modules2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iz0qwm/ecowitt_http_gateway/HEAD/images/ecowitt_block_modules2.png -------------------------------------------------------------------------------- /images/ecowitt_block_modules3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iz0qwm/ecowitt_http_gateway/HEAD/images/ecowitt_block_modules3.png -------------------------------------------------------------------------------- /images/ecowitt_block_airquality1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iz0qwm/ecowitt_http_gateway/HEAD/images/ecowitt_block_airquality1.png -------------------------------------------------------------------------------- /images/ecowitt_block_airquality2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iz0qwm/ecowitt_http_gateway/HEAD/images/ecowitt_block_airquality2.png -------------------------------------------------------------------------------- /Meteotemplate_block_lightningew_2.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iz0qwm/ecowitt_http_gateway/HEAD/Meteotemplate_block_lightningew_2.0.zip -------------------------------------------------------------------------------- /Meteotemplate_block_ecowittModules_1.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iz0qwm/ecowitt_http_gateway/HEAD/Meteotemplate_block_ecowittModules_1.0.zip -------------------------------------------------------------------------------- /Meteotemplate_block_airQualityEcowitt_1.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iz0qwm/ecowitt_http_gateway/HEAD/Meteotemplate_block_airQualityEcowitt_1.1.zip -------------------------------------------------------------------------------- /Meteotemplate/plugins/ecowitt/download.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Meteotemplate_Altervista/README.txt: -------------------------------------------------------------------------------- 1 | If your Meteotemplate web is hosted on Altervista, you need to change the /report/index.php file with this one, due to restrictions on 2 | file_get_contents on Altervista. 3 | 4 | You also need to remove the whitelist restrictions: 5 | 6 | Go on the control panel of Altervista. 7 | Click on menù RESOURCES 8 | Look for the PHP panel 9 | Click on "Modify PHP settings" 10 | Move down the page until you find "Server to Server Connections" 11 | Put your mobilephone number in the form and follow the procedure with the SMS 12 | Click on the "Externa connection without restrictions" 13 | Clikc on Save 14 | -------------------------------------------------------------------------------- /post_ecowitt.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Script to test the ecowitt_http_gateway 3 | curl -d "PASSKEY=0BA6979558C5D2ADB6B20F4B23A685AF&stationtype=GW1000_V1.4.7&dateutc=2019-05-28+07:33:48&tempinf=79.7&humidityin=76&baromrelin=29.719&baromabsin=29.719&tempf=79.3&humidity=70&winddir=277&windspeedmph=0.00&windgustmph=0.00&maxdailygust=0.00&solarradiation=0.00&uv=0&rainratein=0.000&eventrainin=0.000&hourlyrainin=0.000&dailyrainin=0.000&weeklyrainin=0.000&monthlyrainin=0.059&yearlyrainin=6.803&totalrainin=6.803&temp1f=78.44&humidity1=74&temp2f=82.04&humidity2=70&temp4f=82.94&humidity4=66&soilmoisture2=0&soilmoisture3=0&soilmoisture4=8&soilmoisture5=0&wh65batt=1&wh68batt=1.50&wh40batt=1.6&wh26batt=0&batt1=0&batt2=0&batt4=0&batt6=0&Siolbatt1=0.0&Siolbatt2=1.5&Siolbatt3=1.5&Siolbatt4=1.5&Siolbatt5=1.5&Siolbatt6=0.0&Siolbatt7=0.0&Siolbatt8=0.0&pm25batt1=0&pm25batt2=0&pm25batt3=0&pm25batt4=0&Freq=433M&model=GW1000" -X POST http://192.168.2.205/data/report/ 4 | -------------------------------------------------------------------------------- /Meteotemplate/plugins/ecowitt/saveSettings.php: -------------------------------------------------------------------------------- 1 | $variableValue){ 17 | $variables[] = array($variableName,$variableValue); 18 | } 19 | 20 | 21 | // Create file 22 | $string = "".PHP_EOL; 43 | 44 | // save settings file 45 | file_put_contents("settings.php",$string); 46 | 47 | // check file exists 48 | if(!file_exists("settings.php")){ 49 | echo ""; 50 | } 51 | else{ 52 | print ""; 53 | } 54 | ?> -------------------------------------------------------------------------------- /Meteotemplate/plugins/ecowitt/setup.php: -------------------------------------------------------------------------------- 1 | 35 | 36 | 44 | 45 | 46 | 47 |
48 || Log files (click on to download) | 159 |Command | 160 |".$file." | "; 169 | echo "delete | "; 170 | echo ""; 171 | } 172 | 173 | ?> 174 |
76 | [Station] 77 | station_type = ecowitt 78 | 79 |80 | Check the automatic addition at the end of weewx.conf:
82 | 83 | [ecowitt] 84 | poll_interval = 65 # number of seconds, just a little more than the GW1000 update time 85 | path = /var/log/ecowitt/weewx.txt # location of data file generated by ecowitt_http_gateway used in mode=normal 86 | driver = weewx.drivers.ecowitt 87 | mode = normal # normal = use with ecowitt_http_gateway - server = directly connected to GW1000 88 | address = 192.168.2.185 # IP address of the PC where weewx is running in mode=server, to which GW1000 will connect to 89 | port = 9999 # port to which GW1000 will connect to in mode=server 90 | 91 |92 | 93 | Restart weewx
95 | 96 | sudo /etc/init.d/weewx stop 97 | sudo /etc/init.d/weewx start 98 | 99 |100 | ## Manual installation 101 | To use this driver, put the ecowitt.py file in the weewx drivers directory (i.e. /usr/share/weewx/weewx/drivers ), then make
105 | [Station] 106 | station_type = ecowitt 107 | [ecowitt] 108 | poll_interval = 65 # number of seconds, just a little more than the GW1000 update time 109 | path = /var/log/ecowitt/weewx.txt # location of data file generated by ecowitt_http_gateway 110 | driver = weewx.drivers.ecowitt 111 | mode = normal # normal = use with ecowitt_http_gateway - server = directly connected to GW1000 112 | address = 192.168.2.185 # IP address of the PC where weewx is running in mode=server, to which GW1000 will connect to 113 | port = 9999 # port to which GW1000 will connect to in mode=server 114 | 115 |116 | 117 | In the weewx.conf or skinf.conf use the following Labels 118 |
119 | [Labels] 120 | [[Generic]] 121 | # Sensor status indicators 122 | txBatteryStatus = WH51-Soil 123 | windBatteryStatus = WS80-Temp/Wind 124 | rainBatteryStatus = WH40-Rain 125 | outTempBatteryStatus = WH31_1-Temp/Hum 126 | inTempBatteryStatus = Inside Temperature 127 | consBatteryVoltage = WS80-Temp/Wind 128 | heatingVoltage = WH51-Soil 129 | supplyVoltage = WH40-Rain 130 |131 | NOTE
Depending on which sensors you have and which software/update type you use, there might be more parameters available in the API file than what is included in the main alldata table.
139 |This page allows you to set up an extra table in the database which will log the additional parameters. It is therefore necessary to first set up the normal database updates. This will create the API file with the current conditions with all the available parameters sent by whichever update type you use (Weather Display, Meteobridge, WeeWx, WeatherCat, NetAtmo, BloomSky, WeatherLink etc.).
140 |
Below is list of all the variables found in this file (these are available for you right now) and their current values. If in the future additional data is available, you should see it here and you can add new columns to the table. Only enable those which have sensible values. Also note! The values are shown in the default API units (degrees C, mm, hPa etc.), this is how they will be saved in the extra table, however, on the page you will see the numbers in whatever "display units" you or the user specifies.
141 || 154 | Parameter 155 | | 156 |157 | Current value 158 | | 159 |160 | 161 | | 162 |||
|---|---|---|---|---|
| 165 | Air temperature 166 | | 167 | 170 |171 | °C 172 | | 173 |174 | included in main template table 175 | | 176 | 180 |181 | Not available 182 | | 183 | 186 ||
| 189 | Air humidity 190 | | 191 | 194 |195 | % 196 | | 197 |198 | included in main template table 199 | | 200 | 204 |205 | Not available 206 | | 207 | 210 ||
| 213 | Sea-level adjusted pressure 214 | | 215 | 218 |219 | hPa 220 | | 221 |222 | included in main template table 223 | | 224 | 228 |229 | Not available 230 | | 231 | 234 ||
| 237 | Wind speed 238 | | 239 | 242 |243 | km/h 244 | | 245 |246 | included in main template table 247 | | 248 | 252 |253 | Not available 254 | | 255 | 258 ||
| 261 | Wind gust 262 | | 263 | 266 |267 | km/h 268 | | 269 |270 | included in main template table 271 | | 272 | 276 |277 | Not available 278 | | 279 | 282 ||
| 285 | Wind direction 286 | | 287 | 290 |291 | ° 292 | | 293 |294 | included in main template table 295 | | 296 | 300 |301 | Not available 302 | | 303 | 306 ||
| 309 | Daily rain 310 | | 311 | 314 |315 | mm 316 | | 317 |318 | included in main template table 319 | | 320 | 324 |325 | Not available 326 | | 327 | 330 ||
| 333 | Rain rate 334 | | 335 | 338 |339 | mm/h 340 | | 341 |342 | included in main template table 343 | | 344 | 348 |349 | Not available 350 | | 351 | 354 ||
| 357 | Solar radiation 358 | | 359 | 362 |363 | W2 364 | | 365 |366 | included in main template table 367 | | 368 | 372 |373 | Not available 374 | | 375 | 378 ||
| 381 | Dew point 382 | | 383 | 386 |387 | °C 388 | | 389 |390 | included in main template table 391 | | 392 | 396 |397 | Not available 398 | | 399 | 402 ||
| 405 | Apparent temperature 406 | | 407 | 410 |411 | °C 412 | | 413 |414 | included in main template table 415 | | 416 | 420 |421 | Not available 422 | | 423 | 426 ||
| 429 | Indoor temperature 430 | | 431 | 434 |435 | °C 436 | | 437 |438 | 446 | | 447 | 451 |452 | Not available 453 | 454 | | 455 | 458 ||
| 461 | Indoor humidity 462 | | 463 | 466 |467 | % 468 | | 469 |470 | 478 | | 479 | 483 |484 | Not available 485 | 486 | | 487 | 490 ||
| 493 | UV 494 | | 495 | 498 |499 | 500 | | 501 |502 | 510 | | 511 | 515 |516 | Not available 517 | 518 | | 519 | 522 ||
| 528 | Extra temperature sensor 529 | | 530 | 533 |534 | °C 535 | | 536 |537 | 545 | | 546 | 550 |551 | Not available 552 | 553 | | 554 | 557 ||
| 566 | Extra humidity sensor 567 | | 568 | 571 |572 | % 573 | | 574 |575 | 583 | | 584 | 588 |589 | Not available 590 | 591 | | 592 | 595 ||
| 604 | Soil temperature 605 | | 606 | 609 |610 | °C 611 | | 612 |613 | 621 | | 622 | 626 |627 | Not available 628 | 629 | | 630 | 633 ||
| 642 | Soil moisture 643 | | 644 | 647 |648 | 649 | | 650 |651 | 659 | | 660 | 664 |665 | Not available 666 | 667 | | 668 | 671 ||
| 680 | Leaf wetness 681 | | 682 | 685 |686 | 687 | | 688 |689 | 697 | | 698 | 702 |703 | Not available 704 | 705 | | 706 | 709 ||
| 718 | Leaf temperature 719 | | 720 | 723 |724 | °C 725 | | 726 |727 | 735 | | 736 | 740 |741 | Not available 742 | 743 | | 744 | 747 ||
| 753 | Snowfall 754 | | 755 | 758 |759 | mm 760 | | 761 |762 | 770 | | 771 | 775 |776 | Not available 777 | 778 | | 779 | 782 ||
| 785 | Snow depth 786 | | 787 | 790 |791 | mm 792 | | 793 |794 | 802 | | 803 | 807 |808 | Not available 809 | 810 | | 811 | 814 ||
| 817 | Noise level 818 | | 819 | 822 |823 | dB 824 | | 825 |826 | 834 | | 835 | 839 |840 | Not available 841 | 842 | | 843 | 846 ||
| 849 | Ligthning 850 | | 851 | 854 |855 | 856 | | 857 |858 | 866 | | 867 | 871 |872 | Not available 873 | 874 | | 875 | 878 ||
| 881 | Ligthning distance 882 | | 883 | 886 |887 | 888 | | 889 |890 | 898 | | 899 | 903 |904 | Not available 905 | 906 | | 907 | 910 ||
| 913 | Ligthning time 914 | | 915 | 918 |919 | 920 | | 921 |922 | 930 | | 931 | 935 |936 | Not available 937 | 938 | | 939 | 942 ||
| 945 | Sunshine 946 | | 947 | 950 |951 | hours 952 | | 953 |954 | 962 | | 963 | 967 |968 | Not available 969 | 970 | | 971 | 974 ||
| 980 | CO2 sensor 981 | | 982 | 985 |986 | ppm 987 | | 988 |989 | 997 | | 998 | 1002 |1003 | Not available 1004 | 1005 | | 1006 | 1009 ||
| 1018 | NO2 sensor 1019 | | 1020 | 1023 |1024 | ppm 1025 | | 1026 |1027 | 1035 | | 1036 | 1040 |1041 | Not available 1042 | 1043 | | 1044 | 1047 ||
| 1056 | CO sensor 1057 | | 1058 | 1061 |1062 | ppm 1063 | | 1064 |1065 | 1073 | | 1074 | 1078 |1079 | Not available 1080 | 1081 | | 1082 | 1085 ||
| 1094 | SO2 sensor 1095 | | 1096 | 1099 |1100 | ppb 1101 | | 1102 |1103 | 1111 | | 1112 | 1116 |1117 | Not available 1118 | 1119 | | 1120 | 1123 ||
| 1132 | Ozone sensor 1133 | | 1134 | 1137 |1138 | ppb 1139 | | 1140 |1141 | 1149 | | 1150 | 1154 |1155 | Not available 1156 | 1157 | | 1158 | 1161 ||
| 1170 | Particulate pollution 1171 | | 1172 | 1175 |1176 | ug/m3 1177 | | 1178 |1179 | 1187 | | 1188 | 1192 |1193 | Not available 1194 | 1195 | | 1196 | 1199 ||