krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: October 18 2014 at 01:39 | IP Logged
|
|
|
If you use Cumulus for your weatherstation and you upload it to your own site, you can import your own data into ph by using realtime.txt which Cumulus uploads also:
this code will return the 10th data item for you:
Code:
ph_parseline(ph_parseline(ph_geturl("http://www.website.com/ realtime.txt"),"~r~n~r~n",2)," ",10)
|
|
|
By changing de number 10 in the example you can import all weatherdata you need.
the file realtime.txt is explained here: http://wiki.sandaysoft.com/a/Realtime.txt
p.s. watch the boardbug... it striked again...
Edited by krommetje - October 18 2014 at 01:41
|