Difference between revisions of "Implementations/Utilities"

From Geohashing
imported>Eupeodes
(Hashie (IRC bot))
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
== Comic Creator ==
 
== Comic Creator ==
 
{{30w compliant|yes=1}}
 
{{30w compliant|yes=1}}
A python class to recreate [http://xkcd.com/426/ the original comic], but for any given date with your own coordinates! Below shows the comic for the first [[2008-05-24_53_6|North East Netherlands meetup]]. Although it fetches the [[Dow]] itself, you can add <code>&dowjones=12345.67</code> if it doesn't do so correctly (e.g., peeron.com is down). Created by [[User:Hugo|Hugo]].
+
A python class to recreate [http://xkcd.com/426/ the original comic], but for any given date with your own coordinates! Created by [[User:Hugo|Hugo]].
http://www.astro.rug.nl/~buddel/cgi-bin/geohashingcomic/geohashingcomic.cgi?year=2008&month=5&day=24&lat=55.218512&lon=6.566854
+
 
You can download the [http://www.astro.rug.nl/~buddel/cgi-bin/geohashingcomic/ script] as well if you wish.
+
The comic creator has been moved to github: https://github.com/hugobuddel/geohashingcomic
 +
 
 +
It used to run as a cgi service, but these are all down now.
  
 
In the image, [[Dow]] values less than 10,000.00 are padded with leading spaces, however in the algorithm it is not so it is compliant with other the algorithms. As [[User:Tjtrumpet2323|Tim P]] suggested, the comic is akin to all the bank cheques with "19__" printed on them being used in 2000.  The "form" has 5+2 "boxes" because that's how [[Dow]] prices are now, but that doesn't mean it can't be different.
 
In the image, [[Dow]] values less than 10,000.00 are padded with leading spaces, however in the algorithm it is not so it is compliant with other the algorithms. As [[User:Tjtrumpet2323|Tim P]] suggested, the comic is akin to all the bank cheques with "19__" printed on them being used in 2000.  The "form" has 5+2 "boxes" because that's how [[Dow]] prices are now, but that doesn't mean it can't be different.
Line 10: Line 12:
 
* The font sizes are not exactly as the original and there can still be some alignment problems.
 
* The font sizes are not exactly as the original and there can still be some alignment problems.
 
* The -0 issue is ignored. Only if you enter -0 as an integer you get an incorrect outcome. You are supposed to enter your own location as a float, up to 6 decimals, everything is okay even when you enter -0.0.
 
* The -0 issue is ignored. Only if you enter -0 as an integer you get an incorrect outcome. You are supposed to enter your own location as a float, up to 6 decimals, everything is okay even when you enter -0.0.
 
;Backup
 
Original has stopped working. [[User:Draradech|Draradech]] set up a backup here (same code):
 
http://draradech.de/cgi-bin/comic.py?year=2008&month=5&day=24&lat=55.218512&lon=6.566854
 
 
== Automatic GPX File Generator ==
 
{{30w compliant|no=1}}
 
I have modified the sample perl implementation so that it automatically generates a .gpx file which you can upload to your favourite GPS device/software. [http://discarded-ideas.org/files/geohash.pl Download here]
 
Before you use the script, you need to modify it and put your own lat/lon values into the corresponding variables at the beginning. -- [[User:Wansti|Wansti]]
 
 
== GeohashGenerator for Popfly ==
 
{{30w compliant|yes=1}}
 
I have created a [http://www.popfly.com Popfly] block to use for creating mashups at http://www.popfly.com/users/rbuckton/GeohashGenerator.  Can be integrated with Virtual Earth, etc. --[[User:rbuckton|rbuckton]]
 
 
== Geohash module for phenny IRC bot (currently offline)==
 
Provides geohashing related lookups and helpful functions for the #geohashing IRC channel. Documentation at: [[:User:Relet/Shmulik|Relet/Shmulik]]
 
  
 
== Hashie (IRC bot) ==
 
== Hashie (IRC bot) ==
 
{{30w compliant|yes=1}}
 
{{30w compliant|yes=1}}
Because the above bot and relet are not online Eupeodes created a new bot. Over the coming time features will be implemented in an attempt to fill the gap left by shmulik. Documentation can be found on [[User:Eupeodes/Hashie|Eupeodes/Hashie]]
+
Because the Shmulik bot and relet are not online Eupeodes created a new bot. Over the coming time features will be implemented in an attempt to fill the gap left by shmulik. Documentation can be found on [[User:Eupeodes/Hashie|Eupeodes/Hashie]]
  
 
== Probability Calculators ==
 
== Probability Calculators ==
 
 
These do not calculate the hash, but instead the probability of the hashpoint to land in certain areas.
 
These do not calculate the hash, but instead the probability of the hashpoint to land in certain areas.
  
Line 48: Line 33:
 
[[User:AeroIllini/GeoHistory]]
 
[[User:AeroIllini/GeoHistory]]
  
== geohashing-gpx.heroku.com ==
+
==notify-send bash tool==
 +
Linux users can use [https://github.com/cyclingzealot/bin/blob/master/geoHashNote.bash this bash script] to give them desktop warnings of nearby geohashes.  notify-send, bc, sed, xml_grep are needed to run the tool.  It will but has not been tested within cron at the time of this writting.
 +
 
 +
==Regiohashing Minesweeper Tool==
 +
These were created to help people display their [[Regional geohashing achievement|regiohash achievement]] progress.
 +
* [[User:Hessophanes/Regiohashing|The original]], by [[User:Hessophanes|Hessophanes]] ''(No longer works)''
 +
* [[User:XXOs/Regiohashing|A recreation]], by [[User:XXOs|XXOs]]
 +
 
 +
==Mepohash==
 
{{30w compliant|yes=1}}
 
{{30w compliant|yes=1}}
[[User:Alech|Alech]] built a [http://geohashing-gpx.heroku.com web service] to get the hash point for a given graticule and day (or for all currently known upcoming ones) in GPX format for use with QLandkarte GT and his Garmin eTrex Legend HCX. It also supports surrounding graticules and has a neat little hack to look up neighbouring (bus, tram, train) stops (this has nothing to do with GPX, OTOH). Check out its [http://geohashing-gpx.heroku.com documentation], [git://git.alech.de/geohashing_gpx.git Git repository] or [http://shiftordie.de/blog/2012/03/18/geohashing-with-qlandkartegt/ information how to use it with QLandkarte GT] and let me know any feature requests/bug reports. The hash point data comes from relet's JSON web service, BTW. --[[User:Alech|Alech]] 15:07, 18 March 2012 (EDT)
+
 
 +
[https://mepo.milesalan.com Mepo] is "a fast, simple, hackable OSM map viewer for mobile and desktop Linux." It also happens to be my maps app of choice. Due to it's scriptable nature, I naturally wanted to integrate geohashing into my map solution to make geohashing on my [https://pine64.org/pinephone Pinephone] as seamless as possible. Also, as someone newer to bash scripting this was an interesting exercise in creating an implementation from scratch. I bring to you mepo_geohash.sh, a simple 30W compliant script that opens Mepo to the detected graticule's hashpoint of the day. By moving the map and calling the script again, you can get the hashpoint for the graticule you moved to. You can view the script at [https://lists.sr.ht/~mil/mepo-devel/patches/36811 this mailing list], whether it gets accepted into the main project or not I hope someone can get use out of this handy little script.
 +
 
 +
[[User:Hamblingreen]]
 +
 
 
[[Category:Implementations]]
 
[[Category:Implementations]]

Latest revision as of 07:16, 14 November 2022

Comic Creator

This implementation IS FULLY 30W-compliant.

A python class to recreate the original comic, but for any given date with your own coordinates! Created by Hugo.

The comic creator has been moved to github: https://github.com/hugobuddel/geohashingcomic

It used to run as a cgi service, but these are all down now.

In the image, Dow values less than 10,000.00 are padded with leading spaces, however in the algorithm it is not so it is compliant with other the algorithms. As Tim P suggested, the comic is akin to all the bank cheques with "19__" printed on them being used in 2000. The "form" has 5+2 "boxes" because that's how Dow prices are now, but that doesn't mean it can't be different.

Bugs
  • The font sizes are not exactly as the original and there can still be some alignment problems.
  • The -0 issue is ignored. Only if you enter -0 as an integer you get an incorrect outcome. You are supposed to enter your own location as a float, up to 6 decimals, everything is okay even when you enter -0.0.

Hashie (IRC bot)

This implementation IS FULLY 30W-compliant.

Because the Shmulik bot and relet are not online Eupeodes created a new bot. Over the coming time features will be implemented in an attempt to fill the gap left by shmulik. Documentation can be found on Eupeodes/Hashie

Probability Calculators

These do not calculate the hash, but instead the probability of the hashpoint to land in certain areas.

  • Land usage - calculates the probability of certain types of land (forests, water, and the like).
  • Public transport probability - calculates the probability of a certain distance from public transport.

HashPlacer

The HashPlacer is a perl script that allows you to define limit boxes on a map, and will notify you via email if the day's geohash point lands in one of these boxes. This is especially useful if you define a limit box surrounding your favorite park, or your neighborhood, or even your couch. Currently the only areas supported are "boxes"... two latitude points and two longitude points define the corners of a graticule-shaped "box".

User:AeroIllini/HashPlacer

GeoHistory

GeoHistory is a perl script that outputs a [kml] file containing every historical geohash point in a specific graticule since a specified date. This can be used to get a retroactive Couch Potato Award, apply for a Curse of Unawareness Award, or simply study past geohash points.

User:AeroIllini/GeoHistory

notify-send bash tool

Linux users can use this bash script to give them desktop warnings of nearby geohashes. notify-send, bc, sed, xml_grep are needed to run the tool. It will but has not been tested within cron at the time of this writting.

Regiohashing Minesweeper Tool

These were created to help people display their regiohash achievement progress.

Mepohash

This implementation IS FULLY 30W-compliant.

Mepo is "a fast, simple, hackable OSM map viewer for mobile and desktop Linux." It also happens to be my maps app of choice. Due to it's scriptable nature, I naturally wanted to integrate geohashing into my map solution to make geohashing on my Pinephone as seamless as possible. Also, as someone newer to bash scripting this was an interesting exercise in creating an implementation from scratch. I bring to you mepo_geohash.sh, a simple 30W compliant script that opens Mepo to the detected graticule's hashpoint of the day. By moving the map and calling the script again, you can get the hashpoint for the graticule you moved to. You can view the script at this mailing list, whether it gets accepted into the main project or not I hope someone can get use out of this handy little script.

User:Hamblingreen