def initCountly(self, thread_size): global countly countly = Countly("API_URL", "APP_KEY", thread_size, str(sp(Window.width)) + "+" + str(sp(Window.height)))
def initCountly(self, thread_size): global countly countly = Countly("API_URL", "APP_KEY", thread_size, str(screen_resolution.width()) + "x" + str(screen_resolution.height()))
import sys import os.path sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) from common.Countly import Countly temperature = 30 light = 50 countly = Countly("SERVER_URL", "APP_KEY", 5) countly.event('Temperature', temperature) countly.event("Light", light)
def initCountly(self, thread_size): global countly countly = Countly( "API_URL", "APP_KEY", thread_size, str(gtk.gdk.screen_width()) + "x" + str(gtk.gdk.screen_height()))