Creating and sending url

Discussion of the Meteohub software package

Moderator: Mattk

User avatar
idociko
Junior Boarder
Junior Boarder
Posts: 39
Joined: Tue Jan 24, 2012 6:16 pm
Location: Cikó, Hungary
Contact:

Creating and sending url

Post 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?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Creating and sending url

Post by admin »

I can try to add support for this weather network in one of the next updates.
User avatar
idociko
Junior Boarder
Junior Boarder
Posts: 39
Joined: Tue Jan 24, 2012 6:16 pm
Location: Cikó, Hungary
Contact:

Re: Creating and sending url

Post by idociko »

Would be great!

Thank you!
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Creating and sending url

Post 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
User avatar
idociko
Junior Boarder
Junior Boarder
Posts: 39
Joined: Tue Jan 24, 2012 6:16 pm
Location: Cikó, Hungary
Contact:

Re: Creating and sending url

Post 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
User avatar
idociko
Junior Boarder
Junior Boarder
Posts: 39
Joined: Tue Jan 24, 2012 6:16 pm
Location: Cikó, Hungary
Contact:

Re: Creating and sending url

Post 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
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Creating and sending url

Post 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.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Creating and sending url

Post by admin »

I uploaded a new 4.9x, please give it a try.
User avatar
idociko
Junior Boarder
Junior Boarder
Posts: 39
Joined: Tue Jan 24, 2012 6:16 pm
Location: Cikó, Hungary
Contact:

Re: Creating and sending url

Post by idociko »

"Feltoltes sikeres" means "Upload succeded".
User avatar
idociko
Junior Boarder
Junior Boarder
Posts: 39
Joined: Tue Jan 24, 2012 6:16 pm
Location: Cikó, Hungary
Contact:

Re: Creating and sending url

Post by idociko »

I'm sorry, but where can I find 4.9x ?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Creating and sending url

Post by admin »

http://meteohub.de/files/update-v4.9x.upd
I just replaced the one you already installed.
User avatar
idociko
Junior Boarder
Junior Boarder
Posts: 39
Joined: Tue Jan 24, 2012 6:16 pm
Location: Cikó, Hungary
Contact:

Re: Creating and sending url

Post by idociko »

4.9x is running now for 15 minutes. No email notifications!

Thanks again :!:
User avatar
idociko
Junior Boarder
Junior Boarder
Posts: 39
Joined: Tue Jan 24, 2012 6:16 pm
Location: Cikó, Hungary
Contact:

Re: Creating and sending url

Post 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.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Creating and sending url

Post by admin »

Uploaded a new 4.9x which should have that fixed. Please give it a try.
User avatar
idociko
Junior Boarder
Junior Boarder
Posts: 39
Joined: Tue Jan 24, 2012 6:16 pm
Location: Cikó, Hungary
Contact:

Re: Creating and sending url

Post by idociko »

Works fine now!

Thanks again.
Jos
Post Reply