ftclock README and better screenshots

pull/1152/head
The Dod 2021-12-21 01:34:30 +02:00
parent 964fa27bfb
commit f13d854779
5 changed files with 20 additions and 3 deletions

View File

@ -5069,11 +5069,12 @@
"version": "0.01",
"description": "A clock that tells when and where it's going to be 4:20 next",
"icon": "app.png",
"screenshots": [{"url":"screenshot.png"}],
"screenshots": [{"url":"screenshot.png"}, {"url":"screenshot1.png"}],
"type": "clock",
"tags": "clock",
"supports": ["BANGLEJS","BANGLEJS2"],
"allow_emulator": true,
"readme": "README.md",
"storage": [
{"name":"ftclock.app.js","url":"app.js"},
{"name":"fourTwenty","url":"fourTwenty.js"},

16
apps/ftclock/README.md Normal file
View File

@ -0,0 +1,16 @@
# Four Twenty Clock
A clock that tells when and where it's going to be [4:20](https://en.wikipedia.org/wiki/420_(cannabis_culture%29) next
![screensot](screenshot.png) ![screenshot at 4:20](screenshot1.png)
## Note
Once in a while, there'd be updates to the [timezone database](https://timezonedb.com/download) which
would require updating `fourTwentyTz.js`. I'll do my best to release a new version every time this happens,
but if you ever need to do this yourself, just run `python mkFourTwentyTz.py` (after downloading the timezone CSV files.
See comment at the top of the script).
## Creator
[Nimrod Kerrett](zzzen.com)

View File

@ -1,4 +1,4 @@
# Generates tz.js[on] from time zone csv files
# Generates fourTwentyTz.js from time zone csv files
# get latest files from https://timezonedb.com/download
import csv,json,time,os,math
countries = {}
@ -35,7 +35,7 @@ for k in zones:
continue
offsdict[d["offs"]] = offsdict.get(d["offs"],[])+[d["name"]]
res = sorted([[k,sorted(offsdict[k])] for k in offsdict],key=lambda x:-x[0])
js = open("tz.js","w")
js = open("fourTwentyTz.js","w")
js.write("// Generated by mk420tz.py - see https://github.com/thedod/BangleApps/420clock\n")
js.write("// (version: {0})\n".format(time.ctime(time.time())))
js.write("// Data source: https://timezonedb.com/files/timezonedb.csv.zip\n")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB