Pass graph parameters from python to grafana

I am ussing grafana + influx DB + web.py in my project .
Question is how can i pass time range of graph i would like to get form python or directy from WWW to grafana.
i am passing graf to WWW by iframe

Blockquote
iframe src=“http://192.168.8.109:3000/d-solo/5e78VQRRk/jw1?orgId=1&from=1616639222755&to=1616660822755&panelId=2” width=“450” height=“200” frameborder=“0”>