S2K tracking map

This forum is for making test posts, requesting assistance, and making suggestions

Moderator: S2k Moderators

Message
Author
User avatar
abajan
S2K Supporter
S2K Supporter
Posts: 4175
Joined: Sun Sep 07, 2003 5:10 am
Location: Barbados

S2K tracking map

#1 Postby abajan » Mon Nov 02, 2020 4:55 am

Could someone please enlighten me on why TD Twenty-Seven still appears on the tracking map at the top of the Active Storms/Invests - Atlantic ... forum? It's been 14 days since that tropical depression became Epsilon. And Epsilon has been dead for some time now.

Image
0 likes   

tolakram
Admin
Admin
Posts: 19134
Age: 60
Joined: Sun Aug 27, 2006 8:23 pm
Location: Florence, KY (name is Mark)

Re: TD 27 Is Still Being Displayed on Map at Top of the Active Storms/Invests - Atlantic/EastPAC/CentralPAC Forum

#2 Postby tolakram » Mon Nov 02, 2020 7:11 am

abajan wrote:Could someone please enlighten me on why TD Twenty-Seven still appears on the tracking map at the top of the Active Storms/Invests - Atlantic ... forum? It's been 14 days since that tropical depression became Epsilon. And Epsilon has been dead for some time now.

https://i.imgur.com/R4LBViU.jpg


It's broken, doesn't handle this many storms, and the API that's used is retired but thankfully the firm that runs it, and asks for money now, keeps the old version active. The PHP code that draws the map is obfuscated and as far as I can tell can't be fixed. It works fine as long as we don't have too many storms.
3 likes   
M a r k
- - - - -
Join us in chat: Storm2K Chatroom Invite. Android and IOS apps also available.

The posts in this forum are NOT official forecasts and should not be used as such. Posts are NOT endorsed by any professional institution or STORM2K.org. For official information and forecasts, please refer to NHC and NWS products.

User avatar
abajan
S2K Supporter
S2K Supporter
Posts: 4175
Joined: Sun Sep 07, 2003 5:10 am
Location: Barbados

Re: TD 27 Is Still Being Displayed on Map at Top of the Active Storms/Invests - Atlantic/EastPAC/CentralPAC Forum

#3 Postby abajan » Mon Nov 02, 2020 7:41 am

tolakram wrote:
abajan wrote:Could someone please enlighten me on why TD Twenty-Seven still appears on the tracking map at the top of the Active Storms/Invests - Atlantic ... forum? It's been 14 days since that tropical depression became Epsilon. And Epsilon has been dead for some time now.

https://i.imgur.com/R4LBViU.jpg


It's broken, doesn't handle this many storms, and the API that's used is retired but thankfully the firm that runs it, and asks for money now, keeps the old version active. The PHP code that draws the map is obfuscated and as far as I can tell can't be fixed. It works fine as long as we don't have too many storms.


I see it's been replaced with the NHC graphic. Good idea! :idea:
0 likes   

User avatar
cycloneye
Admin
Admin
Posts: 138789
Age: 67
Joined: Thu Oct 10, 2002 10:54 am
Location: San Juan, Puerto Rico

Re: TD 27 Is Still Being Displayed on Map at Top of the Active Storms/Invests - Atlantic/EastPAC/CentralPAC Forum

#4 Postby cycloneye » Mon Nov 02, 2020 7:43 am

Yes, it will be temporary while a new graphic is installed for 2021 but at least we have something.
0 likes   
Visit the Caribbean-Central America Weather Thread where you can find at first post web cams,radars
and observations from Caribbean basin members Click Here

User avatar
Extratropical94
Professional-Met
Professional-Met
Posts: 3535
Age: 29
Joined: Wed Oct 20, 2010 6:36 am
Location: Hamburg, Germany
Contact:

Re: TD 27 Is Still Being Displayed on Map at Top of the Active Storms/Invests - Atlantic/EastPAC/CentralPAC Forum

#5 Postby Extratropical94 » Fri Oct 01, 2021 7:22 am

I am aware that I'm necro-ing this thread, but are there any updates on this? Are there still plans to have a unique S2K tracking map or has the NHC TWO map solution become a permanent one?

