Use Bangle's temperature instead of non-working service
parent
591c1f8cc5
commit
c31d94b644
|
|
@ -2,4 +2,5 @@
|
||||||
0.02: Remove un-needed fonts to improve memory usage
|
0.02: Remove un-needed fonts to improve memory usage
|
||||||
0.03: Tell clock widgets to hide.
|
0.03: Tell clock widgets to hide.
|
||||||
0.04: Swipe down to see widgets, step counter now just uses getHealthStatus
|
0.04: Swipe down to see widgets, step counter now just uses getHealthStatus
|
||||||
0.05: Report latest HRM rather than HRM 10 minutes ago (fix #2395)
|
0.05: Report latest HRM rather than HRM 10 minutes ago (fix #2395)
|
||||||
|
0.06: Use watch temperature
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
<img src="https://user-images.githubusercontent.com/2981891/175355586-1dfc0d66-6555-4385-b124-1605fdb71a11.jpg" width="250" />
|
<img src="https://user-images.githubusercontent.com/2981891/175355586-1dfc0d66-6555-4385-b124-1605fdb71a11.jpg" width="250" />
|
||||||
|
|
||||||
An over-engineered clock inspired by Casio watches.<br/>
|
An over-engineered clock inspired by Casio watches.<br/>
|
||||||
It has a dedicated timer, a scratchpad and can display the weather condition 4 days ahead.<br/>
|
It has a dedicated timer, a scratchpad and displays the current temperature.<br/>
|
||||||
It uses a <a target="_blank" href="https://dotgreg.github.io/advCasioBangleClock/">custom web app</a> to update its content.<br/>
|
|
||||||
Forked from the awesome Cassio Watch.<br/>
|
Forked from the awesome Cassio Watch.<br/>
|
||||||
|
|
||||||
## Todo
|
## Todo
|
||||||
|
|
@ -21,7 +20,7 @@ Forked from the awesome Cassio Watch.<br/>
|
||||||
- Footsteps
|
- Footsteps
|
||||||
- Battery
|
- Battery
|
||||||
- Simple Timer embedded
|
- Simple Timer embedded
|
||||||
- Weather forecast (7 days)
|
- Current temperature
|
||||||
- Scratchpad
|
- Scratchpad
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
@ -36,14 +35,6 @@ Web interface to update weather & scratchpad <br/>
|
||||||
<img src="https://user-images.githubusercontent.com/2981891/175519121-851bb209-7192-40db-a014-490c344f7597.jpg" width="250" />
|
<img src="https://user-images.githubusercontent.com/2981891/175519121-851bb209-7192-40db-a014-490c344f7597.jpg" width="250" />
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
### How to update the tasks list / weather
|
|
||||||
- you will need a <a target="_blank" href="https://openweathermap.org/price#weather">free openweathermap.org api key</a>.
|
|
||||||
- go to https://dotgreg.github.io/advCasioBangleClock/
|
|
||||||
- Alternatively you can install it on your own server/heroku/service/github pages, the web-app code is <a target="_blank" href="https://github.com/dotgreg/advCasioBangleClock/tree/master/web-app">here</a>
|
|
||||||
- fill the location and the api key (it will be saved on your browser, no need to do it each time)
|
|
||||||
- edit the scratchpad with what you want
|
|
||||||
- click on sync
|
|
||||||
- reload your clock!
|
|
||||||
|
|
||||||
### How to start/stop the timer
|
### How to start/stop the timer
|
||||||
- swipe up : add time (+5min)
|
- swipe up : add time (+5min)
|
||||||
|
|
|
||||||
|
|
@ -88,9 +88,9 @@ function drawRocket() {
|
||||||
|
|
||||||
function getTemperature(){
|
function getTemperature(){
|
||||||
try {
|
try {
|
||||||
var weatherJson = storage.readJSON('weather.json');
|
var temperature = E.getTemperature()
|
||||||
var weather = weatherJson.weather;
|
var formatted = require("locale").temp(temperature).replace(/[^\d-]/g, '');
|
||||||
return Math.round(weather.temp-273.15);
|
return formatted;
|
||||||
|
|
||||||
} catch(ex) {
|
} catch(ex) {
|
||||||
print(ex)
|
print(ex)
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ "id": "advcasio",
|
{ "id": "advcasio",
|
||||||
"name": "Advanced Casio Clock",
|
"name": "Advanced Casio Clock",
|
||||||
"shortName":"advcasio",
|
"shortName":"advcasio",
|
||||||
"version":"0.05",
|
"version":"0.06",
|
||||||
"description": "An over-engineered clock inspired by Casio watches. It has a 4 days weather, a timer using swipe and a scratchpad. Can be updated using a dedicated webapp.",
|
"description": "An over-engineered clock inspired by Casio watches. It has current temperature, a timer using swipe and a scratchpad. Can be updated using a dedicated webapp.",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "clock",
|
"tags": "clock",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue