Author Topic: Help Meteobridge users required to test template script  (Read 3354 times)

0 Members and 1 Guest are viewing this topic.

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Help Meteobridge users required to test template script
« Reply #25 on: February 21, 2017, 08:50:57 AM »
This file is uploaded to http://boutiquehotelitaly.com/devpws/MBrealtimeupload.txt
21/02/2017 14:49:04 10.4 97.0 9.9 0.0 0.0 286.0 0.0 9.0 1018.7 286.0 0 m/s C hPa mm -- 1018.8 15.6 36.8 0.2 19.0 64.0 10.4 10.5 11.3 20170221112104 10.0 20170221125453 1.3 20170221001115 4.0 20170221005341 1019.5 20170221120516 1017.4 20170221043516 3.2 3629 0.4 -- -- -- -- 47.0 286.0 1.2 -- D -- 286.0 -- m -- 10:27 -- -- -- 97.0 20170221020538 95.0 20170221000005 10.8 20170221112104 9.5 20170221125453

Wim

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: Help Meteobridge users required to test template script
« Reply #26 on: February 21, 2017, 08:58:06 AM »
This file is uploaded to http://boutiquehotelitaly.com/devpws/MBrealtimeupload.txt
21/02/2017 14:49:04 10.4 97.0 9.9 0.0 0.0 286.0 0.0 9.0 1018.7 286.0 0 m/s C hPa mm -- 1018.8 15.6 36.8 0.2 19.0 64.0 10.4 10.5 11.3 20170221112104 10.0 20170221125453 1.3 20170221001115 4.0 20170221005341 1019.5 20170221120516 1017.4 20170221043516 3.2 3629 0.4 -- -- -- -- 47.0 286.0 1.2 -- D -- 286.0 -- m -- 10:27 -- -- -- 97.0 20170221020538 95.0 20170221000005 10.8 20170221112104 9.5 20170221125453

Wim

absolutely stunning Wim it worked first time in the template here is the result http://boutiquehotelitaly.com/devpws/

absolutely no modifications were made to template i just selected meteobridge and set the path . that is simply awesome seriously

brian

Offline gateway2capecod

  • Senior Member
  • **
  • Posts: 99
    • West Wareham, Ma Weather
Re: Help Meteobridge users required to test template script
« Reply #27 on: February 26, 2017, 12:07:01 PM »
hello.....

just found this Script today and decided to give it a try and got it working here....

http://www.gateway2capecod.com/pws/index.php


seems like everything appears to be working fine for me, the only question I have is this...at the top where it shows 3 day wunderground forecast for my area.. it shows forecast for march 4th, 5th and 6th, but today is on febuary 26th,,,,shouldnt those 3 days be the 27th, 28th and 1st?? 

is it possible something is not set correctly on my behalf?  or is it perhaps a bug or some sort?

I am using Meteobridge and have a davis vantag Vue station.


Thanks and will await your reply's.......Chris


Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Help Meteobridge users required to test template script
« Reply #28 on: February 26, 2017, 01:20:40 PM »
hello.....

just found this Script today and decided to give it a try and got it working here....

http://www.gateway2capecod.com/pws/index.php


seems like everything appears to be working fine for me, the only question I have is this...at the top where it shows 3 day wunderground forecast for my area.. it shows forecast for march 4th, 5th and 6th, but today is on febuary 26th,,,,shouldnt those 3 days be the 27th, 28th and 1st?? 

is it possible something is not set correctly on my behalf?  or is it perhaps a bug or some sort?

I am using Meteobridge and have a davis vantag Vue station.


Thanks and will await your reply's.......Chris
You have to run 2 cron jobs to update earthquakes and other values.
And to update the WU forecast.
See the FAQ.
Wim

Offline gateway2capecod

  • Senior Member
  • **
  • Posts: 99
    • West Wareham, Ma Weather
Re: Help Meteobridge users required to test template script
« Reply #29 on: February 26, 2017, 01:39:29 PM »
Hi wim..... how have you been? its been awhile since I have been in this or the other forums.

so I understand that 2 files I need to be setup to run in a cron job as I found this info below..

two cron jobs need to run at intervals

/cronfiles/stationcron.php  15 minute intervals
/cronfiles/graphscron.php 60 minute intervals


I Have checked in my cpanel of godaddy server and it does allow me to run a cron job But the only thing I don't know is what Command/Command line to use for these 2 cron jobs above?  do I set up each one individually?

inside my cpanel of godaddy it looks like the included attachment below.

 [ You are not allowed to view attachments ]

Thank you...Chris

