Giter Club home page Giter Club logo

watchy_gsr's People

Contributors

egnor avatar gurusr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

watchy_gsr's Issues

looks like some serious typos in Watchy_GSR.cpp

Near line 1223:

D = WatchTime.Local.Wday + 1; // 2.1
H - WatchTime.Local.Hour;   // 2.1
BatOk = (Battery.Last == 0 || Battery.Last > Battery.LowLevel);

Guessing that should be:

H = WatchTime.Local.Hour;

Watchy GSR 1.4.8 List of Updates to be Completed.

  • Fix the WiFi system to allow for fast Watch Face switches when one asks for weather.
  • Fix battery indicator completely when using screen blanking.
  • Add missing Weather information.
  • Add "NOW" Weather Update Menu Item.
  • New Font system.
  • Add missing Language ID for AddOns.
  • Addition to Language system to offer AddOns the ability to use Language ID.
  • ChangeWatchFace(), ChangeGame()
  • Multiple Timezone functionality.
  • (Exploration of BT internet sharing on handheld.)

Step Count

It would be great to have access to the step count to use in a watch face as desired.

Totaly new...

This is not an ...issue per se for the provided code it is a ...totally new user question. I know I should not ask this kind of questions but I have been gifted this amazing smartwatch ( Watchy-SQFMI ) and I am lost... How do I upload your code to the watch? I do not know where to find ( although I searched... ) an "OTA uploading tool"!
[Edit]
I know I am doing something wrong because when I try to upload the code via Arduino IDE I got this message and it stops:

WARNING: library Rtc_Pcf8563 claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s). c:\Users\Kostas\Documents\Arduino\libraries\Watchy_GSR\Watchy_GSR.cpp: In member function 'void WatchyGSR::DisplayInit(bool)': c:\Users\Kostas\Documents\Arduino\libraries\Watchy_GSR\Watchy_GSR.cpp:3303:16: error: 'class GxEPD2_154_D67' has no member named 'setDarkBorder' display.epd2.setDarkBorder(Options.Border | ForceDark); ^~~~~~~~~~~~~ Compilation error: exit status 1}

Following the instructions to the letter...

Boot loop after building with platformio

I attempted to follow your various directions, but using platformio rather than the Arduino IDE.

I made this platformio.ini:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
    sqfmi/Watchy  ; @ 1.4.1
    https://github.com/tzapu/WiFiManager.git  ; #2.0.3-alpha
    https://github.com/GuruSR/SmallRTC.git
    https://github.com/GuruSR/SmallNTP.git
    https://github.com/GuruSR/StableBMA.git
    https://github.com/GuruSR/Olson2POSIX.git
lib_ldf_mode = deep+
board_build.partitions = min_spiffs.csv

I did NOT do any of the dark border modifications. (That should be okay, right?) This ended up giving me these package versions (from pio pkg list):

Resolving esp32dev environment packages...
Platform espressif32 @ 4.4.0 (required: espressif32)
├── framework-arduinoespressif32 @ 3.20003.220626 (required: platformio/framework-arduinoespressif32 @ ~3.20003.0)
├── tool-esptoolpy @ 1.30300.0 (required: platformio/tool-esptoolpy @ ~1.30300.0)
├── tool-mkfatfs @ 2.0.1 (required: platformio/tool-mkfatfs @ ~2.0.0)
├── tool-mklittlefs @ 1.203.210628 (required: platformio/tool-mklittlefs @ ~1.203.0)
├── tool-mkspiffs @ 2.230.0 (required: platformio/tool-mkspiffs @ ~2.230.0)
└── toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3 (required: espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3)

