[arm-allstar] AutoSky Weather alerts not clearing.
Doug Crompton
wa3dsp at gmail.com
Sat Oct 28 01:36:02 EST 2017
First of all autosky is not a hamvoip creation but rather a rewrite of
someone else’s script adapted to our code. I have not seen the problem you
are seeing. It possibly might be an Internet issue. Are you running the
cron job every 4 minutes?
*/4 * * * * /usr/local/bin/AUTOSKY/AutoSky
This should stop any alerts when they are cleared.
The startup procedure looks like this if done manually -
/usr/local/bin/AUTOSKY/AutoSky
AutoSky not enabled - use AutoSky.ON to enable
/usr/local/bin/AUTOSKY/AutoSky.ON
(system announces autosky is on)
/usr/local/bin/AUTOSKY/AutoSky
AutoSky Xresult is 2
(the very first run might show a 2 which is an error)
/usr/local/bin/AUTOSKY/AutoSky
AutoSky Xresult is 1
(this will announce either an event or that all events are cleared)
/usr/local/bin/AUTOSKY/AutoSky
AutoSky Xresult is 0
(This is no change since last interrogation)
If you consistently get a result code of 2 when you manually run autosky
then there is something wrong. You can also look at the log and see if the
cron job is running.
If you have autosky starting automatically in rc.local (it would look like
this)
/usr/local/etc/rc.allstar < AFTER THIS LINE ADD NEXT THREE >
/usr/local/bin/AUTOSKY/AutoSky
sleep 3
/usr/local/bin/AUTOSKY/AutoSky.ON
exit 0
Then after 3 intervals of 4 minutes you should see this in the log -
journalctl -f
Oct 28 02:12:14 Pi3-test crond[1083]: pam_unix(crond:session): session
opened for user root by (uid=0)
Oct 28 02:12:14 Pi3-test CROND[1084]: (root) CMD (/usr/local/bin/AUTOSKY/
AutoSky)
Oct 28 02:12:16 Pi3-test CROND[1083]: (root) CMDOUT (AutoSky Xresult is 2)
Oct 28 02:12:16 Pi3-test CROND[1083]: pam_unix(crond:session): session
closed for user root
Oct 28 02:16:01 Pi3-test crond[1382]: pam_unix(crond:session): session
opened for user root by (uid=0)
Oct 28 02:16:01 Pi3-test CROND[1383]: (root) CMD (/usr/local/bin/AUTOSKY/
AutoSky)
Oct 28 02:16:01 Pi3-test CROND[1382]: (root) CMDOUT (AutoSky Xresult is 1)
Oct 28 02:16:02 Pi3-test CROND[1382]: pam_unix(crond:session): session
closed for user root
Oct 28 02:20:01 Pi3-test crond[1405]: pam_unix(crond:session): session
opened for user root by (uid=0)
Oct 28 02:20:01 Pi3-test CROND[1406]: (root) CMD (/usr/local/bin/AUTOSKY/
AutoSky)
Oct 28 02:20:02 Pi3-test CROND[1405]: (root) CMDOUT (AutoSky Xresult is 0)
Oct 28 02:20:02 Pi3-test CROND[1405]: pam_unix(crond:session): session
closed for user root
autosky does work and many are using it.
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
On Fri, Oct 27, 2017 at 9:25 PM, "Shawn Kyker via arm-allstar" <
arm-allstar at hamvoip.org> wrote:
> I run two servers on the same internet connection, and both have AutoSky
> running on them. My newest server doesn't seem to clear alerts unless I
> restart asterisk. At the time of this posting we are currently in a Freeze
> Warning (which my oldest server is announcing), yet AustoSky announces a
> Freeze Watch twice, and a Wind Advisory once. Everything else is working
> great, incoming/outgoing connections, etc. Any idea on how to fix this?
>
> Thanks
> --
>
>
> *Shawn - KCØSWG*
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
More information about the arm-allstar
mailing list