The reason why I'm asking are the appreciative comments I received for the snipped of my track map in the Victor thread. Maybe I was a bit rash to dismiss the idea of turning it into a new track map for S2K.
I'm setting up a Raspberry Pi at home this weekend to help me with some automated data processing, and I'm sure that it could also handle some plotting. Also, I played around with the code, removed some hi-res details, and resized the map layout, so it could be embedded in the website (at 50% size or something, the original is still ~ 2500x1200px).

Long story short, if there is still a demand for a track map for the forum, I'd be happy to contribute.

Right now, it looks something like this:

Image
2 likes   
54° 11' 59'' N, 9° 9' 20'' E
Boomer Sooner!
Go Broncos! Go Cards! Go Niners!
- Daniel

tolakram
Admin
Admin
Posts: 19134
Age: 60
Joined: Sun Aug 27, 2006 8:23 pm
Location: Florence, KY (name is Mark)

Re: TD 27 Is Still Being Displayed on Map at Top of the Active Storms/Invests - Atlantic/EastPAC/CentralPAC Forum

#6 Postby tolakram » Fri Oct 01, 2021 7:46 am

Extratropical94 wrote:I am aware that I'm necro-ing this thread, but are there any updates on this? Are there still plans to have a unique S2K tracking map or has the NHC TWO map solution become a permanent one?

The reason why I'm asking are the appreciative comments I received for the snipped of my track map in the Victor thread. Maybe I was a bit rash to dismiss the idea of turning it into a new track map for S2K.
I'm setting up a Raspberry Pi at home this weekend to help me with some automated data processing, and I'm sure that it could also handle some plotting. Also, I played around with the code, removed some hi-res details, and resized the map layout, so it could be embedded in the website (at 50% size or something, the original is still ~ 2500x1200px).

Long story short, if there is still a demand for a track map for the forum, I'd be happy to contribute.

Right now, it looks something like this:

https://i.imgur.com/gDnUZT0.png


That would be awesome, but might not be as easy as one would hope. The old map service is dead, the company now offers commercial products (if they are still in business) and left the free service up for years, maybe without realizing it? :lol: The primary issue with the map will be the load, as it's loaded on every view of the page. We had some complex PHP scripts to cache the map locally, only updating it every 30 minutes or so, once, and using the local copy for display.

I'm not a PHP programmer, and I'm not sure how we could write a service to grab (cache) the map for local display. I'm sure it can be done, but my experience is Microsoft.NET, not PHP. :)
0 likes   
M a r k
- - - - -
Join us in chat: Storm2K Chatroom Invite. Android and IOS apps also available.

The posts in this forum are NOT official forecasts and should not be used as such. Posts are NOT endorsed by any professional institution or STORM2K.org. For official information and forecasts, please refer to NHC and NWS products.

User avatar
Extratropical94
Professional-Met
Professional-Met
Posts: 3535
Age: 29
Joined: Wed Oct 20, 2010 6:36 am
Location: Hamburg, Germany
Contact:

Re: TD 27 Is Still Being Displayed on Map at Top of the Active Storms/Invests - Atlantic/EastPAC/CentralPAC Forum

#7 Postby Extratropical94 » Fri Oct 01, 2021 9:23 am

tolakram wrote:
Extratropical94 wrote:I am aware that I'm necro-ing this thread, but are there any updates on this? Are there still plans to have a unique S2K tracking map or has the NHC TWO map solution become a permanent one?

The reason why I'm asking are the appreciative comments I received for the snipped of my track map in the Victor thread. Maybe I was a bit rash to dismiss the idea of turning it into a new track map for S2K.
I'm setting up a Raspberry Pi at home this weekend to help me with some automated data processing, and I'm sure that it could also handle some plotting. Also, I played around with the code, removed some hi-res details, and resized the map layout, so it could be embedded in the website (at 50% size or something, the original is still ~ 2500x1200px).

Long story short, if there is still a demand for a track map for the forum, I'd be happy to contribute.

Right now, it looks something like this:

https://i.imgur.com/gDnUZT0.png


That would be awesome, but might not be as easy as one would hope. The old map service is dead, the company now offers commercial products (if they are still in business) and left the free service up for years, maybe without realizing it? :lol: The primary issue with the map will be the load, as it's loaded on every view of the page. We had some complex PHP scripts to cache the map locally, only updating it every 30 minutes or so, once, and using the local copy for display.

