Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some cleaning, improved logging output and async problem solved #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

volschin
Copy link

@volschin volschin commented Aug 6, 2015

The following things are done:

  1. adding a .gitignore file that leaves out param.txt, logs and other admin crap
  2. correcting the chmod to -x for all files except .sh
  3. Renamed params.txt to params-sample.txt (params.txt is ignored to not accidentally push account data)
  4. Improved logging with more variables
  5. Solved the problem discussed here http://forum.developer.parrot.com/t/how-update-data-in-your-cloud/66/36 regarding a mismatch between the cloud delivered index and the order of querying sensors, resulting in higher download on the sensor and push to the wrong sensor.
  6. Disabled logging for sensitive account data
  7. Commented out part with write to the filesystem not needed for cloud sync.

@gandy92
Copy link

gandy92 commented Sep 22, 2015

I've encountered the same problems in my installation with 8 sensors. The proposed patch works for me, please consider accepting it.

renovate bot and others added 2 commits June 2, 2024 08:49
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Fix bug in uuidTab generation

- From tabSensors entries, use characters 0..5 and 12..17 instead of 0..6 and 13..17

* Add time and horizontal line

* Complete overhaul of sensor handling

- Use async.waterfall instead of async.serial for proper error handling
- Tidy up code, add more comments to improve readability
- Move readout and upload code to seperate function for readability
- Use structured sensors array to keep sensorSerial/uuid relation
- Avoid global variables where possible
- Catch any exceptions thrown by node-flower-power code
- Readout sensors in same order they where discovered

* Add battery level reading

* Add FHEM inform mechanism

* When reporting to FHEM, use XHR=1 and report result to console

* Fix callback sequence, disconnect must be last

* Reorganize code to add more stability

- Move FHEM reporting to function called by main waterfall

* Add workaround to close leftover connections (saves battery power)

---------

Co-authored-by: Andy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants