Code Monkey home page Code Monkey logo

Comments (9)

benphelps avatar benphelps commented on May 22, 2024 1

Fixed in the latest commit, I'll build a release soon.

from homepage.

benphelps avatar benphelps commented on May 22, 2024

Whoops, I’ll get that patched up soon.

from homepage.

jackblk avatar jackblk commented on May 22, 2024

@benphelps I don't use Weather API but I think it is also affected 😄

from homepage.

benphelps avatar benphelps commented on May 22, 2024

This has been fixed (optionally) in the latest commit, 5a8defb.

You can see some initial documentation here, https://github.com/benphelps/homepage/wiki/Settings

from homepage.

benphelps avatar benphelps commented on May 22, 2024

I'm going to close this @jackblk, if you find something wrong, feel free to reopen :)

from homepage.

jackblk avatar jackblk commented on May 22, 2024

@benphelps hmm I'm unable to use the new config

Error log:

TypeError: Cannot read properties of undefined (reading 'join')
    at getSettings (/app/.next/server/chunks/640.js:39:65)
    at handler (/app/.next/server/pages/api/widgets/openweathermap.js:57:98)
    at Object.apiResolver (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/api-utils/node.js:184:15)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async NextNodeServer.runApi (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/next-server.js:403:9)
    at async Object.fn (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/base-server.js:493:37)
    at async Router.execute (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/router.js:222:36)
    at async NextNodeServer.run (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/base-server.js:612:29)
    at async NextNodeServer.handleRequest (/app/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/base-server.js:311:20)

settings.yaml

providers:
  openweathermap: abcdef

widgets.yaml

- openweathermap:
    latitude: 10
    longitude: 100
    units: metric # or imperial
    cache: 5 # Time in minutes to cache API responses, to stay within limits
    provider: openweathermap

from homepage.

jackblk avatar jackblk commented on May 22, 2024

Wow that's so fast. Just a suggestion, we should add a good eslint config then add linting stage into the actions flow. I can help setting that up later if you don't mind. It will avoid small syntax issues like this.

from homepage.

benphelps avatar benphelps commented on May 22, 2024

Yeah, I have some eslint configs I use for production work, I'll pull them over.

from homepage.

github-actions avatar github-actions commented on May 22, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns.

from homepage.

Related Issues (20)

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.