I'm not a PHP programmer, and I'm not sure how we could write a service to grab (cache) the map for local display. I'm sure it can be done, but my experience is Microsoft.NET, not PHP. :)


Thank you for the reply! I hadn't thought about the load issue. Doesn't caching actually increase the traffic (for S2K at least), since every user viewing the page downloads the map from the S2K server instead of the external hoster? I guess that might be helpful in the case that the external hoster is less reliable or has unstable connection.

If I understand you correctly, the script just needs to grab the image from an external source and move it to the webserver where S2K is running on.
Unfortunately, I am no PHP programmer either, but I could imagine that such a script is basically a one-liner. Something along the lines of

Code: Select all

copy(url_to_hosted_image.com/map.png, /local/directory/images/map.png)
in pseudocode.

Maybe this could even be done with a simple wget or curl shell script on the webserver, which is then started automatically every 30 minutes by a cron job.

Feel free to correct me if I am getting this wrong. 8-)
0 likes   
54° 11' 59'' N, 9° 9' 20'' E
Boomer Sooner!
Go Broncos! Go Cards! Go Niners!
- Daniel

tolakram
Admin
Admin
Posts: 19134
Age: 60
Joined: Sun Aug 27, 2006 8:23 pm
Location: Florence, KY (name is Mark)

Re: TD 27 Is Still Being Displayed on Map at Top of the Active Storms/Invests - Atlantic/EastPAC/CentralPAC Forum

#8 Postby tolakram » Fri Oct 01, 2021 10:00 am

Extratropical94 wrote:
tolakram wrote:
Extratropical94 wrote:I am aware that I'm necro-ing this thread, but are there any updates on this? Are there still plans to have a unique S2K tracking map or has the NHC TWO map solution become a permanent one?

The reason why I'm asking are the appreciative comments I received for the snipped of my track map in the Victor thread. Maybe I was a bit rash to dismiss the idea of turning it into a new track map for S2K.
I'm setting up a Raspberry Pi at home this weekend to help me with some automated data processing, and I'm sure that it could also handle some plotting. Also, I played around with the code, removed some hi-res details, and resized the map layout, so it could be embedded in the website (at 50% size or something, the original is still ~ 2500x1200px).

Long story short, if there is still a demand for a track map for the forum, I'd be happy to contribute.

Right now, it looks something like this:

https://i.imgur.com/gDnUZT0.png


That would be awesome, but might not be as easy as one would hope. The old map service is dead, the company now offers commercial products (if they are still in business) and left the free service up for years, maybe without realizing it? :lol: The primary issue with the map will be the load, as it's loaded on every view of the page. We had some complex PHP scripts to cache the map locally, only updating it every 30 minutes or so, once, and using the local copy for display.

I'm not a PHP programmer, and I'm not sure how we could write a service to grab (cache) the map for local display. I'm sure it can be done, but my experience is Microsoft.NET, not PHP. :)


Thank you for the reply! I hadn't thought about the load issue. Doesn't caching actually increase the traffic (for S2K at least), since every user viewing the page downloads the map from the S2K server instead of the external hoster? I guess that might be helpful in the case that the external hoster is less reliable or has unstable connection.

If I understand you correctly, the script just needs to grab the image from an external source and move it to the webserver where S2K is running on.
Unfortunately, I am no PHP programmer either, but I could imagine that such a script is basically a one-liner. Something along the lines of

Code: Select all

copy(url_to_hosted_image.com/map.png, /local/directory/images/map.png)
in pseudocode.

Maybe this could even be done with a simple wget or curl shell script on the webserver, which is then started automatically every 30 minutes by a cron job.

Feel free to correct me if I am getting this wrong. 8-)


That’s correct, but where will the image be hosted and how much bandwidth do they allow? It would need to be the same file name and updated automatically. Caching does bring the cost to S2K which is preferred because it’s already paid for.
0 likes   
M a r k
- - - - -
Join us in chat: Storm2K Chatroom Invite. Android and IOS apps also available.

The posts in this forum are NOT official forecasts and should not be used as such. Posts are NOT endorsed by any professional institution or STORM2K.org. For official information and forecasts, please refer to NHC and NWS products.


Return to “Tests, Help, & Suggestions”

Who is online

Users browsing this forum: No registered users and 14 guests