Rain-forcast is a messenger chatbot tells you when to rain.
yarn
pip3 install -r requires.txt
cp config.sample.json config.json
and write down your configuration (ignore tokens and ssl)mkdir fetch result
we put image downloaded infetch
and result of rain.py inreslt
node server.js
- !!!!there are bugs in fb.js!!!! ** I will use no more messenger paltform.I don't my service is a part of GREED FB service.
- put your key & crt of ssl into your project
cp config.sample.json config.json
and write down your configurationmkdir fetch result
we put image downloaded in fetch andresult
of rain.py inreslt
- create a facebook fan page
- Go to facebook for developer: https://developers.facebook.com/, see Facebook Developer Setup
- add a new messenger app
- create pageToken at Token Generation
- set webhookToken at Webhooks
- select a page to subscribe your webhook to the page event
node server.js
python3 rain.py 00 01 1675 1475
# Truepython3 rain.py 10 11 1675 1475
# True- Outputs should be true with images:
prediction_01.png
orprediction_11.png
inpub/