asi_core.real_time.meteo_data_opcua¶
Attributes¶
Classes¶
Meteo Data Logger of OPC UA server. |
Module Contents¶
- class asi_core.real_time.meteo_data_opcua.MeteoDataOPCLog(url_opc, log_filepath, timezone, log_size=pd.Timedelta(days=3), latitude=37.1, longitude=-2.36, altitude=490, min_sun_elevation=5, when_to_resize_log=datetime.strptime('00:00:00', '%H:%M:%S').time(), write_mode='w')¶
Bases:
asi_core.real_time.meteo_data_log.MeteoDataLogMeteo Data Logger of OPC UA server. :param url_opc: (str) url of the OPC server :param log_meteodata_filepath: (str) file path of the meteo data log :param timezone: (str) desired time zone (e.g. “GMT+1” = UTC+1) :param log_size: (Timedelta) size of the log express as Timedelta, default is 3 days :param latitude: (float) latitude of the camera position. Default is 37.1º :param longitude: (float) longitude of the camera position. Default is -2.36º :param altitude: (float) altitude of the camera position. Default is 490m :param min_sun_elevation: (float) minimum sun elevation to log meteo data. Default is 5º :param when_to_resize_log: (time) time of day when to resize log. Default is 00:00:00 :param write_mode: (str) meteo data log write mode, ‘w’ for write or ‘a’ for append. Default is ‘w’
- url_opc¶
- log_opc_meteodata()¶
Monitor the given url and log updates in the given file
- asi_core.real_time.meteo_data_opcua.url = 'opc.tcp://192.168.0.102:48050'¶