Author Topic: Image addition to IndexT  (Read 12184 times)

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Image addition to IndexT
« on: June 10, 2012, 05:40:14 PM »
Hi Jacques,

I came accross the attached image and would like to add this to my 1st page [now] of Weather Blues, below the Moon Phase image.
I checked all possibilities but can't find the blue box in which the forecast and moon images are embedded. (just a few French names in the original Weather Blues "Internet/Images" file, but they don't correspond with the images on the page).
Can you give me a hint how I can get the (copied) script (includes the attached image) into the box and which image (box) as background for the script I can use?

Thanks,

Cheers,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Image addition to IndexT
« Reply #1 on: June 10, 2012, 08:15:21 PM »
Hi Arthur,

1st thing, you could take any box included in the template to use it.
Take, for example, nisht sky box and modify it with a graphic program,
I recommand Notepad++ as it is powerful and easy (and as I know it I'll
be able to help you easily) http://notepad-plus-plus.org/download/v6.1.3.html

The night box is a good example for you as it merge 2 images; night sky
and the moon. Then you will be able to erase stars easily and strech center box
to fit your needs.

Then you'll have to take your script into your page to made it work.

hope this help you.

Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Image addition to IndexT
« Reply #2 on: June 11, 2012, 10:23:53 AM »
Hi Jacques,

Thanks for the message. I'll try to get it in place!
I've another quick question.
I've set up several html pages for the template and those are uploaded in Cumulus/Configuration/Internet/Files.
However, I'm running out of lines (now 7 out of 10).
IF there are no html pages with "updates" (just text pages like UV Info) I can delete those from the files setting in Cumulus, and just keep them on the server?
Correct?

Thanks,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Image addition to IndexT
« Reply #3 on: June 11, 2012, 10:33:56 AM »
Hi Arthur,

Yes, you could remove page not needing constant updates,
like photos.htm or webcam.htm. These pages need to be processed
only to add some automatic info, ie. 2 first lines for weather station name
and "Slogan". When the infos are "injected" they stay there for ever!

And if your are producing a lot of pages more, Cumulus could give you
an extra 10 pages, but you have to edit a file "by hand".

Then, don't limit your creativity! Cumulus is able to follow you!

Regards,
Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Image addition to IndexT
« Reply #4 on: June 11, 2012, 01:18:22 PM »
Hey Jacques,

Thanks for your quick reply.
Since you're working on Weather Blues V2 (with an additional 2nd [tabs] line), it might be interesting to process the additional files in Cumulus. (just in case my creativity continues  :D )
Which file needs to be processed "by hand"?
Thanks,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Image addition to IndexT
« Reply #5 on: June 11, 2012, 02:56:17 PM »
Hi Arthur,

For Weather Blues v2 menu, it will not be a 2nd row for items,
but a pull-down list for each item of current bar. Then each item
that you can fit (squeezed or not) in menu bar could have a (infinite)
number of items. See (v.2): http://weatherbyyou.com/demo/weather_blues

For processing more than 10 files, you just have to edit Cumulus.ini.
You'll see these 6 lines for each file that you actually process:

ExtraLocal1= path and filename for local file
ExtraRemote1= path and filename for remote file
ExtraProcess1=0
ExtraBinary1=0
ExtraRealtime1=0
ExtraFTP1=1

You'll see those 6 lines repeated and numbered from 0 to 9.
Then you just have to continue numbering until reaching 19.

Your creativity would be satiated with that!  ;)

Regards,
Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Image addition to IndexT
« Reply #6 on: June 11, 2012, 05:58:01 PM »
Thanks Jacques!!

Looks great, V2.... :o
I'll need the additional (files) pages at some point for sure!!

Cheers,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Image addition to IndexT
« Reply #7 on: June 11, 2012, 08:14:57 PM »
Hi Arthur,

I was curious to see why you have needs for so many additional pages,
then I revisited your site and were surprised to see so many (educational)
informations about weather.

Then I'm about to modify my template licence fineprints to have rights
to copy your contents!!!  ;)  :D  :D

Bravo!

Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Image addition to IndexT
« Reply #8 on: June 12, 2012, 04:07:32 PM »
Bonjour Jacques,

