Skip to content

Comments

Refactored module to use axios instead of request which is now deprecated.#4

Open
corysolovewicz wants to merge 8 commits intoajones:mainfrom
corysolovewicz:patch-4
Open

Refactored module to use axios instead of request which is now deprecated.#4
corysolovewicz wants to merge 8 commits intoajones:mainfrom
corysolovewicz:patch-4

Conversation

@corysolovewicz
Copy link

No description provided.

Changes to reduce api call costs to purple air:

Added default sensorName to default configs
Increased default updateIntervalSec to 600 seconds 
Only fetch pm2.5_10minute field rather than everything
Added sensorName documentation.
Remove deprecated request library and add axios.
Refactor node_helper to use axios
Refactor socketNotificationReceived for axios response and added error handling.
Update MMM-PurpleAir.js - reduce api calls to be more cost effective
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.

1 participant