Skip to content

Instantly share code, notes, and snippets.

@tolgahancepel
Created May 13, 2022 18:09
Show Gist options
  • Select an option

  • Save tolgahancepel/1eaf369c168c2931f3d443ba62c3676c to your computer and use it in GitHub Desktop.

Select an option

Save tolgahancepel/1eaf369c168c2931f3d443ba62c3676c to your computer and use it in GitHub Desktop.
# -----------------------------------------------------------------------------
# Callback for updating temperature data
# -----------------------------------------------------------------------------
@app.callback(
Output('temperature', 'children'),
Input('update', 'n_intervals')
)
def update_temperature(timer):
return ("Temperature: " + str(current_temperature))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment