# Install the dependencies, builds the action and creates the config.ini file.
sh setup.sh
Don't forget to edit the config.ini
file.
To be able to make calls to the API, you must have a OpenWeatherMap API key (5 day / 3 hour forecast).
An assistant containing the intents listed below must be installed on your system. Deploy it following these instructions.
- Dev mode:
# Dev mode watches for file changes and restarts the action.
npm run dev
- Prod mode:
# 1) Lint, transpile and test.
npm start
# 2) Run the action.
npm run launch
This app only supports french 🇫🇷 and english 🇬🇧.
Get the weather forecast at a given location
Hey Snips, what will be the weather for tuesday?
Get the weather forecast for a specific date
Hey Snips, the weather for Seffner in Belarus?
Get the weather forecast at a given location for a specific date
Hey Snips, tell me the weather for the day after tomorrow in Ohio
Get the temperature report for the given location
Hey Snips, what's the current temperature in Paris?
Get the temperature report for a specific date
Hey Snips, temperature forcast for tonight
Get the weather forecast for the given location for a specific date
Hey Snips, give me the predicted temperatures for Spain over the week
Ask for a specific question about the weather including a date
Hey Snips, should I expect rain today? Hey Snips, should I take my umbrella?
Ask for a specific question about the weather including a location and a date
Hey Snips, should we expect snow flakes this afternoon at 6pm in France?
In the src/index.ts
file:
// Replace 'error' with '*' to log everything
logger.enable('error')
Requires mosquitto to be installed.
npm run test
In test mode, i18n output and http calls are mocked.
- http: mocks are written in
tests/httpMocks/index.ts
- i18n: mocked by
snips-toolkit
, see the documentation.