• English
  • Nederlands

User Tools

Site Tools


en:uploadmb

This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== Install the Leuven-Template step 5 of 7 ====== <WRAP tabs> * [[how_to_install|1]] * [[folder_contents|2]] * [[test_program|3]] * [[settings|4]] * [[upload|Configure the upload of weather-data]] * [[menu|6]] * [[how_to_install7|7]] </WRAP> ===== Setup Meteobridge ===== ^File to be used forr^Meteobridge name^where to get that file^template name^upload frequency ^ |**Weather-data values for all pages of the template** |tags.mb.txt |scriptsMB/ |tagsMB.txt |5 minutes| |**"Realtime" weather-data values ** |realtimeGet.txt|scriptsMB/ |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".\\ {{ :meteobridge_push.jpg?nolink |}} * 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 [[http://meteobridge.com/wiki/index.php/Push_Services|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 * <wrap important>"Test Path</wrap> 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/**. {{ :meteobridge_ftp_upload.jpg?nolink |}} 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.<wrap important>Check the date/time field to be sure</wrap> 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. {{ :meteobridge_select_upload.jpg?nolink |}} 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**. {{ :meteobridge_upload_ftp_http.jpg?nolink |}} 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 ^frequency^location and name of the template file^path = 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/** <WRAP box>**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. </WRAP> <WRAP important>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. </WRAP> 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 ==== <WRAP box>**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.</WRAP> We re going to use this facility for "uploading" the realtime information for the Steelseries gauges. {{ :meteobridge_upload_ftp_http.jpg?nolink |}}\\ * First select the send (=upload) interval. in this example 30 seconds. * The Success field can be specified EXACTLY as in the example.\\ <wrap important>Please do NOT type anything in the URL field.</wrap> 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.\\ <wrap important>Do not use MS-Word or another word processing program, and DO NOT use NOTEPAD.exe from windows</wrap> * The first part of the first **(looooooooooooooooong)** line (it is realy long) ,has my website name as :<code>http://www.wiri.be/weather27/scriptsMB/realtimeGet.php?d=[hh]:[mm], , . . . all the way to the end ! . . </code> 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. *<div> Example your server is named **%%www.myweather.fi%%** and you installed in **weather28/**, you change the first line into <code>http://www.myweather.fi/weather28/scriptsMB/realtimeGet.php?d=[hh]:[mm], . . . all the way to the end ! . . </code> <wrap important>DO NOT change anything else.</wrap> </div> 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. <wrap important>Did you really copied the whole line?\\ So all the way to the end //|[forecast-text:--]|ver2015-04-24// ? Really?</wrap> ==== Meteobridge - Check all uploads ==== Time to check if everything works OK. The uploadMB/ folder on your website should contain <wrap hi>recent copies</wrap> 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.1457078505.txt.gz · Last modified: 2016/03/04 08:01 by wvdkuil