Giter Club home page Giter Club logo

Comments (3)

0n3man avatar 0n3man commented on June 9, 2024

The application by default assumes you're using sqlite3 as your database. Someone added code to include support for MariaDB however they didn't include instructions on how to add the additional modules into appdaemon. As it turns out the home assistant team moved the the location of the history data in the database so the application is broke. I just made some changes that pull the information from the new location. When I did this I got the same error you received about the missing module. While I don't use MariaDB I'm trying to see if I can figure out where to include the required modules in the Home Assistant configuration. If I figure it out I'll post you an update. If I don't figure it out I'll just submit the change with the MariaDB code commented out. At which point hopefully whoever added the MariaDB change will provide the additional details.

from replaylightshistory.

0n3man avatar 0n3man commented on June 9, 2024

So to address the issue you need to modify your addons.json file that's in the base directory for home assistant. On my supervised install of home assistant this is /use/share/hassio/addons.json. If you search for packages you should find this section:

'''
"options": {
"system_packages": [],
"python_packages": [],
"init_commands": []
},

'''
You need to add in PyMySQL as shown below
'''
"options": {
"system_packages": [],
"python_packages": [
"PyMySQL"
],
"init_commands": []
},

'''
At which point I rebooted to get HA to update the appdaemon docker container and include the PyMySQL package.

from replaylightshistory.

duckbert avatar duckbert commented on June 9, 2024

Thank you for taking care of this so quickly. Adding PyMySQL fixed the issues that I had. I am currently testing the replay with my lights and everything seems to run smoothly. Great work and fantastic add-on

from replaylightshistory.

Related Issues (13)

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.