Hi everyone, I am doing my uni project by using raspberry Pi 3 and python with blynk app to get data from the car (obd port) . Currently, I got a problem with getting history data from the server. when i use this link "http://blynk-cloud.com/BLYNK_AUTH/data/V5 " the result is "no data "
i need to get history data for V1,V2,V3,V4 and V5, but that link is only for v5
so it would be great if anybody knows a link that shows all those pins together
the last question, can i use a blynk button to take me to that link ?
Thanks in ADVANCE
import BlynkLib
import time
from mytoken import *
from blynkapi import Blynk
from urllib2 import Request, urlopen
BLYNK_AUTH = 'd2c97bf25d5.....655b5f89'
# initialize Blynk
blynk = BlynkLib.Blynk(BLYNK_AUTH)
respon=100 #value to change with obd value
print('gauge act')
blynk.virtual_write(5,respon)
#fuel pressure
print('fuel Action1')
blynk.virtual_write(1,respon)
#accelaration
print('acceleration Action')
blynk.virtual_write(4,respon)
#temperature
print('temperature Action')
blynk.virtual_write(2,respon)
#MIL ON
print('MIL ON Action1')
blynk.virtual_write(3,respon)
"""
#button history first try
BLYNK_WRITE(V21)
{
request=Request('http://blynk-cloud.com/BLYNK_AUTH/data/V5')
response_body = urlopen(request).read()
print response_body
sw1.when_pressed = sw1Pressed
}
#button history second try
@blynk.VIRTUAL_WRITE(21)
def v21_write_handler(value):
if value[0]:
hist=Blynk(BLYNK_AUTH, pin = "V5")
hist.history()
print (hist)
"""
while True:
blynk.run()