Λειτουργικότητα #379

ServerSide/api/getData.php

Added by Karavasilis, Vasileios over 6 years ago. Updated over 6 years ago.

Status:NewStart date:13/03/2015
Priority:NormalDue date:
Assignee:Balamatsias, Marios% Done:

70%

Category:-Spent time:2.00 hours
Target version:-

Description

Na ftiaxtei ena arxeio ServerSide/getData.php to opoio tha kaleitai kapos etsi:
ServerSide/api/getData.php?from=2015-02-01&until=2015-03-01&id=1234
kai tha epistrefei se morfh json tis eggrafes poy yparxoyn gia to sygkekrimeno is kai tis sygkekrimenes hmeromhnies.
To id tha einai proairetiko, kai an den to dosei tha epistrefei tis metriseis gia ola ta id.
To json tha einai ths morfhs:
[
... {"id":"1234, "time":"2015-03-02T10:30", "temp": "30", "hum":"40",... edo tha einai oles oi metriseis poy exei o sygkekrimenos stathmos thn sygkekrimenh xronikh stigmh...}
...
]

To arxeio ayto, afoy ftiaxtei isos mporei na to xrhshmopoihsei to index.php kai to graph.php gia na pairnoyn times meso javascript (poly makrino bima).

History

#1 Updated by Balamatsias, Marios over 6 years ago

Το χτυπάω και εγώ αυτό και λέω να ξεκινήσω από αυτό για τους λόγους που ανέφερες

#2 Updated by Karavasilis, Vasileios over 6 years ago

Otan teleiosei kleise to issue.

#3 Updated by Balamatsias, Marios over 6 years ago

  • Assignee set to Balamatsias, Marios
  • % Done changed from 0 to 70

Όπως είναι τώρα τραβάει τις πρώτες 30 εγγραφές των metrics θέλει μία παραμετροποίηση και έκλεισε.

Also available in: Atom PDF