Python Example ScriptsΒΆ
- The example scripts are hosted on GitHub:
Please note that the scripts shown here may be out of date. Please see GitHub for the latest.
The following scripts are supplied as examples:
alarmIncrease the measurement and transmission rates when the system is in alarmAlpha_displaydemonstrates writting data to an Alpha Display module over RS232auto_sampler_eight_triggersAutomated sampler program triggers on multiple varied conditions.auto_sampler_volumeTriggers sampler based on volumebin6_fourdemonstrates how to create 4 byte pseudobinary encoded numberscontroldemonstrates triggering a digital output based on a tipping bucket leveldaylightdemonstrates accumulating minutes of daylightdgademonstrates formatting a message in DGA formatevapo_transpirationComputes evapotranspirationevent_based_loggingEvent based logging for a measurementfileDemonstrates file operationsgeneral_purposeprovides functions to access General Purpose Variables (gp)gps_trackerGPS Position Logging Programhttp_post_filedemonstrates TCP/IP TXMODE via HTTP POST of an imagehttp_post_messagedemonstrates TCP/IP TXMODE via HTTP POST of telemetry datainsatINSAT custom formatting utility routineslog_simpledemonstrates log accesslog_task_triggerdemonstrates custom logging based on an event triggerlog_txformatdemonstrates custom tx formatting from the logmeas_daily_rocRain during the last 24 hours, Rate of change measurementsmeas_rain_slidingComputes rainfall during the last 60 and last 90 minutesmeas_simpledemonstrates some simple custom measurementsmedianComputes a median value from many samplesmoving_sumComputes a moving sum value from previous samlesmqtt_raw_transmission_demodemonstrates TCP/IP TXMODE by publishing a MQTT messagenever_logHow to prevent Sat/XLink from logging a measurementNFDRS_TX_Formatdemonstrates SHEF reformatted to NRDRS transmission format using string comprehensionparitydemonstrates adding parity bits to a stringrating_tabledemonstrates rating table to interpolate flow based on stagerating_table_gpdemonstrates an interpolation table using general purpose variablesRS232_demodemonstrates writing to the RS232 portsdi12Module provides SDI-12 examplessetupprovides functions to read and write the setupsmssend an SMS (text) message to a phone numberSonTek_RS232demonstrates reading the SonTek RS232 sensortxformat_group_tabletelemetry data is formatted in group (aka table) modetxformat_simpledemonstrates some simple TX format scripts