MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    [MMM-ChatGPT] fetch text from the ChatGPT API and display it on the mirror

    Showcase
    1
    2
    1584
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      Imanuel last edited by

      Description:

      Fetch a response from ChatGPT using a configurable prompt at a configurable interval.
      It can use text that is currently displayed on the mirror (from the DOM) as part of the prompts. For details on how to read the data from the DOM, please read the documentation on Github.

      Examples:

      This is the weather: '{{see documentation}}'
      Describe the weather in your own words.
      

      Or:

      This is the current weather: '{{see documentation}}'
      This is the weather forecast: '{{see documentation}}'
      Describe the weather in the style of the Dude from the movie "The Big Lebowski".
      

      Or simply:

      Make a joke.
      

      Font size and styling can be configured.

      Screenshots

      No screenshot as of now, but in visual terms, it’s just text.

      Requirements

      A paid OpenAI account is needed for an API key. You can set a budget threshold to avoid unexpected bills, but in general, the usage of the API is cheap enough to be essentially free for moderate mirror use (i.e. if you don’t set it to refresh every second).
      Current price is something like $ 0.01 for 5000 words, according to OpenAI pricing details.

      Download:


      Version 0.0.1

      Initial release

      I 1 Reply Last reply Reply Quote 0
      • I
        Imanuel @Imanuel last edited by

        This is the link: https://github.com/ImanuelBertrand/MMM-ChatGPT
        The [ card ] syntax from the showcase guidelines doesn’t seem to work, or maybe I made a mistake.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy