Code Monkey home page Code Monkey logo

dynamic-smart-things's People

Contributors

elad-bar avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dynamic-smart-things's Issues

Some progress but errors

Documentation suggestion:
pipinstall aiohttp

Set TOKEN as environment variable for Windows
run sysdm.cpl,
Advanced,
Environment Variables,
New,
Variable Name TOKEN
Variable value "Your Samsung PAT" ,
close and reopen command prompt

Errors so far:
C:\Users\colin\python\dynamic-smart-things-main>python main.py
2024-01-18 19:30:00,870 INFO managers.smart_things_broker Initializing manager
2024-01-18 19:30:00,870 INFO managers.entity_manager Initializing manager
2024-01-18 19:30:00,870 INFO managers.smart_things_broker Initializing data
2024-01-18 19:30:00,870 INFO api.base_api Importing capabilities data
2024-01-18 19:30:01,122 INFO api.base_api Importing devices data
2024-01-18 19:30:02,658 INFO api.base_api Importing locations data
2024-01-18 19:30:02,960 INFO api.capabilities_api Importing Device capabilities data
2024-01-18 19:30:06,493 INFO managers.smart_things_broker Processing imported data
2024-01-18 19:30:06,506 INFO managers.entity_manager Loading Entity recommendation
Traceback (most recent call last):
File "C:\Users\colin\python\dynamic-smart-things-main\main.py", line 64, in
loop.run_until_complete(instance.initialize())
File "C:\Program Files\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\colin\python\dynamic-smart-things-main\main.py", line 50, in initialize
await self._broker.initialize()
File "C:\Users\colin\python\dynamic-smart-things-main\managers\smart_things_broker.py", line 59, in initialize
self._entity_manager.load(self._devices)
File "C:\Users\colin\python\dynamic-smart-things-main\managers\entity_manager.py", line 58, in load
handler(device, component_id, component.capabilities)
File "C:\Users\colin\python\dynamic-smart-things-main\managers\entity_manager.py", line 95, in _power_consumption_report_handler
power_consumption_report_entities = [
^
TypeError: 'NoneType' object is not iterable

Apologies - this is beyond me to fix

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.