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

758 adding wiskis query support #759

Merged
merged 13 commits into from
Sep 29, 2023
Merged

Conversation

petersilva
Copy link
Contributor

as per #758 , add a proof of concept WISKI web services polling thing, supporting the token management needed by Ontario Power Generation.

  • Generates tokens, supplies them to kiwis_pie (python wrapper module to access WISKI)
  • polls the server given by pollUrl
  • writes timeseries to a local directory given by directory
  • generates posts using provided baseUrl etc... as per normal post/poll.
  • implemented as a flowcb/scheduled plugin.
  • example configuration file provided.
  • for testing, can be invoked on command line.
  • works on linux and/or windows (different file naming conventions due restrictions on windows.)

generic items:

  • noticed a bug in scheduled_intervals (applies to most of the ones deployed) fixed.
  • found a bug in scheduled/init as well (missing argument would be found by derived classes.)
  • documented use of None (as opposed to NONE) for filename setting... needed when filenames have colons in them.

petersilva and others added 13 commits September 19, 2023 20:02
from OPG creates an "Error" token and then uses it without signalling
any error.  this was copied... so when it failed, it signalled nothing.

Adding error message for when token request fails.
also the kiwis_pie library wasn't being given the token, to the
authentication failure had no effect... we are effectively only doing
unauthenticated request.

kiwis_pie doesn't support bearer tokens, so forked that preparing a
patch for that, but can't confirm it works until I get a working token.
token submission currently returning an error.
unfortunately get_timeseries_list returning empty for now... work in
progress.
@petersilva
Copy link
Contributor Author

Oh yeah, and it turns out that github has it´s own naming scheme for issue branches, so I used that one this time. There is a create a banch for this issue button on the right, and it uses this scheme... comments welcome.

Copy link
Contributor

@tysonkaufmann tysonkaufmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tysonkaufmann tysonkaufmann merged commit 4f0e929 into v03_wip Sep 29, 2023
21 of 23 checks passed
@petersilva petersilva deleted the 758-adding-wiskis-query-support branch October 22, 2023 14:45
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