I have my own program (python) to send data to API. When I want to use more sensors, how can I give each value from diffrent sensors different time (time in which value was measured)?
I send this URL to my template:
Code: Select all
http://coffee.onmypc.net/meteotemplate/api.php?U=1505378730&TTime=1505378724&T=20.60&H=58.20&HTime=1505378724&TBATTime=1505378724&TBAT=79.08&T1Time=1505378716&T1=21.70&H1=45.50&H1Time=1505378716&T1BATTime=1505378716&T1BAT=76.83&P=1008.96&W=0.0&G=0.0&B=0&R=0.0&RR=0.0&S=0.0&TIN=24.25&HIN=50.20&PASS=
Code: Select all
{"U":1505378730,"TTime":1505378733,"T":20.6,"H":58.2,"HTime":1505378733,"TBATTime":1505378733,"TBAT":79.08,"T1Time":1505378733,"T1":21.7,"H1":45.5,"H1Time":1505378733,"T1BATTime":1505378733,"T1BAT":76.83,"P":1008.96,"W":0,"G":0,"B":0,"R":0,"RR":0,"S":0,"TIN":24.25,"HIN":50.2,"UTime":1505378733,"TTimeTime":1505378733,"HTimeTime":1505378733,"TBATTimeTime":1505378733,"T1TimeTime":1505378733,"H1TimeTime":1505378733,"T1BATTimeTime":1505378733,"PTime":1505378733,"WTime":1505378733,"GTime":1505378733,"BTime":1505378733,"RTime":1505378733,"RRTime":1505378733,"STime":1505378733,"TINTime":1505378733,"HINTime":1505378733,"D":12.1,"DTime":1505378733,"A":21.2,"ATime":1505378733}
Do you have any suggestions hove to use API correctly?
Must I use for every sensor own URL update?