how to receive two data in python [solved]

my first exercise with python arduino sketch:

float t =  dht.readTemperature();
 float h = dht.readHumidity()
 bridge.put("temp", t);
 bridge.put("umidi", h);

I would like a very simple python example

 #!/usr/bin/python thank you very much

Have you tried Googling "arduino python" and what did you find that might be useful?


To receive parameters in python you could use sys.argv, use print sys.argv find out how. At Arduino sketch side:

void insertdb() {
  Process p;            

thanks for the suggestions! I'd like to see an example like:

$test= $client->get("temp");
echo $test;

but if it is possible written in python

Fortunately, I found a [u]running[/u] system:


import sys    
sys.path.insert(0, '/usr/lib/python2.7/bridge/') 
from bridgeclient import BridgeClient as bridgeclient   
value = bridgeclient()      
temperatura =  value.get('temp') 
umidita = value.get('umi')

print temperatura
print umidita

I hope it will be useful