Skip to content

Instantly share code, notes, and snippets.

@sidoh
Created May 30, 2019 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidoh/82de02b85090c97330eaa91d32e92ada to your computer and use it in GitHub Desktop.
Save sidoh/82de02b85090c97330eaa91d32e92ada to your computer and use it in GitHub Desktop.
alarm_clock.json
{
"rotation": 1,
"lines": [
{
"x1": 0,
"y1": 50,
"x2": 300,
"y2": 50
},
{
"x1": 180,
"y1": 0,
"x2": 180,
"y2": 50
},
{
"x1": 120,
"y1": 50,
"x2": 120,
"y2": 150
}
],
"formatters": {
"weather_small": {
"formatter": "cases",
"args": {
"prefix": "/b/",
"cases": {
"01d": "010-sun-32x32.bin",
"01n": "011-moon-32x32.bin",
"02d": "007-cloudy-1-32x32.bin",
"02n": "008-cloudy-32x32.bin",
"03d": "003-clouds-32x32.bin",
"03n": "003-clouds-32x32.bin",
"04d": "003-clouds-32x32.bin",
"04n": "003-clouds-32x32.bin",
"09d": "004-rain-32x32.bin",
"09n": "004-rain-32x32.bin",
"10d": "004-rain-32x32.bin",
"10n": "004-rain-32x32.bin",
"11d": "006-storm-32x32.bin",
"11n": "006-storm-32x32.bin",
"13d": "009-snow-32x32.bin",
"13n": "009-snow-32x32.bin",
"50d": "002-clouds-1-32x32.bin",
"50n": "002-clouds-1-32x32.bin"
},
"default": "001-signs-32x32.bin"
}
},
"weather": {
"formatter": "cases",
"args": {
"prefix": "/b/",
"cases": {
"01d": "010-sun.bin",
"01n": "011-moon.bin",
"02d": "007-cloudy-1.bin",
"02n": "008-cloudy.bin",
"03d": "003-clouds.bin",
"03n": "003-clouds.bin",
"04d": "003-clouds.bin",
"04n": "003-clouds.bin",
"09d": "004-rain.bin",
"09n": "004-rain.bin",
"10d": "004-rain.bin",
"10n": "004-rain.bin",
"11d": "006-storm.bin",
"11n": "006-storm.bin",
"13d": "009-snow.bin",
"13n": "009-snow.bin",
"50d": "002-clouds-1.bin",
"50n": "002-clouds-1.bin"
},
"default": "001-signs.bin"
}
}
},
"text": [
{
"x": 10,
"y": 40,
"font": "FreeMonoBold24pt7b",
"variable": "timestamp",
"formatter": "time",
"args": {
"timezone": "PT",
"format": "%H:%M"
}
},
{
"x": 190,
"y": 18,
"font": "FreeSansBold9pt7b",
"variable": "timestamp",
"formatter": "time",
"update_rect": "datetime",
"args": {
"timezone": "PT",
"format": "%A"
}
},
{
"x": 190,
"y": 40,
"font": "FreeSans9pt7b",
"variable": "timestamp",
"formatter": "time",
"update_rect": "datetime",
"args": {
"timezone": "PT",
"format": "%m/%d/%Y"
}
},
{
"x": 10,
"y": 70,
"font": "FreeSansBold9pt7b",
"static": "Bedtime"
},
{
"x": 10,
"y": 95,
"font": "FreeSans9pt7b",
"variable": "lights-out-time",
"formatter": "time",
"args": {
"timezone": "PT",
"format": "%H:%M"
}
},
{
"x": 10,
"y": 120,
"font": "FreeSans9pt7b",
"variable": "lights-out-time-relative"
},
{
"x": 125,
"y": 70,
"font": "FreeSansBold9pt7b",
"static": "O"
},
{
"x": 155,
"y": 70,
"font": "FreeSans9pt7b",
"variable": "outside_temp",
"formatter": "round"
},
{
"x": 125,
"y": 95,
"font": "FreeSansBold9pt7b",
"static": "H"
},
{
"x": 155,
"y": 95,
"font": "FreeSans9pt7b",
"variable": "forecast_temp",
"formatter": "round"
},
{
"x": 125,
"y": 120,
"font": "FreeSansBold9pt7b",
"static": "SF"
},
{
"x": 155,
"y": 120,
"font": "FreeSans9pt7b",
"variable": "sf_forecast_temp",
"formatter": "round"
}
],
"bitmaps": [
{
"x": 220,
"y": 55,
"w": 64,
"h": 64,
"variable": "weather_icon",
"formatter": "&weather"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment