Author Topic: LAST 24 HOUR TEMP GRAPH  (Read 2943 times)

marzio2515

  • Gentle Breeze
  • **
  • Posts: 24
    • IMARCHEU3
  • Station Details: WeaherHawk 600 series
LAST 24 HOUR TEMP GRAPH
« on: July 05, 2015, 09:26:59 AM »
Hello

i would like to write some piece of cod in PHP  in order to plot the graphic of temperature within the last 24 hour ...

the only problem i have is about the source of such data.... i'm wondering if WeatherCat is able to upload a txt file in which is stored history data and in particular last 24 hour temp... if this is possible i can use such a file to read data and plot them via php...

(only for reference:  WeatherDisplay can upload a file called clientrawextra.txt and in that file you can find the last 24 hour measure of the different weather variable.....i'm wondering if with WC is possible to create and upload a file like that)

anyway if there is another way to plot last 24 hour graph i would be grateful to have some hint/help...
(i know W.C. can upload its own graph .. i'm not referring to this feature ... what i want to do is to write a little piece of code in PHP and i need some file as source from which i can read the measure of last 24 hour...)

Thanks in advance to everybody for your help

Regards

Marzio

WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2987
    • CW9739
    • IIBSTO2
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, extra temp stations, no U.V. WeatherLinkLive.
Re: LAST 24 HOUR TEMP GRAPH
« Reply #1 on: July 05, 2015, 07:06:29 PM »
If your hosting package includes an SQL database (most include at least one), use WeatherCat's SQLDriver (Tools menu->SQLDriver) to upload and keep up to date the data to a database on your website. Then you can use one of the  many graphing packages available to generate your graphs (or access the data from your own code).

For more information, see the WeatherCat manual (page 86 in the current manual); searching the forum for 'SQL' will also throw up some useful info.