Skip to content

A WordPress plugin for travel price monitoring; shows the lowest trip price for a given route & time range.

Notifications You must be signed in to change notification settings

wetterkrank/flymon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Flymon

A WordPress plugin to display the lowest travel prices for given routes/dates in your blog. Powers the flight price monitor here: https://escapefromberl.in

Installation

Download the plugin, copy the folder flightprices-monitor into the plugins directory; activate. Open Settings -> Flymon, add your Kiwi.com API key + affiliate id for deeplinks.

Usage

To display the price in your post or page, insert the shortcode trip_price in the paragraph.

Shortcode parameters & examples (+ default values):

  • from: BER, berlin_de (required)
  • to: MUC, innsbruck_at (required)
  • earliest: 2023-01-30, tomorrow (now)
  • latest: 2023-12-31, +2 weeks (+3 months from now)
  • min_days (none)
  • max_days (none)
  • max_stops (0)
  • transport: aircraft, bus, train -- comma-separated (aircraft)
  • currency (EUR)
  • locale (en)
  • deeplink_type: search|booking (search)

For locations, use IATA codes or check out Kiwi's locations API.
For dates, you can use a wide range of expressions -- whatever can be parsed by PHP's strtotime().
For return trip search, both max and min days at destination must be specified. If none are set, we search for one way.

Examples:

[trip_price from="BER" to="MUC" earliest="tomorrow" latest="+6 months" currency="EUR"]
[trip_price from="LON" to="IST" earliest="+1 week" latest="+1 month" min_days="6" max_days="8" currency="GBP"]
[trip_price from="AMS" to="PAR" latest="+3 months" min_days="2" max_days="3" transport="train,bus"]
[trip_price from="NYC" to="TYO" transport="bus"]

License

This plugin is licensed under the GPL v2 or later.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

A copy of the license is included in the root of the plugin’s directory. The file is named LICENSE.

About

A WordPress plugin for travel price monitoring; shows the lowest trip price for a given route & time range.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published