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

Israel source support for Envista adapter (#358) #361

Merged
merged 1 commit into from Aug 11, 2017
Merged

Conversation

jflasher
Copy link
Contributor

@jflasher jflasher commented Aug 11, 2017

No description provided.

* WIP Richards Bay adapter

Done:
- Get cities list
- Get stations list
- Query station
- Get CSV

Todo:
- Parse CSV
- Format data

* Script to get Richards Bay station coordinates

* Fix country field in source file

* Working adapter

Each station has their own cookie jar
to avoid server export issue (see #9)

TODO
* Customize lstMonitors to reduce response size
* Try to cut out unuseful stations early

* Lint fix

* It wasn't timing out after all

* Keep the todo on the issue

* Customize lstMonitors, only get what you need

* Lint...

* Skip boring stations

* Attemp to customize envista adapter for Israel

* Works perfect 90% of the time

* Use retry and parallelLimit

* Support both IL, ZA in Envista adapter

* Use different request objects for each source
* Custom form handling for each source
* Use region name as city
* Skip non number measurement values
* Get attribution name from source
* Other conditionals based on source country

* Change adapter name

* Gotta keep Travis happy, lint

* Add Israel station coordinates

Max wrote the helper script
in adapters/israel branch,
I made a few modifications:

* The returned locations are now a single
  hashmap, instead of a list of objects
* Use stationID to map coordinates,
  to avoid the unicode key problem.

I used the same stationID trick from
the Moscow adapter. See the following
comment about the problem:
#301 (comment)

* Lint with updated eslint

(Mine was older than what
was on Travis)

* Skip 0,0 coordinates

* Remove outdated envista_za.js adapter
@jflasher jflasher merged commit 3058bd0 into master Aug 11, 2017
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.

None yet

2 participants