https://github.com/anas-araid/mycasermavvf
management fire station webapp and Telegram Bot to be notified of firefighter's activities such as shifts, courses, etc.
https://github.com/anas-araid/mycasermavvf
bot emergency firefighter firefighting php rescue telegram telegram-api telegram-bot telegram-bot-api
Last synced: 4 months ago
JSON representation
management fire station webapp and Telegram Bot to be notified of firefighter's activities such as shifts, courses, etc.
- Host: GitHub
- URL: https://github.com/anas-araid/mycasermavvf
- Owner: anas-araid
- Created: 2019-02-05T17:42:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-03T09:51:46.000Z (over 6 years ago)
- Last Synced: 2024-12-31T06:29:24.826Z (over 1 year ago)
- Topics: bot, emergency, firefighter, firefighting, php, rescue, telegram, telegram-api, telegram-bot, telegram-bot-api
- Language: PHP
- Homepage:
- Size: 2.86 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# myCasermaVVF
Management fire station webapp and Telegram Bot to be notified of firefighter's activities such as shifts, courses, etc.
### WebApp
* Manage firefighters
* Certifications
* Fire vehicle
* Configure squads and shifts
* Communications
* Fire tools
### Telegram Bot
* Using Telegram mobile number auth (if fireman mobile number has been setup in firestation configuration)
* Setting your availability state
* View your and the next weekend squad components and shifts
* Notification shifts
* Show and download your courses
* View your personal data
* Webcams and weather in Trentino
## Getting Started
These instructions will get you a copy of the project to running on your local machine for development and testing.
### Prerequisites
```
* xampp
```
### Installing
#### Set up your server
* Copy this repo into your xampp htdocs folder
#### Set up the database
* Start the XAMPP control panel (xampp-control.exe)
* From the control panel, start Apache and MySQL
* Click "Admin" for MySQL or navigate to localhost/phpmyadmin in your browser
* Copy "db.sql" file into SQL tab and run
#### Configuring
* Navigate to "Configura"
* Set firestation name, email, phone number and password
* Through side menu, all firestation resources could be configured
#### Set up the telegram bot
If you use myCasermaVVF_bot, you don't need setting up anything else (only mobile number in the webapp configuration)
Otherwise if you want to create your own test bot
* Create a bot using telegram bot father
* Host your myCasermaVVF web server online
* Set telegram api webhook
* https://api.telegram.org/your-bot-token/setWebhook?url=yourWebServerUrl/myCasermaVVF/server.php
### Deploying
Due to Altervista problems with the telegram bot, in order to publish the project, it is necessary to use the 'ALTERVISTA' branch which solves all the problems.
## Built With
* [XAMPP](https://www.apachefriends.org/it/index.html) - Web server
* [PHP](http://php.net/manual/it/intro-whatis.php) - Scripting language
* [MDL](https://getmdl.io/) - Material Design Lite
* [Visual Studio Code](https://code.visualstudio.com/) - Visual Studio Code text editor
## Authors
* **Anas Araid** - [asdf1899](https://github.com/asdf1899)