A robot to book a boat on myfleet.eu and move it to the requested date
1.3K
With is program you can automate booking a element of you club if the fleet is managed by: my-fleet.eu.
The default values within the system are for the club HetSpaarne but you can change it by setting the clubId parameter.
The system supports whatsapp sending of message. By default enabled an you should once scan the whatsapp code dumped in the logfile.
For development you can use to run the backend part and whatsapp disabled. Default server port is 1323
go run main.go -whatsApp=false -logLevel=DEBUG
and for the front end you can use the command below. The app wil be running on port 3000
cd app
#Once run install, to install all npm packages
npm install
#Followed by
npm run start
The system has been setup to build and automatically push to hub.docker.com. But for local build you can use
docker build --tag 3pidev/myfleetrobot .
docker push 3pidev/myfleetrobot
Running and testing the build file can be done by
docker run -d -p 1323:1323 -e JSONUSR=admin -e JSONPWD=admin --name=fleetrobot --restart unless-stopped 3pidev/myfleetrobot:latest
The system wil move the booking by finding the last option witch is bookable and then move it every 15min.
SunRise SunSet
| |
----------------------------------------------------------------------------------------------
| | | | |
| BoatList.EpochStart | BoatList.EpochEnd |
BoatList.EpochDate | |
| Booking.EpochStart Booking.EpochEnd
Booking.EpochDate < Booking.Duration >
Content type
Image
Digest
sha256:d7e34cb00…
Size
16.5 MB
Last updated
over 2 years ago
docker pull 3pidev/myfleetrobot