• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

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

Scheduled Pinned Locked Moved Showcase
2 Posts 1 Posters 2.4k Views 1 Watching
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 Offline
    Imanuel
    last edited by Mar 6, 2023, 12:44 PM

    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:

    [card:ImanuelBertrand/MMM-ChatGPT]


    Version 0.0.1

    Initial release

    I 1 Reply Last reply Mar 6, 2023, 2:43 PM Reply Quote 0
    • I Offline
      Imanuel @Imanuel
      last edited by Mar 6, 2023, 2:43 PM

      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
      1 / 1
      • First post
        1/2
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Sam, technical setup by Karsten.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy