Author Topic: Announcement Script?  (Read 8133 times)

0 Members and 1 Guest are viewing this topic.

Offline mldenison

  • Contributor
  • ***
  • Posts: 111
    • York, PA Weather
Re: Announcement Script?
« Reply #50 on: March 28, 2020, 08:44:27 AM »
It looks like the link for downloading the code is dead.  Does anybody have a link to the files?
Windows 7 x64
Weather PC: Intel NUC
Davis Vantage Pro 2
Weather Underground: KPAYORK30
York, PA Weather (Saratoga)
York, PA Weather (Leuven)
York, PA PWS Station

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2553
    • SouthEast Lincoln, NE Weather
Re: Announcement Script?
« Reply #51 on: March 28, 2020, 10:02:11 AM »
How about the files themselves?

I found these in my archives:
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline azkiwi

  • Senior Contributor
  • ****
  • Posts: 160
    • Maricopa, Sonoran Desert, Arizona
Re: Announcement Script?
« Reply #52 on: March 28, 2020, 10:11:57 AM »
Thanks Jerry.
Something to play with next week...

Ken

Offline mldenison

  • Contributor
  • ***
  • Posts: 111
    • York, PA Weather
Re: Announcement Script?
« Reply #53 on: March 28, 2020, 10:22:38 AM »
I appreciate that!
Windows 7 x64
Weather PC: Intel NUC
Davis Vantage Pro 2
Weather Underground: KPAYORK30
York, PA Weather (Saratoga)
York, PA Weather (Leuven)
York, PA PWS Station

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 151
    • MikeyM's Thornhurst PA Weather
Re: Announcement Script?
« Reply #54 on: March 28, 2020, 10:40:33 AM »
Jerry

For some reason when I copy your Coronavirus link into the Announcement script when I hit the "commit" button it drops the link to JHU. Screenshots are first before hitting the "commit" button and second screenshot is after hitting the "commit" button. I can't figure out what I'm doing wrong.

BTW I didn't take out the "Link" for test purposes.

Thanks
 :?
MikeyM
www.mikeymsweather.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2553
    • SouthEast Lincoln, NE Weather
Re: Announcement Script?
« Reply #55 on: March 28, 2020, 10:44:28 AM »
You need to set 'Display Hours'.  I use 999 for this announcement, but it will need to be renewed sometime.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 151
    • MikeyM's Thornhurst PA Weather
Re: Announcement Script?
« Reply #56 on: March 28, 2020, 10:57:33 AM »
Jerry

I had the "Display Hours" set, I guess just not in the screenshot. I just tried "999" with the same results that it drops the link when I hit the "commit" button.
Thanks for taking a look. Let me know if you need any other info.

MikeyM

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2553
    • SouthEast Lincoln, NE Weather
Re: Announcement Script?
« Reply #57 on: March 28, 2020, 11:18:59 AM »
Use HTML tags?
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 151
    • MikeyM's Thornhurst PA Weather
Re: Announcement Script?
« Reply #58 on: March 28, 2020, 11:45:31 AM »
DAAAAAAAAAAAAAAHHHH That did it THANKS!   [tup]

Cheers

 :grin:

MikeyM

Offline CamarilloWX

  • CamarilloWX
  • Senior Contributor
  • ****
  • Posts: 176
    • Camarillo Weather
Re: Announcement Script?
« Reply #59 on: March 28, 2020, 11:46:08 AM »
Use HTML tags?
Yes.  I had the same issue as described by MikeyM initially.  Select "Yes" for HTML tags and it will keep the link.

Sent from my SM-G960U using Tapatalk

Eric

Offline mldenison

  • Contributor
  • ***
  • Posts: 111
    • York, PA Weather
Re: Announcement Script?
« Reply #60 on: March 28, 2020, 01:05:02 PM »
It works great! https://www.m82a1.us/index.php

Any guidance on where to stick the code into my Leuven template - which php file? https://www.m82a1.us/weather28/index.php?p=wsStartPage&lang=en
Windows 7 x64
Weather PC: Intel NUC
Davis Vantage Pro 2
Weather Underground: KPAYORK30
York, PA Weather (Saratoga)
York, PA Weather (Leuven)
York, PA PWS Station

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2553
    • SouthEast Lincoln, NE Weather
