Page 1 of 2

Creating and sending url

Posted: Thu Jan 26, 2012 4:24 am
by idociko
I was wondering: is it possible to create a url and call this url automaticly. Why?
I live in Hungary, i want to upload my wheaterdata to http://www.idokep.hu. This can be done with a program of them but this works only with my computer turned on. I asked them for an other solution and this is there answer:


To upload data to Idokep, You also have to register to Idokep Pro (pro.idokep.hu), with the same username/password as You used when registering for Idokep.

Then, you'll have to upload real-time data (preferrably in every minute), by calling the url below (as if it was a website url)

http://pro.idokep.hu/sendws.php?user=us ... okes=0.0

Of course, in the aboeve example, You will have to insert Your own username/password, as well as the actual weather data.

user=username
pass=password
tipus=your_weather_station_type
p=sea_level_air_pressure
hom=temperature
rh=humidity
szelero=wind_speed (in m/s)
szelirany=wind_direction (degrees 0-359)
csap1h=rain_in_last_hour (in mm)
csap=rain_in_last_day (in mm)
szellokes=wind_gust (in m/s).

Anyone ideas?

Re: Creating and sending url

Posted: Fri Jan 27, 2012 12:11 am
by admin
I can try to add support for this weather network in one of the next updates.

Re: Creating and sending url

Posted: Fri Jan 27, 2012 4:05 am
by idociko
Would be great!

Thank you!

Re: Creating and sending url

Posted: Fri Jan 27, 2012 8:57 pm
by admin
Please try the update located here, you will find a new enty for this network on weather network page:
http://meteohub.de/files/update-v4.9x.upd

Place on the smb share /public/transfer/, install method "file": /data/transfer/update-v4.9x.upd

Re: Creating and sending url

Posted: Fri Jan 27, 2012 10:00 pm
by idociko
Great job Boris, thank you.

Update is up and running. Seems to work fine. For now just one issue: after every succesful upload to idokep.hu (5 minuts interval) I reseve an error e-mail from Meteohub:
Meteohub (meteohub): Cannot connect to Weather Network "idokep"

upload to idokep: Feltoltes sikeres <b><a target=_blank href=http://pro.idokep.hu/summary/index/id/1 ... iko</a></b> allomas nevvel<br>Archiv adatok lekerdezhetoek <a target=_blank href=http://pro.idokep.hu/graph/index/id/1107>itt</a> (10 perccel az elso adatfeltoltes utan) <!-- Beírás ide:<br> --!>
For now I set upload messages to 'once an day'.

Anyway great job, thanks a lot!

Jos

Re: Creating and sending url

Posted: Fri Jan 27, 2012 11:41 pm
by idociko
I did't took the time to translate de Hungarian part of the e-mail. The replay mail is not an error massage but an confirmation of a succesfull upload.

Translation in english:
Upload a successful <b> <a target=_blank href=http://pro.idokep.hu/summary/index/id/1107> idociko </ a> </ b> Station name <br> archive data can be queried <a target = _blank href = http://pro.idokep.hu/graph/index/id/1107> here </ a> (10 minutes after the first upload) <! - Sign here: <br> ->
This is the html page where you normally will returned to after submitting de url with (wheater-)data in browser.

Anyway I set the email notification to once a day, otherwise my mailbox explodes. :D

Jos

Re: Creating and sending url

Posted: Sat Jan 28, 2012 12:26 am
by admin
Upload process does expect to get an "OK" or "Success" in the string.
As I can't read Hungarian, what is the part of the string the process should look for to be sure upload has worked fine?

Looks like "sikeres" is the word for successful, so I will check for this one.

Re: Creating and sending url

Posted: Sat Jan 28, 2012 12:48 am
by admin
I uploaded a new 4.9x, please give it a try.

Re: Creating and sending url

Posted: Sat Jan 28, 2012 1:09 am
by idociko
"Feltoltes sikeres" means "Upload succeded".

Re: Creating and sending url

Posted: Sat Jan 28, 2012 1:17 am
by idociko
I'm sorry, but where can I find 4.9x ?

Re: Creating and sending url

Posted: Sat Jan 28, 2012 1:25 am
by admin
http://meteohub.de/files/update-v4.9x.upd
I just replaced the one you already installed.

Re: Creating and sending url

Posted: Sat Jan 28, 2012 1:51 am
by idociko
4.9x is running now for 15 minutes. No email notifications!

Thanks again :!:

Re: Creating and sending url

Posted: Sat Jan 28, 2012 1:07 pm
by idociko
I think windspeed and gust are uploaded to idokep.hu in km/h. This must be m/s
Idökép convert m/s to km/h. Now the windspeed and gust are because of this mutch to high. (factor 3.6)

I could't see this yesterday because there was no wind at all then.

Re: Creating and sending url

Posted: Sat Jan 28, 2012 3:09 pm
by admin
Uploaded a new 4.9x which should have that fixed. Please give it a try.

Re: Creating and sending url

Posted: Sat Jan 28, 2012 4:03 pm
by idociko
Works fine now!

Thanks again.
Jos