SvenWerlen / moulinette-imagesearch

Moulinette Forge submodule which provides capabilities for searching images and generating articles
https://www.patreon.com/moulinette
MIT License
4 stars 1 forks source link
foundryvtt image search

Moulinette Forge Image Search (Foundry VTT)

GitHub tags (latest by date) License GitHub Download Tested on forge-vtt.com Support me on Patreon

This is a submodule for Moulinette Core. See Moulinette Core for an overview of all modules.

Search image and generate article

You need images to enrich your game/campaign ?

Image search on Bing
(Images on the screenshot are from Microsoft Bing search engine. Images are publicly available but their license varies.)

Generate your own API key and Engine ID for Google Search

The module requires a valid API key and Engine ID for using Google Search. You'll have to create a Google Cloud account and a create a new project. The 100 first search queries per day are free. However, Moulinette always executes 3 queries in order to get 30 results. That means that only the first 33 moulinette searches per day will be free while using Google Search.

Configure Google Search Configure Google Search

Generate your own API key for Bing Search

The module requires a valid API key for using Bing Search. You'll have to create a Microsoft Azure account and a create a new service. The "Free" Tier provides you 1000 requests per month for free.

The following steps assume that you have a basic undestanding of Microsoft Azure and assumes that you already created a subscription

  • From the dashboard / home page, click on "Create a resource"
  • In the search bar, search for "Bing Search" and select "Bing Search v7"
  • Click "Create"
    • Enter a name for your service
    • Select your existing subscription
    • Choose a pricing tier according to your needs (Free tier should fit in most cases)
    • Choose an existing Resource Group or create a new
    • Check the box to confirm conditions
    • Create
  • Go to the resource after it has been created
    • Select "Key and EndPoint"
    • Copy one of the two keys (doesn't matter, both will work)
  • In Foundry VTT, under "Configure Settings", specify your key for the "Bing Search API key"
  • Voilà!

Configure Bing Search

Install the module

To install the module from FoundryVTT:

  1. Start FVTT and browse to the Game Modules tab in the Configuration and Setup menu
  2. Search for "Moulinette Forge" and click install on the desired module

To manually install the module (not recommended), follow these instructions:

  1. Start FVTT and browse to the Game Modules tab in the Configuration and Setup menu
  2. Select the Install Module button and enter the following URL: https://raw.githubusercontent.com/svenwerlen/moulinette-imagesearch/master/module.json
  3. Click Install and wait for installation to complete

Install custom module

Support me on Patreon

If you like my work and want to support me, consider becoming a patreon!

https://www.patreon.com/moulinette

You can also join Moulinette Discord