weatherclock v0.06
parent
35b4611a9c
commit
822b56a6fd
|
|
@ -3,4 +3,4 @@
|
||||||
0.03: Minor layout extra spaces.
|
0.03: Minor layout extra spaces.
|
||||||
0.04: Layout now compatible with Bangle.js 2.
|
0.04: Layout now compatible with Bangle.js 2.
|
||||||
0.05: Use weather condition code for icon selection.
|
0.05: Use weather condition code for icon selection.
|
||||||
0.06: Dev5-New settings to hide the weather icon, day of week, date and/or wind speed.
|
0.06: Dev6-New settings to hide the weather icon, day of week, date and/or wind speed.
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ var rainIcon = require("heatshrink").decompress(atob("mEwwhC/AH4AFgczmYWWDCgWDmc
|
||||||
var stormIcon = require("heatshrink").decompress(atob("mEwwhC/AFEzmcwCyoYUgYXDmYuVGAY0OFwocHC6pNLCxYXYJBQXuCxhhJRpgYKCyBKFFyIXFCyJIFC/4XaO66nU3eza6k7C4IWFGBwXBCwwwO3ewC5AZMC6RaCIxZiI3e7AYYwRCQIIBC4QwPIQIpDC5owDhYREIxgAEFIouNC4orDFyBGBGAcLC6BaFhYWRLSRIFISQXcCyqhRAH4Az"));
|
var stormIcon = require("heatshrink").decompress(atob("mEwwhC/AFEzmcwCyoYUgYXDmYuVGAY0OFwocHC6pNLCxYXYJBQXuCxhhJRpgYKCyBKFFyIXFCyJIFC/4XaO66nU3eza6k7C4IWFGBwXBCwwwO3ewC5AZMC6RaCIxZiI3e7AYYwRCQIIBC4QwPIQIpDC5owDhYREIxgAEFIouNC4orDFyBGBGAcLC6BaFhYWRLSRIFISQXcCyqhRAH4Az"));
|
||||||
// err icon - https://icons8.com/icons/set/error
|
// err icon - https://icons8.com/icons/set/error
|
||||||
var errIcon = require("heatshrink").decompress(atob("mEwwkBiIA/AH4AZUAIWUiAXBWqgXXdIYuVGCgXBgICCIyYXCJCQTDC6QrEMCQSEJCQRFC6ApGJCCiDDQSpQFAYXEJBqNGJCA/EC4ZIOEwgXFJBgNEAhKlNAgxIKBgoXEJBjsLC5TsIeRycMBhRrMMBKzQEozjOBxAgHGww+IA6wfSH4hnIC47OMSJqlRIJAXCACIXaGoQARPwwuTAH4A/ABw"));
|
var errIcon = require("heatshrink").decompress(atob("mEwwkBiIA/AH4AZUAIWUiAXBWqgXXdIYuVGCgXBgICCIyYXCJCQTDC6QrEMCQSEJCQRFC6ApGJCCiDDQSpQFAYXEJBqNGJCA/EC4ZIOEwgXFJBgNEAhKlNAgxIKBgoXEJBjsLC5TsIeRycMBhRrMMBKzQEozjOBxAgHGww+IA6wfSH4hnIC47OMSJqlRIJAXCACIXaGoQARPwwuTAH4A/ABw"));
|
||||||
|
var dummyIcon = require("heatshrink").decompress(atob("gMBwMAwA"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Choose weather icon to display based on condition.
|
Choose weather icon to display based on condition.
|
||||||
|
|
@ -134,7 +135,7 @@ let fontTemp = settings.wind ? "10%" : "20%";
|
||||||
let fontWind = settings.wind ? "10%" : "0%";
|
let fontWind = settings.wind ? "10%" : "0%";
|
||||||
let labelDay = settings.day ? "THU" : "";
|
let labelDay = settings.day ? "THU" : "";
|
||||||
let labelDate = settings.date ? "01/01/1970" : "";
|
let labelDate = settings.date ? "01/01/1970" : "";
|
||||||
let srcWeather = settings.icon ? sunIcon : "";
|
let srcWeather = settings.icon ? sunIcon : dummyIcon;
|
||||||
var clockLayout = new Layout( {
|
var clockLayout = new Layout( {
|
||||||
type:"v", c: [
|
type:"v", c: [
|
||||||
{type:"txt", font:"35%", halign: 0, fillx:1, pad: 8, label:"00:00", id:"time" },
|
{type:"txt", font:"35%", halign: 0, fillx:1, pad: 8, label:"00:00", id:"time" },
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "weatherClock",
|
"id": "weatherClock",
|
||||||
"name": "Weather Clock",
|
"name": "Weather Clock",
|
||||||
"shortName": "Weather Clock",
|
"shortName": "Weather Clock",
|
||||||
"version": "0.07",
|
"version": "0.06",
|
||||||
"description": "A clock which displays current weather conditions (requires Gadgetbridge and Weather apps).",
|
"description": "A clock which displays current weather conditions (requires Gadgetbridge and Weather apps).",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"dependencies": {"weather":"app"},
|
"dependencies": {"weather":"app"},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue