<reponame>derekwacks/Fridge-Temp-Control-Photon-MAX31855
"""
#
# Author: <NAME>
# 7/8/19
# Thank you to <NAME> for the nifty PyParticleIO 
# https://github.com/youngsoul/PyParticleIO
#
"""
# Edit Access token & Name 
#

import time 

# Connects to Particle Cloud with personal access token 
from pyparticleio.ParticleCloud import ParticleCloud
access_token = "INSERT_ACCESS_TOKEN" ### CHANGE THIS 
particle_cloud = ParticleCloud(username_or_access_token=access_token)

# Lists all devices associated with Access Token 
all_devices = particle_cloud.devices
for device in all_devices:
    print("Device: {0}".format(device))

#Python 2.7 prints 
print("")    
print(particle_cloud.NAME.currTemp) #First temp reading 
print("")

#Loops endlessly
while True: 
    time.sleep(1)
    print(particle_cloud.NAME.currTemp)

"""
#
# Author: <NAME>
# 7/8/19
# Thank you to <NAME> for the nifty PyParticleIO 
# https://github.com/youngsoul/PyParticleIO
#
"""
# Edit Access token & Name 
#

import time 

# Connects to Particle Cloud with personal access token 
from pyparticleio.ParticleCloud import ParticleCloud
access_token = "INSERT_ACCESS_TOKEN" ### CHANGE THIS 
particle_cloud = ParticleCloud(username_or_access_token=access_token)

# Lists all devices associated with Access Token 
all_devices = particle_cloud.devices
for device in all_devices:
    print("Device: {0}".format(device))

#Python 2.7 prints 
print("")    
print(particle_cloud.NAME.currTemp) #First temp reading 
print("")

#Loops endlessly
while True: 
    time.sleep(1)
    print(particle_cloud.NAME.currTemp)
# # Author: <NAME> # 7/8/19 # Thank you to <NAME> for the nifty PyParticleIO  # https://github.com/youngsoul/PyParticleIO # # Edit Access token & Name # # Connects to Particle Cloud with personal access token ### CHANGE THIS # Lists all devices associated with Access Token #Python 2.7 prints #First temp reading #Loops endlessly