Giter Club home page Giter Club logo

svxlink-contributions's People

Contributors

dl1hrc avatar

Stargazers

 avatar

Watchers

 avatar  avatar

svxlink-contributions's Issues

Help for WeatherInfo

I have make some Experiments on my Computer for running Weatherwarning without Mail
In home/svxlink there is a file with Name WarnWetter.tcl with the following content

/home/svxlink/WarnWetter.tcl

aktuelle Uhrzeit ermitteln

set now [clock seconds];
set hour [clock format $now -format "%H"];
set minute [clock format $now -format "%M"];

das hier macht aus "08" Minuten "8" Minuten

scan $hour %d hour;
scan $minute %d minute;

eigene Ausgabezeiten definieren:

zur 20. Minute einer ohne Teilungsrest durch 6

teilbaren Stunde erfolgen, also um 0:20, 0:40,1 :00 etc.

set interval 20;

hier prüfen ob Ausgabekriterium erreicht ist

if {($minute % $interval) == 0 } {

set dir "/usr/share/svxlink/sounds/de_DE/WeatherInfo/archive"
set file_list [glob -nocomplain "$dir/*"]

if {[llength $file_list] != 0} {

 # puts "Ausgabe Wetterwarnung-> Minute: $minute , Interval: $interval";
 set iterations 20;
 set base 2;
 set max [expr {pow($base, $iterations)}];
 for {set i $iterations} {$i>0} {set i [expr $i - 1]} {
   playTone 440 [expr {round(pow($base, $i) * 150 / $max)}] 100;
   playTone 510 [expr {round(pow($base, $i) * 150 / $max)}] 100;
 }

 WeatherInfo::getNumberOfRecords;
 } else {
 # puts "nix neues vom Wetter..."

}
}

under home/svxlink/Wetter there is a file with Name dwd.sh this will be startet per cronjob every 30 Minutes
this is creating in the folder /tmp a file with the name dwd.log2 (its empty)

under usr/share/svxlink/events.d there is a file with Name WeatherInfo.tcl
under usr/share/svxlink/events.d/local there is a file with Name Wetter.tcl and locale.tcl
under usr/share/svxlink/modules.d there ar more files but i have coppied the file ModuleWeatherInfo.tcl
under usr/share/svxlink/sounds/de_DE/Weatherinfo there is a folder with the name /archive but its empty

When i now start svxlink with restart the comes the following mistake:

dh3pae@weewx-reserve:~$ systemctl restart svxlink.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Legitimierung ist zum Neustarten von »svxlink.service« notwendig.
Authenticating as: dh3pae,,, (dh3pae)
Password:
==== AUTHENTICATION COMPLETE ===

dh3pae@weewx-reserve:~$ tail -f /var/log/svxlink
Mon Jan 18 13:30:19 2021: ***** WARNING: Calling deprecated TCL event handler addTimerTickSubcriber.
Mon Jan 18 13:30:19 2021: Use addMinuteTickSubscriber instead**
Mon Jan 18 13:30:19 2021: SimplexLogic: Event handler script successfully loaded.
Mon Jan 18 13:30:19 2021: Connected to APRS server 85.90.180.26 on port 14580
Mon Jan 18 13:30:19 2021: EchoLink directory status changed to ON
Mon Jan 18 13:30:35 2021: --- EchoLink directory server message: ---
Mon Jan 18 13:30:35 2021: EchoLink Server v2.5.9997
Mon Jan 18 13:30:35 2021:
Mon Jan 18 13:30:35 2021: ECHOEC2-1: Herndon, VA USA
Mon Jan 18 13:30:35 2021:

Please Help where can be my mistake??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.