User Tools

Site Tools


projets:fuz:presence_button

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projets:fuz:presence_button [2020/02/03 00:42]
lomanic remove duplicate legacy "Arduino sketch revisions" section ; update current status
projets:fuz:presence_button [2020/02/03 02:03] (current)
lomanic [Hardware]
Line 18: Line 18:
 You can also use ''​screen /​dev/​ttyUSB0 115200''​ to watch the serial monitor, but Arduino IDE serial monitor is more practical to use as it is relaunched each time it detects when the USB/serial adapter is plugged to a running chip. You can also use ''​screen /​dev/​ttyUSB0 115200''​ to watch the serial monitor, but Arduino IDE serial monitor is more practical to use as it is relaunched each time it detects when the USB/serial adapter is plugged to a running chip.
  
-Using a FTDI as below is more practical as it's able to properly power the Sonoff S20. **Don'​t forget to set the jumper to 3.3V or you will fry the ESP**.+Using a FTDI as below is more practical ​and safer as it's able to properly power the Sonoff S20. **Don'​t forget to set the jumper to 3.3V or you will fry the ESP**.
  
 {{:​projets:​fuz:​presence_button:​sonoff_s20_ftdi_pinout.jpg?​200|}} {{:​projets:​fuz:​presence_button:​sonoff_s20_ftdi_pinout.jpg?​200|}}
Line 61: Line 61:
   - **DOING** Unfortunately,​ [[https://​github.com/​krzychb/​EspSaveCrash|EspSaveCrash]] is not able to save crash information on flash, to be removed. Maybe a completely rework is needed as we may use too much RAM or something, where the ESP would only be pinging a remote server about its state and all the logic would be on this server (it would be the server that tells the ESP to turn on or off the rotating light). Maybe also remove @mentions handling as it's not used before a complete rework.   - **DOING** Unfortunately,​ [[https://​github.com/​krzychb/​EspSaveCrash|EspSaveCrash]] is not able to save crash information on flash, to be removed. Maybe a completely rework is needed as we may use too much RAM or something, where the ESP would only be pinging a remote server about its state and all the logic would be on this server (it would be the server that tells the ESP to turn on or off the rotating light). Maybe also remove @mentions handling as it's not used before a complete rework.
   - ??   - ??
-  - **DOING**+  - **DOING**, when people push the button and the button doesn'​t crash after some time
  
 Today the button can notify on Matrix when it's pressed after initialization or after being notified on Matrix, and a server registers pings from the button to notify on Matrix that the Fuz is closed when it's not pinged anymore. Today the button can notify on Matrix when it's pressed after initialization or after being notified on Matrix, and a server registers pings from the button to notify on Matrix that the Fuz is closed when it's not pinged anymore.
Line 67: Line 67:
 Next steps: Next steps:
  
-  - handle multiple matrix channels configured (to listen to and to reply to) 
-  - resolve HTTPS locally instead of relying on an HTTP/HTTPS proxy 
   - huge refactoring of the code is needed, it's a huge pile of hacks, hard to work on, follow how it's done in [[https://​github.com/​biohazardxxx/​ESP_WiFiSwitch|this similar project]] (separate files?), also fix button reset [[https://​github.com/​biohazardxxx/​ESP_WiFiSwitch/​blob/​1c642fe2b00fbf83324e2228826ad341f687ce45/​ESP_WiFiSwitch.ino#​L136-L172|with a ticker like in this project]]   - huge refactoring of the code is needed, it's a huge pile of hacks, hard to work on, follow how it's done in [[https://​github.com/​biohazardxxx/​ESP_WiFiSwitch|this similar project]] (separate files?), also fix button reset [[https://​github.com/​biohazardxxx/​ESP_WiFiSwitch/​blob/​1c642fe2b00fbf83324e2228826ad341f687ce45/​ESP_WiFiSwitch.ino#​L136-L172|with a ticker like in this project]]
 +  - resolve HTTPS locally instead of relying on an HTTP/HTTPS proxy
  
 ===== Resources ===== ===== Resources =====
projets/fuz/presence_button.1580686958.txt.gz ยท Last modified: 2020/02/03 00:42 by lomanic