https://github.com/themkat/smilefjes.el
Emacs package to check the Norwegian Mattilsynets report on restaurant cleanliness, hygienic factors etc.
https://github.com/themkat/smilefjes.el
emacs emacs-lisp food mattilsynet
Last synced: about 1 year ago
JSON representation
Emacs package to check the Norwegian Mattilsynets report on restaurant cleanliness, hygienic factors etc.
- Host: GitHub
- URL: https://github.com/themkat/smilefjes.el
- Owner: themkat
- License: gpl-3.0
- Created: 2022-09-29T15:22:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-20T17:00:24.000Z (over 1 year ago)
- Last Synced: 2025-04-30T05:48:04.551Z (about 1 year ago)
- Topics: emacs, emacs-lisp, food, mattilsynet
- Language: Emacs Lisp
- Homepage:
- Size: 135 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
[[https://melpa.org/#/smilefjes][file:https://melpa.org/packages/smilefjes-badge.svg]]
* smilefjes.el - Mattilsynet smilefjes directly in Emacs!
*NOTE December 20th 2024: Seems like the API this package relies on has been decommissioned. Looking for alternatives. Please post in [[https://github.com/themkat/smilefjes.el/issues/4][the issue]] if you have found one you wish to share. Like all things from the government in Norway, it eventually turns to shit or gets decommissioned. Fuck the government.*
In Norway, the food administration (Mattilsynet), makes a rating of restaurants and other dining places based upon how clean the place is, how hygienic the staff is when preparing the food etc. Now you can get this rating directly in Emacs! Simply run the interactive function =smilefjes=, and helm will prompt you with everything you need!
[[./smilefjes.gif]]
Why? I wanted a simple project to use [[https://github.com/tkf/emacs-request][request.el]] more seriously, and also experiment with the Mattilsynet Smilefjes API. Had done some small experiments with request.el in the past, but nothing with real public APIs. Wanted a simpler project before experimenting with bigger APIs. Thought others might find it fun or useful(?????) to check these details in Emacs as well. Can probably be prettyfied a lot, as it's VERY hacked together quickly to experiment with these APIs.
** Dependencies
smilefjes currently depends on the following packages:
- [[https://github.com/emacs-helm/helm][helm]]
- [[https://github.com/magnars/dash.el][dash]]
- [[https://github.com/tkf/emacs-request][request.el]]
- [[https://github.com/Wilfred/ht.el][ht.el]]
- (optional) [[https://github.com/iqbalansari/emacs-emojify][emojify-mode]]
** Installation
*** Melpa
The easiest way is to install through [Melpa](https://melpa.org/#/getting-started). Using package-install, you can do it like this interactively:
#+BEGIN_SRC text
M-x package-install RET smilefjes
#+END_SRC
Or in your config file:
#+BEGIN_SRC emacs-lisp
(package-install 'smilefjes)
#+END_SRC
The package can also be installed and configured using use-package: =(use-package smilefjes)= (add the =:load-path= option to install it from local source).
*** From source
Clone this repo locally, add the path to the load path and require smilefjes:
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path "/path/to/smilefjes")
(require 'smilefjes)
#+END_SRC
** Usage
To use, simply run M-x smilefjes, and you will be prompted for the necessary information :)