Skip to content

Instantly share code, notes, and snippets.

@luizcieslak
Last active December 7, 2024 09:32
Show Gist options
  • Save luizcieslak/c351f68a0ca8052db2edbdc61d55efc2 to your computer and use it in GitHub Desktop.
Save luizcieslak/c351f68a0ca8052db2edbdc61d55efc2 to your computer and use it in GitHub Desktop.
how to fix cerebro-timezones and cerebro-converter plugins

In order to fix them, a manual change needs to be done in the plugins/node_modules folder.
For Linux based systems, it is usually under ~/.config/Cerebro/ folder.

cerebro-converter

Two main issues:

Solution:

cerebro-timezones

Issues:

  • API call using HTTP (not HTTPS)
  • Hardcoded API_KEY does not exist anymore

Solution:

  • Open GCP, create a project, create a credential that can use GEOCODE and TIME ZONE APIs.
  • Open plugins/node_modules/cerebro-timezones/dist/index.js (this one will be harder because it's minified)
  • look for Google API URLs by seaching for maps.googleapis.com in your IDE.
  • replace http:// with https://
  • add a &key=YOUR_API_KEY to the geocode API request
  • replace the key in the timezone API request with yours

Reload the app and you should be good!

@caioluders
Copy link

tnks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment