Skip to content
/ sensors Public

A library for sending datatime series over the network

License

Notifications You must be signed in to change notification settings

elaeon/sensors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sensors

Sensors, is a library to send datatime series from a device to a server over the network or saved them into the device.

Example. First define a function where the data is generated.

#!/usr/bin/python2.7
#This funtion return random numbers
def random_data():
    import random
    return random.uniform(0, 30)

Then, call a sync

if __name__ == '__main__':
    formater = CarbonFormat(SENSOR_NAME)
    sensor_sync = SyncData(SENSOR_NAME, CARBON_HOST, port=CARBON_PORT, formater=formater, delay=2, 
                            batch_size=10, delay_error_connection=10)
    sensor_sync.run(read_temp)

About

A library for sending datatime series over the network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages