Author Topic: Naming Convention Help  (Read 286 times)

0 Members and 1 Guest are viewing this topic.

Offline jeffm5690

  • Forecaster
  • *****
  • Posts: 307
    • Long Island New York Weather
Naming Convention Help
« on: March 18, 2017, 09:55:53 AM »
Normally the files uploaded by GrLevel look like this:

XXXX_br_1.jpg
etc

On my server this seems to be different. The second underscore is missing. 

How do I set it up so that it looks like XXXX_YY_Z.jpg - where XXXX is the radar location, YY the product and Z is the image number, going from 1, 2, ....

Thanks so much!

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8499
    • Meteotemplate
Re: Naming Convention Help
« Reply #1 on: March 18, 2017, 10:20:31 AM »
Jeff the underscore is not such an issue, I could make some changes in the code,
but the problem is that for some reason some of your products have a name like this:

BR etc.
whereas other start with
CR1 etc.

And it has to be either or. Either there is always that 1 or it just starts like nothing, then 2 etc.

It has to be consistent.
Option 1:
BR, BR2, BR3, ...
or
BR1, BR2, BR3 etc.

But problem is what you have now:
BR, BR2, BR3
CR1, CR2

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8499
    • Meteotemplate
Re: Naming Convention Help
« Reply #2 on: March 18, 2017, 10:36:59 AM »
Jeff please check your homepage, I made some changes directly in the script on your server, unfortunately loading your page led to my laptop crashing again and browser restart, so I will rather not try again. If it does not work let me know and we will have to leave it for tomorrow when Im at work the whole day and I can look at it during break

Offline jeffm5690

  • Forecaster
  • *****
  • Posts: 307
    • Long Island New York Weather
Re: Naming Convention Help
« Reply #3 on: March 18, 2017, 10:48:42 AM »
Jeff please check your homepage, I made some changes directly in the script on your server, unfortunately loading your page led to my laptop crashing again and browser restart, so I will rather not try again. If it does not work let me know and we will have to leave it for tomorrow when Im at work the whole day and I can look at it during break

It works!!!  Thanks!

 

anything