Mason10198 / SkywarnPlus

Empowering Asterisk / app_rpt Nodes with Local Alert Intelligence
GNU General Public License v3.0
45 stars 3 forks source link

Auto Start at boot? #19

Closed captdonm closed 1 year ago

captdonm commented 1 year ago

I don't leave my node on all the time. Is there an auto start SkywarnPlus on Boot? Thanks!

Mason10198 commented 1 year ago

SkywarnPlus does not really "start". Instead, it is executed at a set interval. Every time it is executed, it downloads new weather information and performs tasks based on any alerts that it detects. Looking at the installation instructions, you will see the section about adding an entry in your crontab that will automatically execute SkywarnPlus every 60 seconds. This crontab entry will be effective any time the node is powered on, so you don't have to worry about reboots.

  1. Crontab Entry

    Add a crontab entry to call SkywarnPlus on an interval. Open your crontab file using the crontab -e command, and add the following line:

    * * * * * /usr/local/bin/SkywarnPlus/SkywarnPlus.py

    This command will execute SkywarnPlus (poll NWS API for data) every minute.

captdonm commented 1 year ago

Thanks! I was using Autosky before I installed this and everytime I started up my node it said autosky enabled. I did add that to my crontab already so I should be good to go. now to wait for a weather alert!