Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== WeeWx Installation==== In first it's necessary make update and upgrade: <code bash> sudo apt-get update && sudo apt-get -y upgrade </code> # Need packages : <code bash> sudo apt-get install python-configobj sudo apt-get install python-cheetah sudo apt-get install python-imaging </code> # Need package only if you use serial port or USB: <code bash> sudo apt-get install python-serial sudo apt-get install python-usb </code> # Need package only if you use MySQL: <code bash> sudo apt-get install mysql-client sudo apt-get install python-mysqldb </code> # Need package only if you use FTP: <code bash> sudo apt-get install ftp </code> Write every line begin with sudo or write only a line like this: <code bash> sudo apt-get install python-configobj python-cheetah python-imaging python-serial python-usb </code> Download Weexw file, to obtain good number version go to [[http://weewx.com/downloads/|download page]] write: <code bash> sudo wget weewx.com/downloads/weewx-X.Y.Z.tar.gz </code> We will decompress the file (replace version number weewx-X.Y.Z by curent version ) Following lines are with the version of May-09-2016 <code bash> sudo tar xvfz weewx-3.5.0.tar.gz </code> go to directory and decompress: <code bash> cd weewx-3.5.0 </code> Install software <code bash> ./setup.py build </code> and <code bash> sudo ./setup.py install </code> Answer the questions: description: Station météo WS1080 altitude: 315, meter latitude: (valeur en decimal) longitude: (valeur en decimal) units [metric]: faire entrée Installed drivers include: 0) AcuRite (weewx.drivers.acurite) 1) CC3000 (weewx.drivers.cc3000) 2) FineOffsetUSB (weewx.drivers.fousb) 3) Simulator (weewx.drivers.simulator) 4) TE923 (weewx.drivers.te923) 5) Ultimeter (weewx.drivers.ultimeter) 6) Vantage (weewx.drivers.vantage) 7) WMR100 (weewx.drivers.wmr100) 8) WMR200 (weewx.drivers.wmr200) 9) WMR9x8 (weewx.drivers.wmr9x8) 10) WS1 (weewx.drivers.ws1) 11) WS23xx (weewx.drivers.ws23xx) 12) WS28xx (weewx.drivers.ws28xx) choose a driver: 2 (for me) weather station is Conrad WS1080 All parameter are entered For launch configuration: <code bash> /home/weewx/bin/wee_config --reconfigure --driver=weewx.drivers.vantage </code> Edit conf file: <code bash> sudo nano /home/pi/weewx-3.5.0/weewx.conf </code> change model if you need <code bash> # The station model, e.g., WH1080, WS1090, WS2080, WH3081 model = WS1080 </code> Change the target_unit <code bash> target_unit = METRIC </code> **CTRL X** to Quit Software is installed to verify if your weather station answer write the followed command: <code bash> sudo /home/pi/weewx-3.5.0/bin/wee_device </code> Editer wee_device to remove header lines. <code bash> sudo nano /home/pi/weewx-3.5.0/bin/wee_device </code> add # before followed lines <code bash> # print 'Using configuration file %s' % config_fn </code> and <code bash> # print 'Using %s driver version %s (%s)' % ( # driver_name, driver_vers, driver) </code> This command give live data weather report <code bash> sudo /home/pi/weewx-3.5.0/bin/wee_device --current </code> ==== Modification of Logic.tcl ==== Edit Logic.tcl and add following lines: <code bash> sudo nano /usr/share/svxlink/events.d/local/Logic.tcl </code> <code bash> #SEND DTMF CODE 25# #WEATHER STATION WITH WEEWX if {$cmd == "25"} { #ASK DATA playMsg "SVXCard/Weatherstation" "weatherinfo" set runcmd [exec /home/pi/weewx-3.5.0/bin/wee_device --current]; #ask weather datas set splitip [split $runcmd ,] lassign $splitip status delay outTempBatteryStatus outTemp outHumidity UV radiation rain dateTime windDir pressure windSpeed inHum$ #puts $status #puts $delay #puts $outTempBatteryStatus #TEMPERATURE OUT puts $outTemp set outTemp [lindex $outTemp 1] if {$outTemp != "None"} { set outTemp [format {%0.1f} [expr $outTemp]] playMsg "SVXCard/Weatherstation" "tempext"; playTemp $outTemp; } else { puts "Temperature exterieur non disponible" playMsg "SVXCard/Weatherstation" "tempext"; playMsg "SVXCard/Weatherstation" "noavailable"; } #HUMIDITY OUT puts $outHumidity set outHumidity [lindex $outHumidity 1] if {$outHumidity != "None"} { playMsg "SVXCard/Weatherstation" "humidityout"; playNumber $outHumidity; playMsg "Default" "percent"; } else { puts "Humidité exterieur non disponible" playMsg "SVXCard/Weatherstation" "humidityext"; playMsg "SVXCard/Weatherstation" "noavailable"; } #puts $UV #puts $radiation puts $rain #puts $dateTime #WIND DIRECTION puts $windDir set windDir [lindex $windDir 1] playMsg "SVXCard/Weatherstation" "winddir"; playWindDir $windDir #WINDSPEED puts $windSpeed set windSpeed [lindex $windSpeed 1] if {$windSpeed != "None"} { playMsg "SVXCard/Weatherstation" "windspeed"; set windSpeed [format {%0.1f} [expr $windSpeed]] playNumber $windSpeed; playMsg "SVXCard/Weatherstation" "kmh"; } else { puts "Wind speed not available" } #PRESSURE puts $pressure set pressure [lindex $pressure 1] HUMIDITY OUT puts $outHumidity set outHumidity [lindex $outHumidity 1] if {$outHumidity != "None"} { playMsg "SVXCard/Weatherstation" "humidityout"; playNumber $outHumidity; playMsg "Default" "percent"; } else { puts "Humidity exterior not available" playMsg "SVXCard/Weatherstation" "humidityext"; playMsg "SVXCard/Weatherstation" "noavailable"; } #puts $UV #puts $radiation puts $rain #puts $dateTime #WIND DIRECTION puts $windDir set windDir [lindex $windDir 1] playMsg "SVXCard/Weatherstation" "winddir"; playWindDir $windDir #WINDSPEED puts $windSpeed set windSpeed [lindex $windSpeed 1] if {$windSpeed != "None"} { playMsg "SVXCard/Weatherstation" "windspeed"; set windSpeed [format {%0.1f} [expr $windSpeed]] playNumber $windSpeed; playMsg "SVXCard/Weatherstation" "kmh"; } else { puts "Wind speed not available" } #PRESSURE puts $pressure set pressure [lindex $pressure 1] set pressure [format {%0.1f} [expr $pressure]] playMsg "SVXCard/Weatherstation" "pressure"; playNumber $pressure; playMsg "SVXCard/Weatherstation" "hpa"; # TEMPERATURE IN puts $inTemp set inTemp [lindex $inTemp 1] set inTemp [format {%0.1f} [expr $inTemp]] playMsg "SVXCard/Weatherstation" "tempint"; playTemp $inTemp; # HUMINIDY IN puts $inHumidity set inHumidity [lindex $inHumidity 1] playMsg "SVXCard/Weatherstation" "humidityin"; playNumber $inHumidity; playMsg "Default" "percent"; #puts $rxCheckPercent puts $windGust puts $rainTotal #puts $ptr #puts $usUnits #WIND GUST DIRECTION puts $windGustDir set windDir [lindex $windGustDir 1] playWindDir $windGustDir return 1 } </code> Its necessary add a locale.tcl file in events.d directory in language file. (fr_FR/events.d/locale.tcl) available [[https://github.com/F8ASB/fr_FR_Agnes/blob/master/events.d/locale.tcl/| here]], this file is modified to speak good as possible and integred function to read wind direction and other small modification (no tested with English language for the moment). {{youtube>3OgZJOwSX60?medium}} en/meteolive.txt Last modified: 2020/07/05 17:13(external edit)