Skip to content

nordai/GeoNueBOT

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

You must have PHP, POSTGIS DB, GEOSERVER, UMAP configured and a Telegram Bot.

In localhost is possible to launch php start.php 'sethook' to set start.php as webhook php start.php 'removehook' to remove start.php as webhook php start.php 'getupdates' to run getupdates.php

After setup webhook is possible to use telegram managed by webhost

To use the system

  • Make a Telegram Bot
  • Send Location to it
  • Reply to bot with a text description or image, video, audio, document
  • All data are sent in the database
  • Data are mapped now

Rename settings_t_template.php in settings_t.php and put inside

  • TOKEN of telegram Bot
  • Link to webhook if you want use webhook
  • Create DB and table with table_postgis.sql
  • Username e Password of DB BOT
  • Username e Password of DB UMAP
  • URL and layer name GEOSERVER

To use the application use "start.php getupdates" for manual execution. "start.php sethook" for Telegram webhook execution.

A simple example is implemented here http://www.geonue.com/tour/geonue-bot/

Good Luck!

About

Usa Telegram per gestire le segnalazioni su urbanistica, trasporti, cultura, turismo e ambiente nel tuo comune.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages