Bi-monthly release with minor bug fixes and improvements
pdb wr_rrd_update.py
Please Log in or Create an account to join the conversation.
if mode == "Serial":
# ensure serial mode
indi.set_and_send_switchvector_by_elementlabel(dev,"CONNECTION_MODE","Serial")
# set the configured port
indi.set_and_send_text(dev,"DEVICE_PORT","PORT",devport)
else:
indi.set_and_send_switchvector_by_elementlabel(dev,"CONNECTION_MODE","Ethernet")
indi.set_and_send_text(dev,"DEVICE_ADDRESS","ADDRESS",ipaddress)
indi.set_and_send_text(dev,"DEVICE_ADDRESS","PORT",ipport)
# connect driver
connection = indi.set_and_send_switchvector_by_elementlabel(dev,"CONNECTION","Connect")
# wait for the connection
time.sleep(7)
# ensure that all information is up to date
indi.process_events()
# check if the connection has been established
connection = indi.get_vector(dev, "CONNECTION")
# set location if connection was successful
if connection._light.is_ok():
indi.set_and_send_float(dev,"GEOGRAPHIC_COORD","LAT",float(lat))
indi.set_and_send_float(dev,"GEOGRAPHIC_COORD","LONG",float(long))
indi.set_and_send_float(dev,"GEOGRAPHIC_COORD","ELEV",float(elev))
# update the result states
result = result and connection._light.is_ok()
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
//#define USE_DHT_SENSOR
// DHT sensor family
#define DHTPIN 3 // Digital pin connected to the DHT sensor
//#define DHTTYPE DHT11 // DHT 11 - Uncomment whatever type you're using!
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321 - Uncomment whatever type you're using!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
#include "DHT.h"
DHT dht(DHTPIN, DHTTYPE);
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.