« Last Edit: February 26, 2017, 01:51:41 PM by gateway2capecod »

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Help Meteobridge users required to test template script
« Reply #30 on: February 26, 2017, 01:53:43 PM »
Hi wim..... how have you been? its been awhile since I have been in this or the other forums.

so I understand that 2 files need to be setup to run in a xcron job as I found this info below..

two cron jobs need to run at intervals

/cronfiles/stationcron.php  15 minute intervals
/cronfiles/graphscron.php 60 minute intervals


I have never setup a cron job and  wanted to ask if there is a way you could explain it to me in simple terms? or is it too complex to try and explain it within here?

I am pretty sure my godaddy.com server supports cron jobs on server but will check into that also to be sure.

Thank you...Chris
As you are using a Meteobridge, you do not need anything else. Your MB is capable of running "cron" jobs.

Execute a http request every so many minutes, same procedure as running the "upload' of the realtime file as in the attached jpg

Wim

Offline gateway2capecod

  • Senior Member
  • **
  • Posts: 99
    • West Wareham, Ma Weather
Re: Help Meteobridge users required to test template script
« Reply #31 on: February 26, 2017, 02:15:12 PM »
Hello Wim...


I set that up inside my meteobridge, but inside my pws/cronfiles folder the 2 files I have for crons are:

graphscron.php
stationcron.php


there is NO forecastcron.php file

so below is what I put....

 [ You are not allowed to view attachments ]

 
Thank you...chris
« Last Edit: February 26, 2017, 02:22:49 PM by gateway2capecod »

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Help Meteobridge users required to test template script
« Reply #32 on: February 26, 2017, 02:19:14 PM »
The MB I used the screenshot for, is running an onder version.
You should run your crons.
Wim

Offline gateway2capecod

  • Senior Member
  • **
  • Posts: 99
    • West Wareham, Ma Weather
Re: Help Meteobridge users required to test template script
« Reply #33 on: February 26, 2017, 02:25:04 PM »
ok thanks Wim....


this is what I used....


 [ You are not allowed to view attachments ]

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: Help Meteobridge users required to test template script
« Reply #34 on: February 26, 2017, 02:46:33 PM »
ok thanks Wim....


this is what I used....


 [ You are not allowed to view attachments ]

hi think your almost there

your wuweather.json http://www.gateway2capecod.com/pws/jsondata/wuweather.json is returned with incorrect api or does not exist .
{
  "response": {
  "version":"0.1",
  "termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
  "features": {
  }
      ,
   "error": {
      "type": "keynotfound"
      ,"description": "this key does not exist"
   }
   }
}


stationcron.php uses api key for current icon and forecast data
graphscron.php does not use api key this seems to be working fine


Offline gateway2capecod

  • Senior Member
  • **
  • Posts: 99
    • West Wareham, Ma Weather
Re: Help Meteobridge users required to test template script
« Reply #35 on: February 26, 2017, 03:07:48 PM »
hello weatherist34......


Yes I think you are right on my API key. I thought I had the correct API key but apparently not.

the only place I enter the API key is in the settings correct?

will go back to my wunderground account and see if I can find or create a new API key and try it again.

Thanks....will let you know when I have done this......Chris

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: Help Meteobridge users required to test template script
« Reply #36 on: February 26, 2017, 03:13:00 PM »
hello weatherist34......


Yes I think you are right on my API key. I thought I had the correct API key but apparently not.

the only place I enter the API key is in the settings correct?

will go back to my wunderground account and see if I can find or create a new API key and try it again.

Thanks....will let you know when I have done this......Chris

hi just be careful when you cut and paste the key in this week someone totally unknown was cut and pasteing the key only it was adding a hidden blank space on the end, it wasn't till i highlighted the key i saw it  .. just use the easyweathersetup.php 

remember its
stationcron.php
graphscron.php

good luck...brian


Offline gateway2capecod

  • Senior Member
  • **
  • Posts: 99
    • West Wareham, Ma Weather
Re: Help Meteobridge users required to test template script
« Reply #37 on: February 26, 2017, 03:13:44 PM »
also wanted to ask...is it..


http://www.gateway2capecod.com/pws/cronfiles/staioncroncurl.php

or just http://www.gateway2capecod.com/pws/cronfiles/station.php..without the "curl" before the php

when setting up the cron file stuff within my meteobridge


Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: Help Meteobridge users required to test template script
« Reply #39 on: February 26, 2017, 04:07:42 PM »

Offline gateway2capecod

  • Senior Member
  • **
  • Posts: 99
    • West Wareham, Ma Weather
Re: Help Meteobridge users required to test template script
« Reply #40 on: February 26, 2017, 05:38:53 PM »
thanks for the help.....


all seems to be working great now!!



...chris