Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Macros, Scripts, and Formulas Repository
 PowerHome Messageboard : PowerHome Macros, Scripts, and Formulas Repository
Subject Topic: Importing Cumulus weatherdata in PH Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
krommetje
Super User
Super User
Avatar

Joined: December 29 2004
Location: Netherlands
Online Status: Offline
Posts: 695
Posted: October 18 2014 at 01:39 | IP Logged Quote krommetje

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
Back to Top View krommetje's Profile Search for other posts by krommetje Visit krommetje's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum