from pyhubitat import MakerAPI
from functools import partial
from bokeh.layouts import row, layout, column
from bokeh.models.widgets import TextInput, Dropdown, Slider, Button, Div
from bokeh.plotting import figure, output_file, show, save, curdoc
from bokeh.models.callbacks import CustomJS
from astral import LocationInfo
from astral.location import Location
from astral.sun import sun
import datetime
kwds = {}
with open("/Users/richarddubois/Code/Home/hubitat_connect.txt") as f:
for line in f:
(key, val) = line.split()
kwds[key] = val
access_token = kwds["token"]
access_url = kwds["url"]
This file has been truncated. show original