Thank you for your enouraging comments  :D
Indeed, I like to add a lot more information about the weather rather than just giving numbers and figures! There is so much behind it and it gives the visitor a bit of an explanation about the daily used weather subjects!
One question for you.
At the moment I'm copying the forecast page for my website from my Wunderground upload information (BestForecast). It looks great, but I need to manually upload this.
Do you have an idea of where I can get scripts, html information so I can implement this and it will be uploaded automatically?

Merci,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Image addition to IndexT
« Reply #9 on: June 12, 2012, 04:54:05 PM »
Hi Arthur,

For your WU forecast, I don't think that is an easy way to do it.
But WU is now offering an API for developpers. You could check that way.
Infos on WU API is here: http://english.wunderground.com/weather/api
(big data volume access could be charged)

Also, you could try Saratoga-Weather.org script (WU-forecast.php)
at this adress: http://saratoga-weather.org/scripts-WUforecast.php

I haven't try these at all, but found it as a starting point for your needs.

Best regards,
Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Image addition to IndexT
« Reply #10 on: June 13, 2012, 10:05:33 AM »
Hi Jacques,

Thanks for the info.
Since I upload my data to WU, I've registered in order to obtain API info.
Also, I checked with Saratoga, and they offer for Canada the EC script.
Once downloaded I'll see where and how to implement the script into my Forecast page (hopefully without messing up my template page  :D ).
Typically, does the script run in the header section of the page or after the standard part of each page (header text, picture etc).
Thanks,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Image addition to IndexT
« Reply #11 on: June 13, 2012, 11:05:11 AM »
Hi Arthur,

I've played yesterday with script from Saratoga and it's pretty simple!  :D
But, you have html template version and this script is done in php.
Then, first, you have to know if your provider support Php. To test it,
a fast way is to take any htm page that you have and create a copy
renamed to .php (ex. index.htm to index.php) and sent it to your website.
You could not try it on your Pc, browser know only html pages, not php!

Your provider server will process this file as a php file, without founding
any specific Php command to execute and will only display html content.
You have to know that Php is only a html code writer on the server side.
Php code is changed to html by server depending on what you mentionned
to do (ex: If language=French use French words). If test is positive,
you could play with Saratoga script in an empty page included in template.

Little php knowledge:

A "php block" is begining with <?php and ending with ?>

A command like first line IF.. could be one or more lines embrassed with {...}

While taking ec-forecast-testpage.php file as guide, copy 1st section before
DOCTYPE html... (forget IF section) to correspondant place in empty page.

Copy <style>... </srtle> section juste before </head> in empty page.

Then all in between <body>... </body> is the test forecast itself. You'll see
php commands like this <?php print $forecast[1]; ?>, play with indice [1];
you could replace 1 with number from 0 to 7.

Check in file ec_forecast.php to see list of "Php variables" you could play with.
you'll find near a dozen, like $forecast[1].

Then, hope this help you!

Regards,
Jacques

Ps. I'm playing with it, and will launch page including it in a few days.
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Image addition to IndexT
« Reply #12 on: June 13, 2012, 04:18:22 PM »
Hi Jacques,

Thanks for your description.
My server definitely supports .php, since I use it for my NOAA reports at this moment. (can't use the html since my server does not support the Realtime.txt files.)
Since Holland's (my origin) defeat against Germany I need to set my thoughts on something different, so I'll "play" a bit with the php scripts after making a .org copy of the existing html in case I mess up  :D .
If all goes wrong, I count on your expertise in maybe another addition to the existing template.. :o  :shock:

Cheers,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Image addition to IndexT
« Reply #13 on: June 13, 2012, 04:38:44 PM »
HI Jacques,

Forgot one thing to ask you.
Since all is written in .php script is there actually a possibility to incorporate this into the existing template (with header image, header text etc, etc - see attached idea...)
Thanks,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Image addition to IndexT
« Reply #14 on: June 13, 2012, 06:10:45 PM »
Hi Arthur,

You surely can include ec_forecast in your template!
With little tricks have send you in latest message... you can!

I've played with this script today and you can take a look at
the page I've build on that link:
http://weatherbyyou.com/demo/Weather_bl ... recast.php

But, I don't know where you've find 10 days Forecast with so much text!!
Environment Canada publish 7 days forecast!

Regards,
Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site