Code Monkey home page Code Monkey logo

nettleieelvia's People

Contributors

uphillbattle avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nettleieelvia's Issues

Does not handle Daylight Saving Time well

The app only checks if DST is applicable NOW. Should work well most of the time, but when the day on which DST goes either ON or OFF is either today or tomorrow, the app does not fetch the correct number of hours.

Error in logs

Hi.

Found your code and wanted to test it out on my appdaemon, but I get the following error:

2022-07-09 18:53:52.199027 WARNING nettleie_elvia: ------------------------------------------------------------
--
2022-07-09 18:53:52.198939 WARNING nettleie_elvia: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/appdaemon/threading.py", line 904, in worker funcref(self.AD.sched.sanitize_timer_kwargs(app, args["kwargs"])) File "/conf/apps/nettleie_elvia.py", line 22, in hourly_call self.set_states() File "/conf/apps/nettleie_elvia.py", line 91, in set_states self.priceInfo = self.maler_response["gridTariffCollections"][0]["gridTariff"]["tariffPrice"] TypeError: 'NoneType' object is not subscriptable
2022-07-09 18:53:52.198676 WARNING nettleie_elvia: ------------------------------------------------------------
2022-07-09 18:53:52.198496 WARNING nettleie_elvia: Worker Ags: {'id': '2cb9a4e24afa49339338e2c09b1c2af1', 'name': 'nettleie_elvia', 'objectid': '80efcaa027e447caa22fd0b3c3076cee', 'type': 'scheduler', 'function': <bound method NettleieElvia.hourly_call of <nettleie_elvia.NettleieElvia object at 0x14c33ba11be0>>, 'pin_app': True, 'pin_thread': 0, 'kwargs': {'__thread_id': 'thread-0'}}
2022-07-09 18:53:52.198343 WARNING nettleie_elvia: Unexpected error in worker for App nettleie_elvia:


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.