• English
  • Nederlands

User Tools

Site Tools


en:uploadmb

Install the Leuven-Template step 5 of 7

Setup Meteobridge

File to be used forrMeteobridge namewhere to get that filetemplate nameupload frequency
Weather-data values for all pages of the template tags.mb.txt scriptsMB/ tagsMB.txt 5 minutes
"Realtime" weather-data values realtimeGet.txtscriptsMB/ realtime.txt 30 secondes

Meteobridge has no built-in facility for generating graphs.

More information

Meteobridge has an extensive WiKi which you should open now .

The WiKi: http://meteobridge.com/wiki/index.php/Main_Page

There is also a forum at: http://forum.meteohub.de/viewforum.php?f=54

Meteobridge - individual file upload settings

  • Logon to your meteobridge and select tab "Push services".

  • There are two parts. Top contains all possible uploads emails and so on (events)
  • The bottom part contains the genral descriptions / keys /password to be used.
  • So the bottom part of the screen should also contain the information for FTP
  • Check the Meteobridge-WiKi pages about Push services first if anything in this description remains unclear. We did not copy the extensive information form the Metepbridge wiki to this description.

Meteobridge - FTP upload settings

First we set the FTP upload credentials at the bottom and test if they work OK. What you have to enter here can be found in the information you got from your provider.

  • The URL to the upload area on your web-site (or an IP address)
  • The port is normally 21
  • The "User" and "password" field are standard fields you got from your provider
  • "Test Path should also be set according to the providers instructions. In this screenshot you see that in my case I have to enter /httpdos/ before I can point to my upload folder weather28/uploadMB/.

Stop for now entering values into the other fields because:

  • it is time to press the save button at the bottom of the page first.
  • Then press the "Test upload" button in the FTP area and
  • use your FTP program to check if a test file was uploaded just now.Check the date/time field to be sure

If the test file arrived, we can now enter the name of the template files your Meteobridge should process and upload.

Now we have to define every upload so that we can fill in the names etc. in the top part of the screen. In the middle of the Meteobridge screen you see the two selection boxes and the define (= Add Service Event ) button.

The tags.mb.txt file is uploaded using the FTP upload in the first selection and Periodical in the second. The realtime data is uploaded using HTTP request and Periodical.

The tags.mb.txt file is uploaded using the settings in the top part of above screenshot.
The realtime data is uploaded as defined in the bottom part of the picture

frequencylocation and name of the template filepath = were to upload to
every 5 minutes www.yourWebsite.com/weather28/scriptsMB/tags.mb.txt ????/weather28/uploadMB/tagMB.txt

Replace www.yourWebsite.com with the correct name of your website. Also, replace ???? with the extra ftp information to your weather28/ folder. In the screenshot that is /httpdocs/

From the Meteobridge WiKi:

Files to be uploaded have to be accessable in the Internet via HTTP. Meteobridge downloads the files pointed to, replaces Meteobridge variables inside the downloaded file by current weather data and uploads resulting file to the specified directory.

To minimize traffic, Meteobridge does not download the referenced template files each time it does prepare a FTP upload. Templates are downloaded once during startup of Meteobridge and stay untouched until you press "Reload Templates" button.

When you are working on the design of new templates, don't forget to press the reload button to make template changes effective to Meteobridge.

So the two things to do now is to press "Save" button and try not to forget to press the "Reload templates" if we change anything in a template file.

Meteobridge - individual HTTP upload of realtime data

From the Meteobridge WiKi:

Data will be sent as HTTP GET requests with URL parmeters you can define to your liking. Parameters of a URL consist of name-value pairs seperated by '&'. You can define names yourself and can use a certain set of variables provided by Meteobridge to be used as values. Variable names will be automatically replaced by their current values, each time a HTTP request is sent.

We re going to use this facility for "uploading" the realtime information for the Steelseries gauges.

  • First select the send (=upload) interval. in this example 30 seconds.
  • The Success field can be specified EXACTLY as in the example.
    Please do NOT type anything in the URL field.

In the folder weather28/scriptsMB/ at your web-site (or in your download at your PC ) there is a file realtimeGet.txt.

  • Open this file using a text program like Notepad++ or TextEdit for the Mac.
    Do not use MS-Word or another word processing program, and DO NOT use NOTEPAD.exe from windows
  • The first part of the first (looooooooooooooooong) line (it is realy long) ,has my website name as :
    http://www.wiri.be/weather27/scriptsMB/realtimeGet.php?d=[hh]:[mm], , . . . all the way to the end ! . . 

Now you change the name of my test-server (**www.wiri.be** and my weather folder weather27) into the name of your server and folder.

  • Example your server is named www.myweather.fi and you installed in weather28/, you change the first line into

    http://www.myweather.fi/weather28/scriptsMB/realtimeGet.php?d=[hh]:[mm], . . . all the way to the end ! . . 

    DO NOT change anything else.

Just to be save and not sorry later: Save the file on your web-site were you found it.

Then, you are still in your progam editor,

  • Select all of the text of the file (ctr-A or “select all” in the menu )
  • Copy all this information (ctrl-C or copy)
  • and paste this into the URL field

Now you press the "Save" button on the bottom of the screen.

Did you really copied the whole line?
So all the way to the end |[forecast-text:–]|ver2015-04-24 ? Really?

Meteobridge - Check all uploads

Time to check if everything works OK. The uploadMB/ folder on your website should contain recent copies of:

  • tagsMB.txt
  • realtime.txt

In Meteobridge you can check the status of your FTP/ HTTP uploads at the top of the "Live Data tab"

en/uploadmb.txt · Last modified: 2016/03/04 08:02 by wvdkuil