Libraries
├── Olson2POSIX @ 0.0.0+20220629192147.sha.3e9c4b8 (required: git+https://github.com/GuruSR/Olson2POSIX.git)
├── SmallNTP @ 0.0.0+20220629192146.sha.f1c21fc (required: git+https://github.com/GuruSR/SmallNTP.git)
├── SmallRTC @ 0.0.0+20220629192119.sha.a1c8a33 (required: git+https://github.com/GuruSR/SmallRTC.git)
├── StableBMA @ 0.0.0+20220629192147.sha.e276cf0 (required: git+https://github.com/GuruSR/StableBMA.git)
├── Watchy @ 1.4.1 (required: sqfmi/Watchy)
│   ├── Adafruit GFX Library @ 1.11.3 (required: Adafruit GFX Library)
│   │   └── Adafruit BusIO @ 1.12.0 (required: Adafruit BusIO)
│   ├── Arduino_JSON @ 0.1.0 (required: Arduino_JSON)
│   ├── DS3232RTC @ 2.0.1 (required: DS3232RTC)
│   │   └── Time @ 1.6.1 (required: Time)
│   ├── GxEPD2 @ 1.4.6 (required: GxEPD2)
│   │   └── Adafruit GFX Library @ 1.11.3 (required: Adafruit GFX Library)
│   │   │   └── Adafruit BusIO @ 1.12.0 (required: Adafruit BusIO)
│   ├── NTPClient @ 3.2.1 (required: NTPClient)
│   ├── Rtc_Pcf8563 @ 0.0.0-alpha+sha.6b5adc2ced (required: Rtc_Pcf8563)
│   └── WiFiManager @ 2.0.11-beta+sha.01bd8a3 (required: WiFiManager)
└── WiFiManager @ 2.0.11-beta+sha.01bd8a3 (required: git+https://github.com/tzapu/WiFiManager.git)

After that, I was able to pio run --target upload and it successfully programmed the watch and it even came up with your pretty text and the time BUT then got itself into a boot loop:

[    36][E][Wire.cpp:159] begin(): Bus already started in Master Mode.
Guru Meditation Error: Core  1 panic'ed (InstrFetchProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x00000000  PS      : 0x00060a30  A0      : 0x801525d0  A1      : 0x3ffb2660  
A2      : 0x00000053  A3      : 0x3ffb26cd  A4      : 0x00000001  A5      : 0x50000234  
A6      : 0x3ffb8a88  A7      : 0x00000000  A8      : 0x8016f976  A9      : 0x3ffb25f0  
A10     : 0x00000000  A11     : 0x00000053  A12     : 0x3ffb26cd  A13     : 0x00000001  
A14     : 0x000000be  A15     : 0x00000004  SAR     : 0x0000000a  EXCCAUSE: 0x00000014  
EXCVADDR: 0x00000000  LBEG    : 0x4008b031  LEND    : 0x4008b045  LCOUNT  : 0xffffffff  


Backtrace:0xfffffffd:0x3ffb26600x401525cd:0x3ffb2680 0x40152a15:0x3ffb26c0 0x400eb238:0x3ffb26f0 0x400d559e:0x3ffb2720 0x400dee35:0x3ffb2740 0x400d2e9e:0x3ffb27e0 0x400f0d6e:0x3ffb2820 




ELF file SHA256: 0000000000000000

Rebooting...

Did I miss an important step somewhere?

Exception when connecting to WiFi

After flashing Watchy I instantly get this exception:

E (5953) wifi:wifi deinit internal: wifi not stop
E (5954) wifi_init: Failed to deinit Wi-Fi driver (0x3003)
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x40154415  PS      : 0x00060430  A0      : 0x80156eac  A1      : 0x3ffd4110  
A2      : 0x3ffd6c40  A3      : 0x3ffd41a0  A4      : 0x00000000  A5      : 0x00000000  
A6      : 0x3ffd6cb8  A7      : 0x00000000  A8      : 0x00000000  A9      : 0x3ffc9f74  
A10     : 0x3ffbfe04  A11     : 0x0000008c  A12     : 0x0000008c  A13     : 0x3ffd6e36  
A14     : 0x0000001f  A15     : 0x00000008  SAR     : 0x00000010  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000050  LBEG    : 0x4008aab0  LEND    : 0x4008aabb  LCOUNT  : 0x00000000  

Backtrace: 0x40154412:0x3ffd4110 0x40156ea9:0x3ffd4190 0x40192f0d:0x3ffd4280 0x40192fb5:0x3ffd42d0 0x40194dd5:0x3ffd42f0 0x40191c00:0x3ffd4310

  #0  0x40154412:0x3ffd4110 in scan_parse_beacon at ??:?
  #1  0x40156ea9:0x3ffd4190 in sta_recv_mgmt at ??:?
  #2  0x40192f0d:0x3ffd4280 in sta_input at ??:?
  #3  0x40192fb5:0x3ffd42d0 in sta_rx_cb at ??:?
  #4  0x40194dd5:0x3ffd42f0 in ppRxPkt at ??:?
  #5  0x40191c00:0x3ffd4310 in ppTask at ??:?

ELF file SHA256: 08ec203f1d926278

Rebooting...
[  6075][E][WiFiGeneric.cpp:1272] mode(): Could not set mode! 12308
[  6075][E][WiFiSTA.cpp:299] begin(): STA enable failed!

When syncing time through the menu, the time does not sync and following error show up when monitoring:

[  2336][E][WiFiGeneric.cpp:1272] mode(): Could not set mode! 12308
[  2337][E][WiFiSTA.cpp:299] begin(): STA enable failed!

Other times I get the same exception as above.
Connecting to Watchy using "Watchy Connect" works, I also set up my local WiFi.

Using the newest Code from the Main branch. I did not test previous version, but can do so if necessary.

Unable to compile

Hello there,
I am confused with the instruction for compilation.
I am a newbie with platfomrio and ESP32.

So I cloned the git 'cd' into it and try:
pio run
and get:
.pio/build/watchy/libFrameworkArduino.a(main.cpp.o):(.literal._Z8loopTaskPv+0x8): undefined reference to setup()' .pio/build/watchy/libFrameworkArduino.a(main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference to loop()'
.pio/build/watchy/libFrameworkArduino.a(main.cpp.o): in function `loopTask(void*)'

collect2: error: ld returned 1 exit status
*** [.pio/build/watchy/firmware.elf] Error 1

I surely missed something.
Can you shed some light on this please. It will really be appreciated.

Compilation error

I am trying to compile with Platformio but I get this error message:
VCSBaseException: VCS: Could not process command ['git', 'clone', '--recursive', '--depth', '1', '--branch', 'v2.2', 'https://github.com/GuruSR/SmallRTC.git', '/home/mbantu/.platformio/.cache/tmp/pkg-installing-5rya822i']

NOTES are confusing

README.md includes this text

Watchy uses version 1.0.6 or 2.0.2 (or higher than 2.0.3) of the ESP32 libraries, 2.0.0 won't compile, 2.0.2 causes a boot crash loop, remove them manually and revert back to version 1.0.6 or use 2.0.2 (which seems to have been fixed).

I think... one of those "2.0.2" references should be something else? If "2.0.2 causes a boot crash loop" then probably one shouldn't "use 2.0.2"?

Watchy GSR 1.4.7 List of Updates to be Completed

  • Clean up existing main loop for better performance and reduced repetition throughout.
  • Improve timer and alarm responsiveness during usage.
  • "Edit RTC" allows the user to "edit" active time at the start and end of the drift test duration for better accuracy. Should make PCF8563 chips accurate.
  • Include Open Weather Map support along with Geo Location (to utilize the newer 2.5+ version of OWM).
  • Better "wake from sleep" methods to unify code that was all over and duplicated (some of which were unreliable).
  • Convert Menus from 1 item per screen to a cursor and / highlighting method for changing/toggling properties with fewer menu pages.
  • Clean up Display Updates so that they're less intrusive and more uniform.
  • Upgraded for SmallRTC 2.2 that removes the wake up i2c bus error and offers backward compatibility for SmallRTC 3.0 BETA. (SmallRTC 2.2 can be adapted to Watchy.cpp base to make all outdated Watch faces compile and work with any version of Watchy automatically.)
  • WiFi indicator will remain visible when user added watch faces request it and are not finished with it.
  • A threaded "Web Get" to retrieve data from the specified website without interfering with the main use of the watch face.
  • A system to allow other watch faces to be bundled in a compile addon for original Watchy base watch faces and authors who have asked to have them added.
  • Write documentations for new functionality and provide templates for new compile addons.
  • Update the OTA Website to offer Open Weather Map API Key, so it can be used for weather retrieval.
  • Update Locale text entries for English to include the new additions.
  • Update the getAngle function to properly create an angle in a box. (Thanks Henny022.)
  • Validate alarms and timers properly "wake" screen up when starting after long duration of not being "awake".
  • Upload and update all relevant files, including changes to functions, operation and libraries.

I'll put more in when I remember other things that need to be done.

GuruSR.

Orientation issues in 1.4.7B

Version: 1.4.7B
HWVer: 1.0

Changing orientation to Watchy Up does not create any sort of auto-rotate and causes menu button responsiveness to lag for various amounts of time.

Sometimes button responsiveness will return, and then rotating the watch causes it to become unresponsive again. Sometimes it seems to get stuck without significant changes to orientation.

Fix for unresponsiveness is to hold the menu button until the menu comes up. I have had it range from 5 seconds to 30s, possibly more.

Returning the setting to Ignore removes any button responsiveness issues.

Documentation

This project could benefit greatly from some documentation on writing watch faces, a breakdown of it's features, and installing the firmware being put into a wiki.

Help Installing

I am having a hard time installing this code into the watch, I was able to modify the necessary files in order to get the black border, but I keep getting compiling errors, not sure where I am going wrong, any chance you can help me? I currently running official watchy firmware.

My questions are:

On Arduino, what options do I choose and how do I actually load your code into it.

Where am I putting the extra files you mentioned (smallNTP ect...)

I am a dummy I just need a step-by-step guide on how to do this, any help would greatly be appreciated.

Help with German translation / localization

I just installed your watchface and I really like it.
It's impressive that you managed to put so many functions in to the Watchy.
While setting everything up, I saw that you are preparing for localization.
I can't help much, but I could translate everything into German.

Not sure if it is ready for translation yet, so let me know if I can contribute.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.