gryphius / makerbot-gen5-api

python API for the makerbot 5th generation 3D printers
GNU Lesser General Public License v3.0
33 stars 11 forks source link

Added config saving and updated discover() #3

Closed pomeroyb closed 9 years ago

pomeroyb commented 9 years ago

makerbotapi can now load/save a JSON config file that keeps track of various bots, their ips, names, whether or not we are allowed to save their auth codes, and their auth codes. If no config file is found in the local directory that the python script is running in, makerbotapi will create an empty one.

discover() now performs a single, non-blocking request for data each time it is called. This behavior is now reflected in 'discover.py'.