Re: Announcement Script?
« Reply #61 on: March 28, 2020, 01:52:00 PM »
Curly's the man! =D> \:D/ =D>
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1031
    • GosportWx.com
Re: Announcement Script?
« Reply #62 on: April 19, 2020, 12:51:43 PM »
When I hit commit I get This site canít be reached The connection was reset.
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2553
    • SouthEast Lincoln, NE Weather
Re: Announcement Script?
« Reply #63 on: April 19, 2020, 02:09:41 PM »
When I hit commit I get This site canít be reached The connection was reset.
But somehow the link is available at the top of your page.  Not sure what's going on there...
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1031
    • GosportWx.com
Re: Announcement Script?
« Reply #64 on: April 19, 2020, 02:16:08 PM »
When I hit commit I get This site canít be reached The connection was reset.
But somehow the link is available at the top of your page.  Not sure what's going on there...

It's been there for awhile now until i found an announcement script its just text with a link atm.
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1031
    • GosportWx.com
Re: Announcement Script?
« Reply #65 on: April 19, 2020, 02:26:11 PM »
this is all i'm using atm cuz the script doesn't wanna work for some reason...

<center>
<b>Johns Hopkins COVID-19 Updates are available <a href="https://coronavirus.jhu.edu/map.html" target="_blank"><i>here</i></a>.</b>
</center>
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1031
    • GosportWx.com
Re: Announcement Script?
« Reply #66 on: April 19, 2020, 02:53:40 PM »
It lets me in here https://prnt.sc/s2eqrc but when i goto commit i get this https://prnt.sc/s2er8k hoping someone can help
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2553
    • SouthEast Lincoln, NE Weather
Re: Announcement Script?
« Reply #67 on: April 19, 2020, 02:58:14 PM »
It lets me in here https://prnt.sc/s2eqrc but when i goto commit i get this https://prnt.sc/s2er8k hoping someone can help

I don't see the 'HTML' box.  Are you using the revised script or the original one?
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1031
    • GosportWx.com
Re: Announcement Script?
« Reply #68 on: April 19, 2020, 02:59:07 PM »
It lets me in here https://prnt.sc/s2eqrc but when i goto commit i get this https://prnt.sc/s2er8k hoping someone can help

I don't see the 'HTML' box.  Are you using the revised script or the original one?

I tried both but right now using revised.
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1031
    • GosportWx.com
Re: Announcement Script?
« Reply #69 on: April 19, 2020, 03:11:39 PM »
You can try it if u want user name and password is ChangeThis and u'll see what i mean. http://gosportwx.com/specanoun.php
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1031
    • GosportWx.com
Re: Announcement Script?
« Reply #70 on: April 19, 2020, 06:03:40 PM »
so i just made my own and did a php include on my index page easy to update too..

Code: [Select]
<table width="800px" cellpadding="3" cellspacing="1" style="margin: 6px auto 0px auto; border:solid; border-color: #CCCCCC;">
  <tr>
    <td bgcolor="red"> <font color="white"><center><b>Covid-19 Status</font></b></center></td>
        </tr>
        <td><center>Indiana COVID-19 Updates are available <a href="https://www.coronavirus.in.gov/" target="_blank"><b>here</b></a>.
</center><center>Johns Hopkins COVID-19 Updates are available <a href="https://coronavirus.jhu.edu/map.html" target="_blank"><b>here</b></a>.
</center></td>
      </table>
        </tr>
    </td>
  </tr>
</table>
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4049
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Announcement Script?
« Reply #71 on: May 02, 2020, 09:16:06 AM »
I finally discovered a small typo in the specanoun.php script. "Expires" was shown as "Exirpes" or something.

Code: [Select]
$saData = array('false',$uts,'ADD TITLE','#99FFAA', '#222', 'Add message', '#DDD', 'black', '99%', 'center', 'center', 'Expires', 'OFF', '2', 'No');
Changing in this line was "necessary, but insufficient" as they say. I also had to edit the text in the drop down box under the DISPLAY EXPIRATION section. It was held in the sadata.php in the /sacache directory. After the fact, I can see that the sadata.php file updated after I made this entry, so it probably could have been corrected here as well.

Doing both things seems to have resolved it. It took me quite a while to even notice this. I have been using this script for quite some time.

Greg H.


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

 

anything